TradingView
Real-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick patterns + native Claude Desktop integration. Multi-exchange (Binance, KuCoin, Bybit+). Open-source AI trading infrastructure.
What is TradingView?
TradingView is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to real-time crypto & stock screening, advanced technical indicators, bollinger bands intelligence, candlestick patterns + native claude desktop integration. multi-exchange (binance, kucoin, bybit+). ope...
Real-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick patterns + native Claude Desktop integration. Multi-exchange (Binance, KuCoin, Bybit+). Open-source AI trading infrastructure.
This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Real-time crypto & stock screening, advanced technical indic
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx tradingviewConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use TradingView
tradingview-mcp is a focused, type-safe MCP server that bridges Claude Code (or any MCP client) with a locally running TradingView Desktop application via the Chrome DevTools Protocol. It exposes a clean set of tools to read chart state, switch symbols and timeframes, and fetch up to 5,000 OHLCV bars — all processed locally so no TradingView data leaves your machine. Traders and quant developers use it to let AI agents read and navigate charts, pull price history, and reason about market data interactively, without any screen scraping.
Prerequisites
- Node.js 20+ installed
- A valid TradingView subscription with TradingView Desktop installed
- An MCP client such as Claude Code or Claude Desktop
- TradingView Desktop launched with --remote-debugging-port=9222
Install tradingview-mcp globally
Install the package from npm so the tradingview-mcp binary is available on your PATH.
npm install -g tradingview-mcpLaunch TradingView Desktop with the CDP debug port
Quit any running TradingView Desktop first, then relaunch it with the Chrome DevTools Protocol debug port enabled. This is a standard Chromium debug flag and is opt-in.
# macOS
open -a "TradingView" --args --remote-debugging-port=9222
# Windows
& "C:\Users\<you>\AppData\Local\Programs\TradingView\TradingView.exe" --remote-debugging-port=9222
# Linux
tradingview --remote-debugging-port=9222Verify the connection with the doctor command
Run the built-in diagnostic to confirm the CDP endpoint is reachable and TradingView is responsive before adding it to your MCP client.
tradingview-mcp doctorAdd tradingview-mcp to your MCP client configuration
Register the server in Claude Code's MCP config file. TV_MCP_PORT defaults to 9222 and only needs to be set if you used a different port.
Restart your MCP client
Restart Claude Code or Claude Desktop so it picks up the new MCP server entry and registers the chart tools.
TradingView Examples
Client configuration
Add tradingview-mcp to Claude Code's MCP config (~/.claude/mcp.json or project .mcp.json).
{
"mcpServers": {
"tradingview": {
"command": "tradingview-mcp",
"env": {
"TV_MCP_PORT": "9222"
}
}
}
}Prompts to try
Example prompts to use with Claude once tradingview-mcp is connected.
- "What symbol and timeframe is my TradingView chart showing right now?"
- "Switch to NASDAQ:AAPL on a 1-hour chart and pull the last 200 OHLCV bars."
- "Change the chart to BTCUSDT on the 4h timeframe and calculate the average volume over the last 50 candles."
- "What studies are active on my current chart, and what is the last close price?"Troubleshooting TradingView
tradingview-mcp doctor reports CDP endpoint not reachable
Make sure you quit TradingView Desktop completely before relaunching it with --remote-debugging-port=9222. On macOS, confirm the app fully quit via Activity Monitor. Then rerun the open -a command with the flag and verify with curl http://localhost:9222/json.
tvWidget not detected — chart state readable error
The TradingView page must be fully loaded and a chart must be open before the MCP server can read state. Wait for the chart to fully render, then retry. If you have multiple TradingView windows open, set TV_MCP_TARGET to the specific CDP target ID shown by curl http://localhost:9222/json.
Tools start returning errors after a TradingView Desktop update
TradingView's internal page API is undocumented and can change between Desktop releases. Check the project's connection/tradingview.ts file for the single location where TradingView's internal API is called. Pin the previously working TradingView Desktop version until a compatible release of tradingview-mcp is published.
Frequently Asked Questions about TradingView
What is TradingView?
TradingView is a Model Context Protocol (MCP) server that real-time crypto & stock screening, advanced technical indicators, bollinger bands intelligence, candlestick patterns + native claude desktop integration. multi-exchange (binance, kucoin, bybit+). open-source ai trading infrastructure. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install TradingView?
Follow the installation instructions on the TradingView GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with TradingView?
TradingView works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is TradingView free to use?
Yes, TradingView is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
TradingView Alternatives — Similar Finance & Fintech Servers
Looking for alternatives to TradingView? Here are other popular finance & fintech servers you can use with Claude, Cursor, and VS Code.
ValueCell
★ 10.7kValueCell is a community-driven, multi-agent platform for financial applications.
Vibe Trading
★ 8.1k'Vibe-Trading: Your Personal Trading Agent'
Quantdinger
★ 6.2kAI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading
Financial Datasets
★ 2.1kProvides access to comprehensive financial data including income statements, balance sheets, cash flow statements, stock prices, company news, SEC filings, and cryptocurrency information with built-in financial ratio analysis.
Stripe
★ 1.6kThe Stripe Model Context Protocol server allows you to integrate with Stripe APIs through function calling. This protocol supports various tools to interact with different Stripe services.
Open Trading API
★ 1.4kKorea Investment & Securities Open API Github
Browse More Finance & Fintech MCP Servers
Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up TradingView in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use TradingView?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.