TradingView MCP Bridge
MCP server that links an agent to a running TradingView Desktop for chart analysis, Pine Script work and alerts
- 7,161 ★ on the repository
- Last commit
Broad access
Why this level
- Controls the installed TradingView app and works with trading data
- Writes and injects Pine Script, creates and deletes price alerts
- Reaches undocumented internal APIs through a debug port
Install
- Works in
Manual install
git clone https://github.com/tradesdontlie/tradingview-mcp.git
cd tradingview-mcp
npm installBefore use, launch TradingView Desktop with the debug port, for example via the scripts in the scripts folder or the --remote-debugging-port=9222 flag.
Access and checks
How we reviewBroad accessThe tool can change data, run commands or handle secrets.
- Controls the installed TradingView app and works with trading data
- Writes and injects Pine Script, creates and deletes price alerts
- Reaches undocumented internal APIs through a debug port
This is third-party code. Review the repository files before installing.
What it does
The server connects an agent to a locally running TradingView Desktop app through the Chrome DevTools Protocol and lets it drive the chart in words. The agent reads indicator values, price levels and annotations, switches symbols and timeframes, adds and removes indicators, draws lines and rectangles, and creates or deletes price alerts. A separate toolset writes, injects, compiles and debugs Pine Script, and a replay mode steps through historical bars for practice. Everything is also available as tv CLI commands with JSON output. The tool runs locally only: it does not reach TradingView servers, redistribute data or execute real trades.
Who it is for. For traders and Pine Script developers who want to analyze their charts and write scripts together with an agent.
Good fit when
- You want to analyze the current chart and read indicator values with an agent
- You want to write, inject or debug Pine Script on your chart
- You want to set symbols, timeframes, alerts or drawings without manual clicks
Not a fit when
- You do not have TradingView Desktop installed with an active subscription
- You need automated order execution rather than chart interaction
Example request
Read the indicator values on my chart and create an alert at the level I give youMCP
- Transport
- stdio
- Authentication
- not required
Limitations
You need TradingView Desktop installed, an active paid subscription for real-time data and Node.js 18+. The tool reaches undocumented internal APIs through a debug port and can break after a TradingView update. The debug port is enabled manually with a standard Chromium flag. It executes no real trades and only interacts with the chart.
How to disable. Remove the tradingview block from your MCP configuration and, if you wish, delete the cloned repository folder. Close TradingView that was launched with the debug port.
FAQ
Does it bypass the TradingView subscription?
No. The tool reads and controls the already running app with your active subscription and bypasses nothing.
Does it execute trades?
No. It only interacts with the chart: drawings, indicators, alerts and Pine Script.
Discussion
No questions or reviews yet.
Related
MCP serversAn MCP server for market data and technical analysis: quotes, indicators, screeners and backtesting for stocks, crypto, forex and futures
An MCP server for MetaTrader 5: the agent reads the account and quotes, opens, changes and closes trades; a skill, REST and quote stream included
investor-agent gives an agent quotes, price history, options, an earnings calendar and a fear and greed index with no key.
The MCP server gives agents daily stock screens, relative-strength ratings, industry rankings and market breadth.
An MCP server for personal stock analysis: market data, technical indicators, screening and portfolio tracking, no keys for the core
Autonomous trading MCP for T-Bank Invest
Tinkoff Trader MCP
An MCP server for T-Bank Invest with market analysis, backtesting five strategies, risk management and order placement, with live trading off by default
README in short
The README describes a bridge between an agent and TradingView Desktop over the Chrome DevTools Protocol and stresses that it talks only to the local app, never to TradingView servers. It lists the features: Pine Script development, chart navigation, indicator reading, drawing, alerts, a replay mode, screenshots and the tv CLI. Installation is a clone plus npm install, then the server is added to the MCP configuration and TradingView is launched with a debug flag. It states the tool is unaffiliated with TradingView, bypasses no subscription and executes no trades. Launch scripts are provided for macOS, Windows and Linux.