tradingview-mcp
Fetches OHLCV candle data for NSE/BSE symbols from TradingView's chart WebSocket, supporting various resolutions (intraday, daily, weekly, monthly) and returning bars as [timestamp, open, high, low, close, volume].
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
tradingview-mcp
A minimal MCP server that fetches OHLCV candles for NSE/BSE symbols from TradingView's chart WebSocket. For testing live/intraday data before moving to the paid Kite feed. Protocol reverse-engineered in PROTOCOL.md.
What it does
One tool:
get_ohlcv(symbol, resolution, bars)→ bars as[unix_time, open, high, low, close, volume], oldest first.symbol:NSE:RELIANCE,NSE:NIFTY,BSE:SENSEX, …resolution:15/60/D/W/1Mor aliases15m/hourly/daily/weekly.Indicators are NOT fetched — compute EMA/ATR/RSI yourself (the swing engine already does).
Data quality depends on login (see below). Logged in with a free account, many NSE symbols stream real-time; anonymous guest is delayed/EOD.
Related MCP server: tradingview-mcp
First-time login (recommended)
A logged-in session gives better/real-time data. Run this once — the password
is used only to obtain a token and is never stored; only the token +
sessionid land in .tv_session.json (gitignored, chmod 600). The client and MCP
pick it up automatically.
TV_USERNAME='you@example.com' TV_PASSWORD='...' python3 tv_auth.pyIf TradingView ever throws a CAPTCHA/2FA (it didn't in testing), grab the
auth_token from a logged-in browser (devtools → WS → set_auth_token) and drop
it into .tv_session.json as {"auth_token":"..."}. Without any session file the
client falls back to the guest token automatically.
Files
tv_client.py— the WebSocket client (also runnable:python3 tv_client.py NSE:RELIANCE D 10)tv_auth.py— one-time login → saves the session token (.tv_session.json)server.py— the stdio MCP server (no external SDK; retries on TV rate-limits)requirements.txt—websocket-client,requests(login only)
Install / run
pip install -r requirements.txt
python3 tv_client.py NSE:RELIANCE 15 5 # quick sanity checkConnect to Claude Code
claude mcp add tradingview -- python3 /home/neh/StockWealth/tradingview-mcp/server.pyRestart the session so the tool loads, then ask for e.g. NSE:HFCL daily candles.
Honest caveats
Unofficial + against TradingView's ToS; the protocol/tokens change without notice, so this WILL break eventually. Testing tool only.
A logged-in free account streams real-time on many NSE symbols (verified); anonymous guest is delayed. Some symbols/exchanges still require a paid data plan regardless.
TradingView rate-limits rapid reconnects; the server retries with backoff. Don't hammer it.
The intended production path is the Kite Connect API (~₹500/mo) — official, stable, real-time. This MCP exists only to test the intraday-data workflow first.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time crypto market data: candles, tickers, orderbooks across 13+ exchanges via MCP.
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
> TradingMCP puts a market analyst inside your AI assistant. Paste one URL into Claude, ChatGPT, Cursor, VS Code or any MCP client and ask in plain language: screen for breakouts, run a multi-timeframe analysis, backtest a strategy with walk-forward validation, scan for smart-money and volume signals, or get a one-prompt morning market brief. In clients that support MCP Apps, price charts and the Markets panel are drawn right in the chat. > 40+ tools covering crypto (real-time), stocks, ETFs, FX, futures and commodities across major global exchanges. > Hosted, nothing to install: Pro $9/month (2,500 tool calls) or Pro+ $29/month (10,000). Paid upfront with a 14-day money-back guarantee; your API key arrives right after checkout. > Built on the open-source tradingview-mcp core (MIT, ~5k GitHub stars): self-host it free, or use the hosted version with zero ops. > For research and education, not financial advice. Not affiliated with TradingView
Market Data App MCP — wraps the Market Data App API (marketdata.app)
Related MCP Servers
- FlicenseBqualityDmaintenanceA TradingView-style market research and charting MCP server that provides tools for market data, indicators, watchlists, and local HTML chart rendering without scraping TradingView.9-
- AlicenseBqualityBmaintenanceTradingView MCP server — real-time market data, technical indicators, screeners, and backtesting for Claude, ChatGPT, Cursor, Copilot, and any MCP client. Stocks, crypto, forex & futures across global exchanges.441MIT
- FlicenseNot gradedqualityDmaintenanceExposes TradingView data including quotes, technical ratings, historical OHLCV, and market screening through an MCP server using unofficial libraries.-
- FlicenseNot gradedqualityDmaintenanceControls and reads a live TradingView Desktop chart via Chrome DevTools Protocol, enabling market scanning, morning briefs, backtesting, and live NSE PCR data through a local dashboard.85 npm-