
TradingMCP
io.github.atilaahmettanerPublished by GitHub account atilaahmettanerv0.9.1Updated Oct 26, 2026
Market analysis for AI assistants: screeners, multi-timeframe analysis, backtests, in-chat charts.
Overview
Hosted market-data and technical-analysis server that lets an assistant screen stocks, crypto, forex and futures, run backtests and draw charts in chat.
- What you can do
- Quote and snapshot prices across stocks, crypto, ETFs, indices and FX, plus global market overviews
- Screen symbols by exchange and filter criteria, scan by signal type and detect candlestick patterns
- Run technical analysis with indicators and ratings, including multi-timeframe alignment and decision scores
- Backtest nine strategies, compare them, and run walk-forward validation with an overfitting verdict
- Pull news headlines and Reddit sentiment, or combine technicals, sentiment and news into one confluence call
- Render interactive candlestick charts inside the conversation
- When to use it
- Useful when you want an assistant to answer market questions, screen instruments, compare trading strategies or produce a morning market brief without installing anything or holding a TradingView account.
- Requirements
- Remote endpoint at mcp.tradingmcp.ai, connected as a connector or private link; OAuth sign-in plus an X-API-Key header for tool calls (the handshake and tool list work without it). The hosted service is paid, from $9/mo with a 14-day money-back guarantee; a free self-hosted Python package exists separately.
Installation
In SourceWeft
- Open TradingMCP in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.atilaahmettaner%2Ftradingview-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"tradingmcp": {
"type": "http",
"url": "https://mcp.tradingmcp.ai/mcp"
}
}
}README
TradingView MCP Market Data & Technical Analysis for AI Assistants
[15-second product film: an AI is asked 'What did the market do today?', a live market board assembles, Ethereum is marked as the day's top mover and its daily chart with Bollinger Bands is drawn in the chat — TradingMCP, the hosted version of this server]
15 seconds, real output (market data as of 13 Oct 2026) · this server, hosted as TradingMCP · watch in full quality
[atilaahmettaner%2Ftradingview-mcp | Trendshift]
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 + 39 technical-analysis tools — the most complete TradingView MCP toolkit, all in one server.
Don't want to install anything? TradingMCP, the hosted version of this server, gives you all 39 tools in your AI app. In Claude, Cursor or Grok, add https://mcp.tradingmcp.ai/mcp as a connector and sign in: no key to paste. ChatGPT, Copilot and other MCP clients connect with a private link. From $9/mo with a 14-day money-back guarantee; self-hosting stays free.
[Add TradingMCP to Claude]
[Add TradingMCP to Cursor]
One click opens Claude's connector dialog with TradingMCP filled in; sign in with the email you subscribe with. Other apps: tradingmcp.ai/connect
Morning market brief in one prompt: ask "give me this morning's market brief" and get global indices, futures, the Bitcoin pulse and the hosted Markets panel in one answer. Charts are drawn right in the chat (demo below). In Grok Bot, add the Market Brief bot to get one on weekday mornings.
🆕 The hosted version (TradingMCP) 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:
Add one URL and sign in (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:
[!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:
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. TradingMCP serves all 39 tools in Claude, ChatGPT, Cursor, Grok and Copilot — no
uv,pandas, or Python to wrangle, and in Claude, Cursor and Grok you just sign in instead of pasting a key. From $9/mo (Pro) or $29/mo (Pro+ — higher limits), with a 14-day money-back guarantee. 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.)
[License: MIT] [Python 3.10-3.13] [MCP Ready] [OpenClaw Ready] [Version] [PyPI] [GitHub Sponsors]
[Sponsor $5] [Sponsor $15] [Sponsor $30]⭐ If this tool improves your workflow, please star the repo and consider sponsoring — it keeps the project alive and growing!
🎥 Framework Demo
🆕 What's New
Stability & Strategy Expansion (May 2026)
- 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 toasync def. FastMCP runs sync tools serialized on the event loop — async unlocks real intra-server parallelism so concurrent tool calls actually overlap.combined_analysisadditionally fans its 3 sub-calls out viaasyncio.gatherfor ~3× wall-clock improvement on the power tool.yahoo_price/stock_extended_hoursusehttpx.AsyncClientfor true non-blocking I/O; sync-library tools (tradingview_ta,tradingview-screener,feedparser) are off-loaded viaasyncio.to_thread. (PR — open) - 9 backtest strategies (up from 6) — added
rsi_pullback,keltner_breakout, andtriple_ema, covering trend-pullback, ATR-normalized breakout, and SMA200-filtered EMA cross edges.compare_strategiesnow ranks the full 9. - Resilience layer — automatic retry + 60-second TTL cache on the TradingView screener provider, eliminating transient
"Expecting value"errors oncombined_analysisandmulti_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: 0bug onfinancial_news. (PR #33 — merged) - TA throttle — caps concurrent
tradingview_tacalls (default 4) + min 0.8s spacing between starts. Prevents parallel bursts ofcombined_analysis/multi_timeframe_analysisfrom hitting TradingView's empty-body rate-limit cliff. Tunable via env vars. (PR #34 — merged) - Walk-forward backtesting (
walk_forward_backtest_strategy) — train/test split with overfitting verdict (ROBUST / MODERATE / WEAK / OVERFITTED). - Hourly (1h) timeframe support across
backtest_strategy,compare_strategies, andwalk_forward_backtest_strategy. - Full trade log + equity curve outputs (
include_trade_log=True,include_equity_curve=True).
🏗️ Architecture
[tradingview-mcp Architecture]
✨ Why tradingview-mcp?
[!WARNING] Security notice: impersonating copies of this repository. This project is Python-only and has no official npm / Node.js package. The only official sources are this repository (
atilaahmettaner/tradingview-mcp), the PyPI packagetradingview-mcp-server, and the hosted version, TradingMCP, at tradingmcp.ai (formerly pro.cryptosieve.com).Copies of this repository published under other accounts add a
package.jsonwhose dependencies install malware through npm (for exampleoracle-redis, MAL-2026-16390). If you cloned a "tradingview-mcp" repository from another account and rannpm install, treat that machine as compromised. Thanks to @roberttidball for the report (#101).
🚀 Quick Start (5 Minutes)
Two ways to run it — the same 39 tools either way:
☁️ Zero setup: add
https://mcp.tradingmcp.ai/mcpas a connector in Claude, Cursor or Grok and sign in; ChatGPT, Copilot and other clients use your private link → get started with TradingMCP from $9/mo (14-day money-back guarantee) · setup guide. Everything below is for self-hosting.
Install via pip
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:
Without a token those two tools return a friendly "not configured" note — all other tools work normally.
Claude Desktop Config (claude_desktop_config.json)
Note: On macOS, GUI apps like Claude Desktop may not have
~/.local/binin their PATH. Use the full path touvxto avoid "command not found" errors.
On Linux, replace /Users/YOUR_USERNAME with /home/YOUR_USERNAME. On Windows, use %USERPROFILE%\.local\bin\uvx.exe.
Codex Plugin Config
This repository also includes mcp-only Codex plugin metadata:
.codex-plugin/plugin.json.codex-mcp.json
The plugin uses the same PyPI package entrypoint:
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
How is the hosted version different from TradingView's official MCP?
TradingView launched its own MCP server in public beta on 16 Sep 2026. It is a good product, and for some jobs it is the better pick. Here is the honest difference (competitor facts checked Oct 2026 against TradingView's own MCP docs, launch post and pricing page):
- Analysis, not just data. TradingMCP runs multi-timeframe analysis, walk-forward backtests, smart-money and volume scans, and draws interactive charts in the chat. TradingView's MCP returns data, screens and a single-timeframe technical rating; its tool list has no backtesting or chart rendering (docs, checked Oct 2026).
- Morning market brief in one prompt. Global market snapshot, futures overview, Bitcoin pulse and the Markets panel in a single answer.
- $9 all-in, nothing else to subscribe to. TradingView's MCP is included only in paid TradingView plans, Essential and higher; trial plans don't include it (docs, pricing, checked Oct 2026). TradingMCP is $9/mo Pro or $29/mo Pro+ with a 14-day money-back guarantee, and self-hosting this repo stays free.
Where TradingView's MCP wins: fundamentals and analyst forecasts, SEC filings and earnings-call transcripts, editing your TradingView watchlists and alerts, and data that comes officially from TradingView itself (docs, checked Oct 2026). If that is what you need, use theirs, or run both side by side.
Try TradingMCP · works in Claude, ChatGPT, Cursor, Grok, Copilot or any MCP client.
🛠️ 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:
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):
On macOS use the full path to uvx (see the note in Quick Start). On Windows uvx is typically %USERPROFILE%\.local\bin\uvx.exe.
Alternative — pre-install once, then let Claude Desktop reuse the cache:
After the install finishes, start Claude Desktop with the normal config and the server will come up instantly (cache is already warm).
⚠️ Error Envelope Format
Tools that have adopted the structured error format return either their normal payload or an error envelope:
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:
Stable codes are defined in core/errors.py.
📱 Use via Telegram, WhatsApp & More (OpenClaw)
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 calltradingview-mcpfunctions and return formatted results. No MCP protocol needed between OpenClaw and the server; it's a direct Python import.
Quick Setup
Choose Your AI Model
OpenRouter is not required — use whichever provider you have a key for:
⚠️ Important: Prefix must match your provider.
google/...needs a Google API key.openrouter/...needs an OpenRouter key.
⚠️ Common Mistakes
Test Your Bot
Once running, send your Telegram bot:
Unlike basic screeners, this framework deploys specialized AI agents that debate findings in real-time:
- 🛠️ Technical Analyst — Bollinger Bands (±3 proprietary rating), RSI, MACD
- 🌊 Sentiment & Momentum Analyst — Reddit community sentiment + price momentum
- 🛡️ Risk Manager — Volatility, drawdown risk, mean-reversion signals
Output: STRONG BUY / BUY / HOLD / SELL / STRONG SELL with confidence score
🔧 All 39 MCP Tools
📊 Backtesting Engine
9 Strategies to Test:
rsi— RSI oversold/overbought mean reversionbollinger— Bollinger Band mean reversionmacd— MACD golden/death crossema_cross— EMA 20/50 Golden/Death Crosssupertrend— ATR-based Supertrend trend following 🔥donchian— Donchian Channel breakout (Turtle Trader style)rsi_pullback— Dip-buy in confirmed uptrend (SMA50>SMA200 + RSI<40 entry) 🆕keltner_breakout— ATR-normalized breakout (EMA20 + 2·ATR upper band) 🆕triple_ema— EMA 20/50 cross gated by SMA200 trend filter 🆕
🆕 strategies require
period='1y'or'2y'so the SMA200 trend filter can complete its warmup.
Metrics you get: Win Rate, Total Return, Sharpe Ratio, Calmar Ratio, Max Drawdown, Profit Factor, Expectancy, Best/Worst Trade, vs Buy-and-Hold, with realistic commission + slippage simulation.
💰 Yahoo Finance — Real-Time Prices (New in v0.6.0)
Supports: Stocks (AAPL, TSLA, NVDA), Crypto (BTC-USD, ETH-USD, SOL-USD), ETFs (SPY, QQQ, GLD), Indices (^GSPC, ^DJI, ^IXIC, ^VIX), FX (EURUSD=X), Turkish (THYAO.IS, SASA.IS)
🌍 Global Stock Screener — Common & Preferred Shares
🧠 AI Sentiment & Intelligence
📈 Technical Analysis Core
🌍 Multi-Exchange Support
💬 Example AI Conversations
💖 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:
[Sponsor]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, European, Canadian, Indian and Indonesian stocks)
- Reddit sentiment analysis
- Live financial news (Yahoo / MarketWatch / CNBC / CoinDesk / CoinTelegraph)
- Yahoo Finance real-time prices
- Backtesting engine (9 strategies + Sharpe / Calmar / Expectancy)
- Walk-forward backtesting (overfitting detection)
- Resilience layer (retry + TTL cache) on screener provider
- Hourly (1h) backtesting timeframe
- Twitter/X market sentiment
- Paper trading simulation
- Managed cloud hosting (no local setup)
📄 License
MIT License — see LICENSE for details.
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.
Source: README.md at commit 9423f47
Tools
0Version history
3- v0.9.1LatestOct 21, 2026
- v0.9.0Oct 16, 2026
- v0.8.1Sep 16, 2026
Score
85% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts