TradingView MCP
Provides TradingView-style market analysis including OHLCV candles, 19 technical indicators, a technical screener, and a backtester, using public Yahoo Finance data.
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 MCPscreen AAPL, MSFT, NVDA for RSI under 35"
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 Server
A community Model Context Protocol server that gives Claude Code (or any MCP client) TradingView-style market analysis: OHLCV candles, a suite of 19 technical indicators, a flexible technical screener, and a simple backtester.
Data is pulled from public Yahoo Finance endpoints — no API key, no account, no session cookies. Low blast radius: it only performs read-only fetches of public market data.
⚠️ Not affiliated with TradingView. Programmatic market-data collection can conflict with a provider's Terms of Use. This server avoids touching any TradingView account directly, but use it at your own discretion. Nothing here is financial advice.
Features
Tool | What it does |
| Latest snapshot: price, day range, volume, market cap, % change. |
| OHLCV candles for any interval/period. |
| Lists every indicator the server can compute. |
| Computes one or more indicators (with custom params). |
| Screens a list of tickers against technical conditions. |
| Long-only SMA-crossover backtest vs. buy & hold. |
| Valid intervals, periods, and ticker formats. |
Indicators: SMA, EMA, WMA, HMA, RSI, ROC, momentum, MACD, Bollinger Bands, Stochastic, Williams %R, CCI, ATR, Keltner Channels, Donchian Channels, ADX, OBV, VWAP, MFI.
Tickers follow Yahoo conventions: stocks AAPL, crypto BTC-USD,
forex EURUSD=X, indices ^GSPC.
Related MCP server: Stock Data MCP Server
Install
# 1. Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# 2. Register the server with Claude Code (runs straight from this repo)
claude mcp add tradingview -- uvx --from /path/to/Trading-view-MCP tradingview-mcpTo make it available in every project (user scope) rather than just the current one:
claude mcp add -s user tradingview -- uvx --from /path/to/Trading-view-MCP tradingview-mcpOnce published to PyPI you'd instead use:
uv tool install tradingview-mcp-server
claude mcp add tradingview -- uvx --from tradingview-mcp-server tradingview-mcpVerify
claude mcp list # tradingview should show "connected"Inside a session, /mcp lists the live tools. Then just ask in plain language,
e.g. "screen AAPL, MSFT, NVDA for RSI under 35 on the daily" — Claude calls
the tools itself.
Run it directly
uv run tradingview-mcp # starts the stdio serverTool examples
Screen for oversold names below their 200-day average:
{
"symbols": ["AAPL", "MSFT", "NVDA", "TSLA"],
"conditions": [
{"indicator": "rsi", "params": {"length": 14}, "op": "<", "value": 35},
{"indicator": "close", "op": "<",
"value": {"indicator": "sma", "params": {"length": 200}}}
],
"match": "all"
}Detect a 20/50 EMA bullish crossover:
{
"symbols": ["BTC-USD", "ETH-USD"],
"conditions": [
{"indicator": "ema", "params": {"length": 20}, "op": "crosses_above",
"indicator2": "ema", "params2": {"length": 50}}
]
}Multi-column indicators (macd, bollinger, stochastic, adx,
keltner, donchian) take a column, e.g.
{"indicator": "macd", "column": "histogram", "op": ">", "value": 0}.
Development
uv sync --extra dev
uv run pytest # indicator + screener tests, no network neededArchitecture
src/tradingview_mcp/
server.py # FastMCP tool definitions (the MCP surface)
data.py # the only module that touches the network (yfinance)
indicators.py # pure pandas/numpy indicator engine (TA-Lib-free)
screener.py # screening + backtesting on top of the engineLicense
MIT
This server cannot be installed
Maintenance
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/Daveshelly3/Trading-view-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server