This MCP server provides real-time market data plus screeners, technical analysis, and backtesting capabilities for stocks, crypto, and forex. It is associated with topics including TradingView, market data, trading strategies, and the Model Context Protocol (MCP).
π οΈ Key Features
Real-time market data
Screeners
Technical analysis
Backtesting
Coverage includes stocks, crypto, and forex
π Use Cases
Identify markets using screeners
Evaluate trading ideas with technical analysis
Test trading strategies via backtesting for stocks, crypto, and forex
β‘ Developer Benefits
Fits the Model Context Protocol (MCP) workflow
Exposes tools related to market-data and technical-analysis use cases
Aligns with TradingView-centric topics (e.g., tradingview, trading-strategies)
β οΈ Limitations
Source data does not specify tool count, authentication, supported exchanges, or runtime/environment requirements.
TradingView MCP Market Data & Technical Analysis for AI Assistants
TradingView 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.
Backtesting + live sentiment + Yahoo Finance + 37 technical-analysis tools β the most complete TradingView MCP toolkit, all in one server.
π The hosted server now draws. Ask for a chart and an interactive candlestick view (1d / 1h / 15m, optional Bollinger overlay) renders live inside the conversation via MCP Apps β and the AI reads the band values back to you:
Paste one URL (or pip install), then just ask. Real output, straight from the live server:
Try these first β they work in Claude, ChatGPT, Cursor, or any MCP client:
text
Show today's top crypto gainers on Binance
Run a full technical analysis of NVDA
What's the multi-timeframe read on gold?
Backtest an RSI strategy on BTC on the daily timeframe
NOTE
Independent open-source project β not affiliated with, endorsed by, or associated with TradingView Inc. "TradingView" is a trademark of its respective owner; this project consumes third-party market data and is not a TradingView product.
NOTE
Does it need β or risk β your TradingView account? No. This server does not log into, scrape, or automate a TradingView session, and it requires no TradingView account or API key. Market data is fetched server-side from public endpoints, so there is no account of yours in the loop and no browser/UI automation. (This is different from MCP servers that drive the TradingView Desktop app via Chrome DevTools.) You are responsible for ensuring your own use complies with the terms of any data source you point it at.
How this compares to desktop-automation TradingView MCPs (the ones that remote-control TradingView Desktop)
"TradingView MCP" now means two very different kinds of project. Both are useful β for different jobs:
This project β data & analysis API
Desktop-automation MCPs
What you need
Nothing β public market data
TradingView Desktop, usually with a paid TradingView plan
Where it works
Claude.ai, Claude Code, ChatGPT, Cursor, Copilot β any MCP client
If you want an AI clicking around your TradingView Desktop β editing Pine Script, drawing on charts, using replay β check out tradesdontlie/tradingview-mcp. If you want headless market data, screeners and backtesting available to any AI client, with nothing installed and no TradingView account in the loop β that's this project.
IMPORTANT
Not financial advice. Nothing produced by this software is investment, financial, legal, tax, or accounting advice. tradingview-mcp is an informational and educational analysis tool. Its outputs, including indicators, scores, signals, "trade setups", entries, stop losses, and targets, are computed from third party market data and are not recommendations to buy, sell, or hold any asset. It does not execute trades, manage money, or guarantee any result. Trading and investing carry a substantial risk of loss, and you can lose some or all of your capital. Always do your own research and consult a licensed professional before making any financial decision. You are solely responsible for your own decisions and for complying with the laws and regulations that apply to you. Market data may be delayed, inaccurate, or incomplete, and is provided without warranty.
TIP
Prefer zero setup? Use the hosted version.pro.cryptosieve.com serves all 37 tools as one connector URL for Claude.ai, ChatGPT, Copilot, and Cursor β no uv, pandas, or Python to wrangle. From $9/mo (Pro) or $29/mo (Pro+ β higher limits), with a 3-day free trial. Self-hosting stays free forever; hosted is just for folks who'd rather skip the ops. (Full self-host vs hosted comparison in Quick Start below.)
Async hot-path tools β 7 high-traffic tools (yahoo_price, stock_extended_hours, top_gainers, volume_breakout_scanner, multi_timeframe_analysis, financial_news, combined_analysis) converted to async def. FastMCP runs sync tools serialized on the event loop β async unlocks real intra-server parallelism so concurrent tool calls actually overlap. combined_analysis additionally fans its 3 sub-calls out via asyncio.gather for ~3Γ wall-clock improvement on the power tool. yahoo_price / stock_extended_hours use httpx.AsyncClient for true non-blocking I/O; sync-library tools (tradingview_ta, tradingview-screener, feedparser) are off-loaded via asyncio.to_thread. (PR β open)
9 backtest strategies (up from 6) β added rsi_pullback, keltner_breakout, and triple_ema, covering trend-pullback, ATR-normalized breakout, and SMA200-filtered EMA cross edges. compare_strategies now ranks the full 9.
Resilience layer β automatic retry + 60-second TTL cache on the TradingView screener provider, eliminating transient "Expecting value" errors on combined_analysis and multi_timeframe_analysis. (PR #32 β merged)
Financial news service rebuild β replaces deprecated Reuters RSS endpoints with Yahoo Finance, MarketWatch, and CNBC. Fixes the long-standing count: 0 bug on financial_news. (PR #33 β merged)
TA throttle β caps concurrent tradingview_ta calls (default 4) + min 0.8s spacing between starts. Prevents parallel bursts of combined_analysis / multi_timeframe_analysis from hitting TradingView's empty-body rate-limit cliff. Tunable via env vars. (PR #34 β merged)
βοΈ Zero setup: paste one connector URL into Claude.ai, ChatGPT, Copilot, or Cursor β start a 3-day free trial. Everything below is for self-hosting.
Install via pip
bash
pip install tradingview-mcp-server
Optional: news & sentiment (free Marketaux key)
financial_news and market_sentiment (plus the news/sentiment parts of
combined_analysis) are powered by Marketaux β
licensed market news with per-entity sentiment. Grab a free API key
(100 requests/day; the server caches for 4h and shares one fetch between news
and sentiment, so the free tier goes a long way) and set:
After installing or enabling the Codex plugin, restart Codex so the MCP server is loaded in the next session. Depending on your Codex version, codex mcp list may show registered MCP servers, but tool availability should be verified in a fresh Codex session.
Or run from source
bash
git clone https://github.com/atilaahmettaner/tradingview-mcp
cd tradingview-mcp
uv run tradingview-mcp
π οΈ Troubleshooting
πͺ Windows: MCP error -32001: Request timed out on first launch
Symptom β you see this in the Claude Desktop logs shortly after adding the config:
code
[tradingview] Server started and connected successfully
[tradingview] Message from client: initialize ...
[60 seconds later]
[tradingview] notifications/cancelled β reason: "MCP error -32001: Request timed out"
Why it happens: Python 3.14 is not supported yet. uvx downloads tradingview-mcp-server, creates a fresh virtualenv, and installs dependencies the first time it runs. Some native dependencies in the MCP stack do not currently publish compatible Python 3.14 wheels, so installation can fall back to source builds or fail before Claude Desktop finishes initializing the server.
Fix β pin to Python 3.13 (has prebuilt pandas wheels):
Tools that have adopted the structured error format return either their normal payload or an error envelope:
json
{"error":{"code":"ALL_BATCHES_FAILED","message":"All 5 batches failed; first error: JSONDecodeError(...)","batches_attempted":5,"batches_failed":5,"first_error":"...","retryable":true}}
Why: the previous [] / {"error": "Analysis failed: ..."} strings made it impossible to distinguish "no matches today" from "upstream rate-limit cliff." The new envelope is programmatically branchable by code, and retryable tells the caller whether waiting and retrying can help (upstream storms pass; a missing dependency won't fix itself).
Full coverage (every failure mode β upstream outage, empty symbol list, missing dependency, unexpected exception β returns an envelope, never a raw string/traceback): top_gainers, top_losers, bollinger_scan, rating_filter, volume_breakout_scanner, smart_volume_scanner.
Partial adoption (main error paths return envelopes): coin_analysis, volume_confirmation_analysis, consecutive_candles_scan, futures_market_overview, futures_top_movers, stock_prices, and the backtest input guards. Remaining tools migrate in batches β tracked in #76.
Detecting an error:
python
result = volume_breakout_scanner(exchange="KUCOIN")
ifisinstance(result, dict) and"error"in result:
code = result["error"]["code"]
if result["error"].get("retryable"):
# Wait + retry, raise alert, fall back to single-batch call, etc.
...
else:
for row in result:
...
Connect this server to Telegram, WhatsApp, Discord and 20+ messaging platforms using OpenClaw β a self-hosted AI gateway. Tested & verified on Hetzner VPS (Ubuntu 24.04).
How It Works
OpenClaw routes Telegram messages to an AI agent. The agent uses trading.py β a thin Python wrapper β to call tradingview-mcp functions and return formatted results. No MCP protocol needed between OpenClaw and the server; it's a direct Python import.
# Examples β set your chosen model:
openclaw config set agents.defaults.model "openrouter/google/gemini-3-flash-preview"# via OpenRouter
openclaw config set agents.defaults.model "anthropic/claude-sonnet-4-5"# Anthropic direct
openclaw config set agents.defaults.model "google/gemini-2.5-flash"# Google direct
β οΈ Important: Prefix must match your provider. google/... needs a Google API key. openrouter/... needs an OpenRouter key.
β οΈ Common Mistakes
Symptom
Cause
Fix
Unrecognized keys: mcpServers
mcpServers not supported in this version
Remove from config, use bash wrapper
No API key for provider "google"
Used google/model but only have OpenRouter key
Use openrouter/google/model instead
which agent? loop
acp.defaultAgent not set
openclaw config set acp.defaultAgent main
Gateway won't start
gateway.mode missing
openclaw config set gateway.mode local
Test Your Bot
Once running, send your Telegram bot:
code
market snapshot
backtest RSI strategy for AAPL, 1 year
compare all strategies for BTC-USD
π Global Stock Screener β Common & Preferred Shares
Tool
Description
stock_screener
List common or preferred stocks for any TradingView country market (america, korea, germany, brazil, β¦) with price, currency, % change, dividend yield β ranked by market cap. The API twin of TradingView's "Common stock" / "Preferred stock" symbol-search filter.
stock_prices
Direct price lookup for specific symbols (comma-separated EXCHANGE:SYMBOL, e.g. NASDAQ:NVDA, KRX:005930) β price, currency, daily % change, with unrecognized tickers named in not_found.
π§ AI Sentiment & Intelligence
Tool
Description
market_sentiment
Reddit sentiment across finance communities (bullish/bearish score, top posts)
financial_news
Live RSS headlines from Yahoo Finance, MarketWatch, CNBC, CoinDesk, CoinTelegraph
combined_analysis
Power Tool: TradingView technicals + Reddit sentiment + live news β confluence decision. Now backed by retry + 60s cache for resilience against transient screener errors.
π Technical Analysis Core
Tool
Description
get_technical_analysis
Full TA: RSI, MACD, Bollinger, 23 indicators with BUY/SELL/HOLD
You: "Give me a full market snapshot right now"
AI: [market_snapshot] β S&P500 -3.4%, BTC +0.1%, VIX 31 (+13%), EUR/USD 1.15
You: "What is Reddit saying about NVDA?"
AI: [market_sentiment] β Strongly Bullish (0.41) | 23 posts | 18 bullish
You: "Backtest RSI strategy on BTC-USD for 2 years"
AI: [backtest_strategy] β +31.5% return | 100% win rate | 2 trades | B&H: -5%
You: "Which of the 9 strategies worked best on MSFT in the last 2 years?"
AI: [compare_strategies] β triple_ema #1 (+15.1%, WR 100%), keltner_breakout #2 (+14.3%), macd last (-23.4%)
You: "Run walk-forward backtest on supertrend for SPY"
AI: [walk_forward_backtest_strategy] β Verdict: ROBUST (avg robustness 0.92) | OOS return +8.5%
You: "Analyze TSLA with all signals: technical + sentiment + news"
AI: [combined_analysis] β BUY (Technical STRONG BUY + Bullish Reddit + Positive news)
π Support the Project
This framework is free and open source, built in spare time. If it saves you hours of research or helps you make better decisions, please consider sponsoring:
Tier
Monthly
What You Get
β Coffee
$5
Heartfelt gratitude + name in README
π Supporter
$15
Above + priority bug fixes
π Pro
$30
Above + priority feature requests
Every sponsor directly funds new features like Walk-Forward Backtesting, Twitter/X sentiment, and managed cloud hosting.
π Roadmap
TradingView technical analysis (30+ indicators)
Multi-exchange screener (Binance, KuCoin, MEXC, EGX, US stocks)
Disclaimer: This tool is for educational and research purposes only. It does not constitute financial advice. Always do your own research before making investment decisions.
Install
Remote endpoint
Streamable HTTP
Hosted server - connect over the network, no local install.