Individual TradingView Backtest Assistant
Provides historical market data from Binance Futures for backtesting strategies, enabling retrieval of OHLCV data for specified crypto tickers and timeframes.
Executes Pine Script strategy backtests, accepting strategy code and inputs programmatically and returning structured results including trade lists, win rate, profit, and drawdown metrics.
Provides TradingView-compatible backtesting engine tuned to match TradingView backtest results 1:1, enabling validation of Pine Script strategies against historical Binance Futures data.
Backtesting engine for your AI Agent with PineScript support for TradingView usage

Production-ready MCP server for running TradingView Pine Script strategy backtests (Binance data) from AI agents.
Quick Overview
tv-pinescript-backtest-mcp exposes a remote MCP endpoint so agents can:
run strategy backtests by symbol/timeframe/date range,
pass strategy inputs programmatically,
receive structured backtest results (trades, win rate, profit, drawdown),
keep long-running runs observable via progress notifications,
support Binance Futures tickers only,
enforce a maximum of 1440 candles per backtest,
apply a rate limit of 3 backtests per minute per user,
ask your agent to write a strategy and backtest it.
Related MCP server: mcp-binance-futures
Connect To Your Agent
Get API key: https://backtest-engine-mcp.click/dashboard
You need:
Your MCP server URL (
https://backtest-engine-mcp.click/mcp/backtest)Your API key (Bearer token)
Use HTTP transport and pass the API key in Authorization: Bearer <API_KEY>.
Supported Agents
Claude Code
CLI:
claude mcp add --transport http tvmcp https://backtest-engine-mcp.click/mcp/backtest --header "Authorization: Bearer <API_KEY>"Project file (.mcp.json):
{
"mcpServers": {
"tvmcp": {
"type": "http",
"url": "https://backtest-engine-mcp.click/mcp/backtest",
"headers": {
"Authorization": "Bearer <API_KEY>"
}
}
}
}OpenCode
opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"tvmcp": {
"type": "remote",
"url": "https://backtest-engine-mcp.click/mcp/backtest",
"oauth": false,
"headers": {
"Authorization": "Bearer <API_KEY>"
}
}
}
}Cursor
Add to .cursor/mcp.json (or ~/.cursor/mcp.json globally):
{
"mcpServers": {
"tvmcp": {
"url": "https://backtest-engine-mcp.click/mcp/backtest",
"headers": {
"Authorization": "Bearer <API_KEY>"
}
}
}
}Note: the same MCP configuration is used by cursor-agent CLI.
Codex
Add to ~/.codex/config.toml (or .codex/config.toml in a trusted project):
[mcp_servers.tvmcp]
url = "https://backtest-engine-mcp.click/mcp/backtest"
http_headers = { Authorization = "Bearer <API_KEY>" }Note: Codex CLI and IDE extension share the same config.toml.
VS Code
Open MCP configuration (.vscode/mcp.json or user mcp.json) and add:
{
"servers": {
"tvmcp": {
"type": "http",
"url": "https://backtest-engine-mcp.click/mcp/backtest",
"headers": {
"Authorization": "Bearer <API_KEY>"
}
}
}
}If needed, use Command Palette: MCP: Open User Configuration.
Minimal Test Prompt
Try these prompts with your agent:
Optimize my strategy: <pinescript code>Optimize my strategy from file: sma20.pineFind a strategy on the internet and backtest it using the tvmcp backtest tool.Backtest my strategy on BTCUSDT 1h from 2026-03-01 to 2026-03-10, Pine code:
//@version...Troubleshooting
The backtest-engine server has been tested on 30 strategies and tuned to match TradingView backtests 1:1 as closely as possible. Some operators may still be unsupported.
If you hit this case, please create a minimal strategy that reproduces the issue and submit it in Issues. We will do our best to add support quickly.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceComprehensive Binance Futures trading MCP server with 41 professional trading tools across account management, order execution, market data, and risk management. Features smart ticker caching, secure authentication, and Docker support for seamless integration with MCP clients.Last updated4PythonMIT
- AlicenseAqualityCmaintenanceMCP server for Binance USDT-M Futures trading — exposes tools for market data, account state, order management, and position/margin control.Last updated236Apache 2.0
- Alicense-qualityCmaintenanceLocal-first backtesting engine with built-in overfitting detection (PBO, deflated Sharpe, bootstrap CI, walk-forward) and a native MCP server for AI agents to validate trading strategies.Last updated4Apache 2.0

backtest360-mcpofficial
AlicenseAqualityBmaintenanceMCP server that exposes the Backtest360 backtesting engine API as tools, enabling AI agents to conversationally discover indicators, build and validate strategies, run backtests, and read results.Last updated14MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
Remote MCP server for RunComfy Serverless API (ComfyUI): deployments and async inference.
A paid remote MCP for AI SDK benchmark dashboard, built to return verdicts, receipts, usage logs, an
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vtlk/tv-pinescript-backtest-engine-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server