AI product Open source

TradingView MCP Bridge

An independent MCP server and CLI that connects Claude Code or other MCP clients to a locally running TradingView Desktop application for chart analysis and workflow automation. It communicates through Chrome DevTools Protocol on a user-enabled localhost debug port, rather than connecting to TradingView servers or intercepting network traffic.

View repository

Overview

The bridge exposes tools for reading quotes, OHLCV data, indicator values, Pine Script drawings and tables; changing symbols, timeframes, indicators, panes and tabs; injecting, compiling and debugging Pine Script; drawing chart objects; managing alerts and watchlists; using replay mode; capturing screenshots; and streaming locally read chart data as JSONL. Its CLI provides equivalent pipe-friendly commands, while MCP uses a stdio transport. Data processing remains local, and the project states that it does not execute real trades or bypass TradingView access controls.

It requires the installed TradingView Desktop app, a valid TradingView subscription, Node.js 18 or later, and an explicitly enabled Chrome DevTools debug port. Because it relies on undocumented internal TradingView application interfaces, updates to TradingView Desktop may break compatibility. The source code is MIT-licensed, but the license does not grant rights to TradingView software, data or trademarks.