tradingview-mcp-chefy
Provides tools for strategy testing and backtest analysis on TradingView, including aggregated strategy results, paginated trades, and equity curve summaries.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tradingview-mcp-chefySummarize my last strategy backtest"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tradingview-mcp-chefy
Token-efficient TradingView MCP for traders who actually backtest.
This is a fork built specifically for strategy testing. The existing TradingView MCPs work well for chart reading and morning workflows, but they burn tokens hard when you're iterating on Pine strategies — every backtest read dumps the full trade list, equity curve, and console output into your context. This fork rewrites those reads to aggregate inside TradingView's runtime before the data crosses the wire, returning summaries by default and detail on demand.
Not affiliated with TradingView Inc. or Anthropic. This tool connects to your locally running TradingView Desktop app via Chrome DevTools Protocol. Review the Disclaimer before use.
Requires a valid TradingView subscription. This tool does not bypass any TradingView paywall. It reads from and controls the TradingView Desktop app already running on your machine.
All processing is local. Nothing is sent anywhere. No TradingView data leaves your machine.
Credits
This project stands on two pieces of prior work:
tradesdontlie/tradingview-mcp — the original CDP bridge and tool surface. The hard scraping work is theirs.
LewisWJackson/tradingview-mcp-jackson — fork that added the morning-brief workflow, rules config, and a v2.14+ launch fix. This fork forks his.
If those repos help you, go star them.
What's Different in This Fork
Area | Upstream behavior | This fork |
| Returns full strategy tester payload | Returns |
|
| Cursor-paginated. Default |
| Full curve point-by-point | Downsampled to N buckets (default 50). |
| All console output | New |
New: | — | Single call, all key metrics, ~200 bytes |
New: | — | A/B two strategy runs server-side, returns only the diff |
Net effect: a typical backtest read goes from ~50KB to ~200 bytes. On a heavy iteration session (20+ runs), this is the difference between burning $20 of tokens and burning $1.
Status
Pre-release. The fork is set up. The new aggregation tools are being written now. Until v0.2 ships, this repo behaves identically to LewisWJackson/tradingview-mcp-jackson — use that one if you need stability today.
Roadmap:
Fork repo, set up structure
backtest_summarywith in-browser aggregationbacktest_trades_pagedcursor paginationbacktest_equity_summarydownsamplingpine_console_errorsfiltered toolToken-cost benchmark vs upstream
PR uncontroversial fixes back to LewisWJackson upstream
v0.2 release
Quick Start
Same setup as upstream for now. When the new tools land in v0.2, the install path stays identical — only the
mcpServersconfig name might change.
Prerequisites
TradingView Desktop app (paid subscription required for real-time / strategy data)
Node.js 18+
Claude Code (or any MCP client)
macOS, Windows, or Linux
Install
git clone https://github.com/Chefy3x/tradingview-mcp-chefy.git ~/tradingview-mcp-chefy
cd ~/tradingview-mcp-chefy
npm installLaunch TradingView with debug port
Mac:
./scripts/launch_tv_debug_mac.shWindows:
scripts\launch_tv_debug.batLinux:
./scripts/launch_tv_debug_linux.shAdd to Claude Code
Add to ~/.claude/.mcp.json (merge with existing servers):
{
"mcpServers": {
"tradingview": {
"command": "node",
"args": ["/Users/YOUR_USERNAME/tradingview-mcp-chefy/src/server.js"]
}
}
}Replace YOUR_USERNAME with your actual username (echo $USER on Mac/Linux).
Verify
Restart Claude Code and ask: "Use tv_health_check to verify TradingView is connected."
Architecture
Claude Code ←→ MCP stdio ←→ src/server.js ←→ CDP :9222 ←→ TradingView Desktop (Electron)Connection: Chrome DevTools Protocol on
localhost:9222Aggregation: for backtest reads, the JS expression sent over CDP performs the reduction inside TradingView's runtime before returning. Same network hop, ~200x less data crossing the boundary.
No external network calls — everything runs locally
Zero added dependencies beyond what upstream uses
Contributing
Two-way street with upstream:
Token efficiency improvements to existing tools → I'll PR these back to LewisWJackson upstream so everyone benefits
New
backtest_*family of tools → stays in this fork (changes the mental model of how the MCP is used)
If you spot a bug in shared code paths, open an issue here and I'll route it.
Disclaimer
This project is provided for personal, educational, and research purposes only.
This tool uses the Chrome DevTools Protocol (CDP), a standard debugging interface built into all Chromium-based applications. It does not reverse engineer any proprietary TradingView protocol, connect to TradingView's servers, or bypass any access controls. The debug port must be explicitly enabled by the user via a standard Chromium command-line flag.
By using this software you agree that:
You are solely responsible for ensuring your use complies with TradingView's Terms of Use and all applicable laws.
This tool accesses undocumented internal TradingView APIs that may change at any time.
This tool must not be used to redistribute, resell, or commercially exploit TradingView's market data.
The authors are not responsible for any account bans, suspensions, or other consequences.
Use at your own risk.
License
MIT — see LICENSE. Inherited from upstream. Applies to source code only, not to TradingView's software, data, or trademarks.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/Chefy3x/tradingview-mcp-chefy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server