Skip to content
MCP Shelf

TradingView MCP Server

Prices, indicators, screeners and backtests for stocks, crypto and forex, no account needed.

View on GitHub
  • Started in our test
  • ★ 5.2K GitHub stars
  • Last commit 28 Oct 2026

What is TradingView MCP?

TradingView MCP is an independent open source MCP server that gives AI assistants market screeners, technical indicators and price data for stocks, crypto and forex, using public data and no account.

Tools
37
Runs on
Your computer or hosted
Licence
MIT
GitHub stars
5.2K

Good for

  • A quick technical read on a stock or coin from a chat
  • Screening an exchange for gainers, losers or unusual volume
  • Trying a simple trading rule on past data before taking it seriously

You'll need

  • uv, with Python 3.10 to 3.13 (3.14 is not supported yet)
  • Optional: a free Marketaux key for the news and sentiment tools

Started in our testWe ran this exact config on 27 Oct 2026: it started and answered with 37 tools. The project is Python only: the real package is tradingview-mcp-server on PyPI. The author warns that copies under other accounts add an npm package that installs malware, so avoid any npm version.

MCP Shelf take

We started TradingView on our own test machine on 27 Oct 2026 and it answered with 37 tools. All 37 only read, so it cannot change anything on its own. Every tool comes with a useful description, all of them say whether they change things, and the tool list costs about 6,000 tokens of context before you ask a thing. Other directories point at a package with the same name that belongs to someone else; the config on this page installs the real one. It sits 2nd of 16 in its category on our shelf by GitHub stars (5.2K).
MCP Shelf tests: numbers from our own runs, not the README · tested on 27 Oct 2026

What can TradingView MCP read and change?

It can read

  • Public market data from TradingView's screener and Yahoo Finance
  • News from Marketaux, if you add a key

It can change

  • Nothing: it has no brokerage or TradingView access and cannot place trades or change anything

Safer setup: It only reads public data and has no access to any brokerage or TradingView account, so it cannot place trades.

TradingView MCP in more detail

This open source Python server answers market questions with public data: TradingView's screener and technical ratings, Yahoo Finance prices, and optional news sentiment. The model can scan an exchange for top movers or volume breakouts, run a multi-timeframe read on a symbol, and backtest one of nine simple strategies, including a walk-forward test that warns when a strategy only fits the past.

It is an independent project, not made by TradingView, and it never signs in to a TradingView account. The author also sells a hosted copy called TradingMCP; the self-hosted server here is free under the MIT licence. Nothing it says is financial advice.

Made by
Atilla Ahmet Taner, an independent developer (not TradingView Inc.)
Latest version
0.8.1 (24 Aug 2026)
Last commit
28 Oct 2026
Setup checked
27 Oct 2026
Page updated
27 Oct 2026

What's in the pod

What tools does TradingView MCP have?

We found 37 tools when we started it on 27 Oct 2026. Every one of them only reads, so nothing changes unless you act on what it finds.

Only reads37 tools · Looks things up and changes nothing.

ToolWhat it is for
advanced_candle_patternLooks for candle patterns across several timeframes.
backtest_strategyTests one of nine rule-based strategies on past prices and reports return, drawdown, Sharpe ratio and win rate.
bitcoin_market_pulseBitcoin price, dominance and total crypto market cap with a risk note.
bollinger_scanScans an exchange for tight Bollinger Bands, a common sign that a big move may follow.
coin_analysisFull technical read on one coin or stock: indicators, ratings and levels.
combined_analysisTechnical analysis, news sentiment and headlines for one symbol in a single call.
compare_strategiesRuns all nine strategies on one symbol and ranks them.
consecutive_candles_scanFinds symbols with several rising or falling candles in a row.
egx_fibonacci_retracementFibonacci levels for an Egyptian stock.
egx_index_analysisHow the members of an Egyptian index are doing.
egx_market_overviewAn overview of the Egyptian Exchange.
egx_sector_scanEgyptian stocks grouped by sector.
egx_sector_scannerWhich Egyptian sectors are strong or weak, with top picks.
egx_stock_screenerRanks Egyptian stocks by setup strength.
egx_trade_planA full trade plan with entries, stops and targets for one Egyptian stock.
financial_newsRecent market headlines, filtered by symbol if you like. Needs a Marketaux key.
futures_category_snapshotQuotes for the main contracts in one category, such as energy or metals.
futures_market_overviewThe most traded futures contracts, by category.
futures_top_moversFutures with the biggest moves today.
futures_watchlistThe list of well-known futures symbols it understands, by category.
market_sentimentNews sentiment for a stock or coin, from Marketaux. Needs a key.
market_snapshotA quick view of major indices, top coins, currencies and key ETFs.
multi_agent_analysisHas a technical, a sentiment and a risk view argue over one symbol and reports their verdict.
multi_timeframe_analysisChecks whether weekly, daily, 4-hour, hourly and 15-minute signals agree.
rating_filterFilters symbols by their Bollinger Band rating.
smart_volume_scannerCombines volume spikes with technical filters to shortlist symbols.
stock_extended_hoursPre-market and after-hours prices for a US stock.
stock_options_chainThe calls and puts for one US stock and expiry.
stock_options_unusual_activityOption strikes with unusually high volume against open interest.
stock_pricesPrice and daily change for a list of exchange-prefixed tickers.
stock_screenerScreens stocks by share type, such as common or preferred.
top_gainersLists the biggest risers on an exchange over a timeframe, with Bollinger Band context.
top_losersLists the biggest fallers on an exchange.
volume_breakout_scannerFinds symbols breaking out on both price and volume.
volume_confirmation_analysisChecks whether volume backs up the recent move on one symbol.
walk_forward_backtest_strategyTests a strategy on data it was not tuned on and flags overfitting.
yahoo_priceA live quote from Yahoo Finance for a stock, coin, ETF or index.

Grouped and described by us. The README on GitHub lists the inputs each tool takes.

How clearly it describes its tools to your assistant

Tools with a description
37 of 37
Say if they change things
37 of 37
Context it takes, at least
~6,000 tokens

Every tool says whether it only reads or can change things, so a client can ask before the risky ones. The tool list is large: switch off the tools you do not use if your client allows it.

From the tool list it sent us. The token figure counts names, descriptions and input names; the full schemas your client loads add more.

How do I install TradingView MCP?

Install steps from the TradingView MCP README

The project's own instructions, copied from its README on GitHub on 27 Oct 2026 under its MIT licence. They are the source of truth; the ready-made configs further down are built from them. The rest of the README is in the README tab.

🚀 Quick Start (5 Minutes)

Two ways to run it — the same 39 tools either way:

🧑‍💻 Self-host (this repo) ☁️ Hosted — TradingMCP
Price Free forever (MIT) $9/mo Pro · $29/mo Pro+ · 14-day money-back guarantee
Time to first call ~5 minutes (Python + uv) ~60 seconds (add one URL, sign in)
Updates & ops You run and update it Managed — always on the latest
Runs on Your machine or VPS Hosted, streamed from the edge
Limits Your hardware 2,500/mo · 60/min (Pro) → 10,000/mo · 150/min (Pro+)
Best for Tinkerers, forkers, full control Folks who'd rather skip the ops

☁️ Zero setup: add https://mcp.tradingmcp.ai/mcp as 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
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:

export MARKETAUX_API_TOKEN=your_token_here   # optional

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/bin in their PATH. Use the full path to uvx to avoid "command not found" errors.

{
  "mcpServers": {
    "tradingview": {
      "command": "/Users/YOUR_USERNAME/.local/bin/uvx",
      "args": ["--from", "tradingview-mcp-server", "tradingview-mcp"]
    }
  }
}

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:

{
  "mcpServers": {
    "tradingview": {
      "command": "uvx",
      "args": ["--from", "tradingview-mcp-server", "tradingview-mcp"]
    }
  }
}

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
git clone https://github.com/atilaahmettaner/tradingview-mcp
cd tradingview-mcp
uv run tradingview-mcp
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):

  1. 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).
  2. Morning market brief in one prompt. Global market snapshot, futures overview, Bitcoin pulse and the Markets panel in a single answer.
  3. $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.


What you need first

  • uv, with Python 3.10 to 3.13 (3.14 is not supported yet)
  • Optional: a free Marketaux key for the news and sentiment tools

Add TradingView MCP to your app

Pick your app for a ready-to-paste snippet and where it goes, built from the steps above.

Where it goes: Your terminal, in the project folder

Claude Code
claude mcp add tradingview -- uvx --from tradingview-mcp-server tradingview-mcp

Add "MARKETAUX_API_TOKEN" in env to switch on financial_news and market_sentiment. Claude Desktop on a Mac often needs the full path to uvx.

Remote option

The author's paid hosted version (TradingMCP), with sign-in and monthly limits. It serves the same tools plus charts drawn in the chat.

Server URL
https://mcp.tradingmcp.ai/mcp

Checked against the project's own install docs on 27 Oct 2026: atilaahmettaner/tradingview-mcp README.

Did this work for you?

Projects change their install steps often. If TradingView MCP did not install, or something here no longer matches the project, tell us and we will check it against the README and fix the page.

New to this? See the setup guides for Claude Code, Cursor, Claude Desktop, VS Code, Codex and ChatGPT. If it will not start, test it in MCP Inspector and look up the error in Fixing MCP server errors.

TradingView MCP not working? Common fixes

Requests time out on the first launch on Windows
Python 3.14 is not supported yet. Install Python 3.13 or older and point uvx at it with --python 3.13.
The news tools say they are not configured
Add MARKETAUX_API_TOKEN in env. Every other tool works without it.
Claude Desktop says uvx was not found
Use the full path to uvx, such as /Users/you/.local/bin/uvx, because desktop apps do not see your shell PATH.
An analysis returns empty values
TradingView sometimes returns nothing for bursts of requests. The server retries and caches, but ask for fewer symbols at once if it keeps happening.

How do I configure TradingView MCP?

Names are exactly as the project spells them. Required ones are marked.

SettingWhat it does
MARKETAUX_API_TOKENEnvironment variableA free Marketaux key that switches on the news and sentiment tools. The free tier allows 100 requests a day, and results are cached for four hours.
--from tradingview-mcp-serverCommand line flag · requiredTells uvx which PyPI package holds the tradingview-mcp command.

TradingView MCP FAQ

How do I add TradingView MCP to Claude Code?

Run claude mcp add tradingview -- uvx --from tradingview-mcp-server tradingview-mcp. The PyPI package is tradingview-mcp-server and the command it provides is tradingview-mcp.

Is TradingView MCP made by TradingView?

No. It is an independent project by Atilla Ahmet Taner that uses public market data. It never signs in to TradingView or controls the TradingView app.

Is TradingView MCP free?

The server is free to run yourself under the MIT licence. TradingMCP, the author's hosted copy with the same tools and in-chat charts, costs from 9 dollars a month.

Can TradingView MCP place trades?

No. It only reads public data and has no access to any brokerage or TradingView account. Treat its signals as a starting point for your own research, not financial advice.

How do I get news in TradingView MCP?

Set MARKETAUX_API_TOKEN to a free Marketaux key (100 requests a day). That switches on financial_news and market_sentiment; every other tool works without it.

Why does Claude Desktop say uvx was not found?

Desktop apps often miss ~/.local/bin on their PATH. Put the full path to uvx in the command field, as the project's README shows for macOS, Linux and Windows.

Does TradingView MCP work with ChatGPT?

Not the free server, which runs on your computer. The paid TradingMCP service gives ChatGPT a private link instead.

Why does TradingView MCP time out the first time on Windows?

The first launch installs the package and its dependencies. Let it finish, then restart your app; later starts are quick.

TradingView MCP README

This is the project's own README from atilaahmettaner/tradingview-mcp, written by Atilla Ahmet Taner, an independent developer (not TradingView Inc.), and shared under its MIT licence. We copied it on 27 Oct 2026, so the version on GitHub may be newer.

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

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.

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 every weekday morning.

TradingView MCP in an AI chat: ask for the top gainers on Binance and get ranked, real-time results — one of 39 tools

🆕 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:

MCP Apps demo: asking Claude for a 15-minute Bollinger chart — an interactive candlestick chart with Bollinger Bands renders inside the conversation and Claude analyzes the band values

Add one URL and sign in (or pip install), then just ask. Real output, straight from the live server:

Real output: top crypto gainers on KuCoin with 24h change, RSI and signal — ranked table returned in chat

Real output: multi-timeframe gold analysis — weekly to 15m trend alignment with a LEAN BULLISH verdict

Try these first — they work in Claude, ChatGPT, Cursor, or any MCP client:

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 Mostly Claude Code, on your own machine
When your machine is off Hosted version keeps answering, 24/7 Stops
Screeners & backtesting Built in (39 tools, multi-exchange) Whatever the TradingView UI offers
Charts Interactive in-conversation charts (MCP Apps, hosted) TradingView's own charts
Your TradingView account Not needed, never touched Drives your logged-in session

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.)

⭐ If this tool improves your workflow, please star the repo and consider sponsoring — it keeps the project alive and growing!


🎥 Framework Demo

https://github-production-user-asset-6210df.s3.amazonaws.com/67838093/478689497-4a605d98-43e8-49a6-8d3a-559315f6c01d.mp4


🆕 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 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)
  • 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, and walk_forward_backtest_strategy.
  • Full trade log + equity curve outputs (include_trade_log=True, include_equity_curve=True).

🏗️ Architecture

tradingview-mcp Architecture


✨ Why tradingview-mcp?

Feature tradingview-mcp Traditional Setups Bloomberg Terminal
Setup Time 5 minutes Hours (Docker, Conda...) Weeks (Contracts)
Cost Free & Open Source Variable $30k+/year
Backtesting ✅ 9 strategies + Walk-forward + Sharpe ❌ Manual scripting ✅ Proprietary
News & Sentiment ✅ Licensed news + per-ticker sentiment (Marketaux) ❌ Separate setup ✅ Terminal
Market Data ✅ Live / Real-Time Historical / Delayed Live
API Keys None required Multiple (OpenAI, etc.) N/A

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 package tradingview-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.json whose dependencies install malware through npm (for example oracle-redis, MAL-2026-16390). If you cloned a "tradingview-mcp" repository from another account and ran npm 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:

🧑‍💻 Self-host (this repo) ☁️ Hosted — TradingMCP
Price Free forever (MIT) $9/mo Pro · $29/mo Pro+ · 14-day money-back guarantee
Time to first call ~5 minutes (Python + uv) ~60 seconds (add one URL, sign in)
Updates & ops You run and update it Managed — always on the latest
Runs on Your machine or VPS Hosted, streamed from the edge
Limits Your hardware 2,500/mo · 60/min (Pro) → 10,000/mo · 150/min (Pro+)
Best for Tinkerers, forkers, full control Folks who'd rather skip the ops

☁️ Zero setup: add https://mcp.tradingmcp.ai/mcp as 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
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:

export MARKETAUX_API_TOKEN=your_token_here   # optional

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/bin in their PATH. Use the full path to uvx to avoid "command not found" errors.

{
  "mcpServers": {
    "tradingview": {
      "command": "/Users/YOUR_USERNAME/.local/bin/uvx",
      "args": ["--from", "tradingview-mcp-server", "tradingview-mcp"]
    }
  }
}

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:

{
  "mcpServers": {
    "tradingview": {
      "command": "uvx",
      "args": ["--from", "tradingview-mcp-server", "tradingview-mcp"]
    }
  }
}

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
git clone https://github.com/atilaahmettaner/tradingview-mcp
cd tradingview-mcp
uv run tradingview-mcp
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):

  1. 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).
  2. Morning market brief in one prompt. Global market snapshot, futures overview, Bitcoin pulse and the Markets panel in a single answer.
  3. $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:

[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):

{
  "mcpServers": {
    "tradingview": {
      "command": "uvx",
      "args": ["--python", "3.13", "--from", "tradingview-mcp-server", "tradingview-mcp"]
    }
  }
}

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:

# Run in a terminal before launching Claude Desktop
uv tool install --python 3.13 tradingview-mcp-server

After the install finishes, start Claude Desktop with the normal config and the server will come up instantly (cache is already warm).

Credit: @wyh4444 for the original report in #24.


⚠️ Error Envelope Format

Tools that have adopted the structured error format return either their normal payload or an error envelope:

{"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:

result = volume_breakout_scanner(exchange="KUCOIN")
if isinstance(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:
        ...

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 call tradingview-mcp functions and return formatted results. No MCP protocol needed between OpenClaw and the server; it's a direct Python import.

Telegram → OpenClaw agent (AI model) → trading.py (bash) → tradingview-mcp → Yahoo Finance
Quick Setup
# 1. Install UV and tradingview-mcp
curl -LsSf https://astral.sh/uv/install.sh | sh && source ~/.bashrc
uv tool install tradingview-mcp-server

# 2. Configure OpenClaw channels
cat > ~/.openclaw/openclaw.json << 'EOF'
{
  channels: {
    telegram: {
      botToken: "YOUR_BOT_TOKEN_HERE",
    },
  },
}
EOF

# 3. Configure gateway + agent
openclaw config set gateway.mode local
openclaw config set acp.defaultAgent main

# 4. Set your AI model (choose ONE option below)
openclaw configure --section model

# 5. Install the skill + tool wrapper
mkdir -p ~/.agents/skills/tradingview-mcp ~/.openclaw/tools
curl -fsSL https://raw.githubusercontent.com/atilaahmettaner/tradingview-mcp/main/openclaw/SKILL.md \
  -o ~/.agents/skills/tradingview-mcp/SKILL.md
curl -fsSL https://raw.githubusercontent.com/atilaahmettaner/tradingview-mcp/main/openclaw/trading.py \
  -o ~/.openclaw/tools/trading.py && chmod +x ~/.openclaw/tools/trading.py

# 6. Start the gateway
openclaw gateway install
systemctl --user start openclaw-gateway.service
Choose Your AI Model

OpenRouter is not required — use whichever provider you have a key for:

Provider Model ID for OpenClaw Get Key
OpenRouter (aggregator — access to all models) openrouter/google/gemini-3-flash-preview openrouter.ai/keys
Anthropic (Claude direct) anthropic/claude-sonnet-4-5 console.anthropic.com
Google (Gemini direct) google/gemini-2.5-flash aistudio.google.com
OpenAI (GPT direct) openai/gpt-4o-mini platform.openai.com
# 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:

market snapshot
backtest RSI strategy for AAPL, 1 year
compare all strategies for BTC-USD

👉 Full OpenClaw Setup Guide →


Unlike basic screeners, this framework deploys specialized AI agents that debate findings in real-time:

  1. 🛠️ Technical Analyst — Bollinger Bands (±3 proprietary rating), RSI, MACD
  2. 🌊 Sentiment & Momentum Analyst — Reddit community sentiment + price momentum
  3. 🛡️ 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
Tool Description
backtest_strategy Backtest 1 of 9 strategies with institutional metrics (Sharpe, Calmar, Expectancy). Supports 1d and 1h timeframes; optional full trade log + equity curve.
compare_strategies Run all 9 strategies on the same symbol and rank by performance.
walk_forward_backtest_strategy Train/test split walk-forward validation with overfitting verdict (ROBUST / MODERATE / WEAK / OVERFITTED).

9 Strategies to Test:

  • rsi — RSI oversold/overbought mean reversion
  • bollinger — Bollinger Band mean reversion
  • macd — MACD golden/death cross
  • ema_cross — EMA 20/50 Golden/Death Cross
  • supertrend — 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.

Example prompt: "Compare all 9 strategies on MSFT for 2 years"
→ #1 triple_ema:        +15.1% | Sharpe:  0.0 | WR: 100%
→ #2 keltner_breakout:  +14.3% | Sharpe:  4.7 | WR:  40%
→ #3 bollinger:         +12.2% | Sharpe:  4.1 | WR:  64%
→ Buy & Hold:            -2.1%

💰 Yahoo Finance — Real-Time Prices (New in v0.6.0)
Tool Description
yahoo_price Real-time quote: price, change %, 52w high/low, market state
market_snapshot Global overview: S&P500, NASDAQ, VIX, BTC, ETH, EUR/USD, SPY, GLD

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
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
get_multiple_analysis Bulk TA for multiple symbols at once
get_bollinger_band_analysis Proprietary ±3 BB rating system
get_stock_decision 3-layer decision engine (ranking + trade setup + quality score)
screen_stocks Multi-exchange screener with 20+ filter criteria
scan_by_signal Scan by signal type (oversold, trending, breakout...)
get_candlestick_patterns 15 candlestick pattern detector
get_multi_timeframe_analysis Weekly→Daily→4H→1H→15m alignment analysis

🌍 Multi-Exchange Support
Exchange Tools
Binance Crypto screener, all pairs
KuCoin / Bybit+ Crypto screener
NASDAQ / NYSE US stocks (AAPL, TSLA, NVDA...)
EGX (Egypt) egx_market_overview, egx_stock_screener, egx_trade_plan, egx_fibonacci_retracement
Turkish (BIST) Via TradingView screener
Europe & Canada Euronext (Paris, Amsterdam, Brussels, Lisbon), LSE, Xetra, Frankfurt, Milan, SIX, Madrid, TSX, TSX Venture
India & Indonesia NSE, BSE (NIFTY, BANKNIFTY, SENSEX), IDX (Jakarta Composite)

💬 Example AI Conversations

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, 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.

Two peas, one chat

Chat with AI about TradingView

Opens a chat primed with TradingView’s README and setup docs from this page, or add it in Cursor to use its tools.

The Cursor button opens Cursor and asks before it adds the server. Fill in any keys it needs in Cursor’s MCP settings.

Peas in a pod

What are the alternatives to TradingView MCP?

How TradingView MCP lines up against its neighbours on the shelf. See every knowledge and work apps server.

  • TradingView MCPThis pea

    Prices, indicators, screeners and backtests for stocks, crypto and forex, no account needed.

    Tools
    37
    Runs on
    Your computer or hosted
    Licence
    MIT
    Stars
    5.2K
  • Obsidian MCP

    Search, read and edit the notes in your Obsidian vault.

    Tools
    15
    Runs on
    Your computer
    Licence
    MIT
    Stars
    4.5K
  • Google Workspace MCP

    Gmail, Drive, Calendar, Docs, Sheets and six more Google apps behind one server.

    Tools
    43
    Runs on
    Your computer
    Licence
    MIT
    Stars
    3.4K
  • 12306 MCP

    Searches China Railway 12306 for trains, seats, stops and transfers.

    Tools
    8
    Runs on
    Your computer
    Licence
    MIT
    Stars
    2.4K
  • Google Search Console MCP

    Ask an assistant about your clicks, queries, indexing and sitemaps in Search Console.

    Tools
    21
    Runs on
    Your computer
    Licence
    MIT
    Stars
    2.1K
  • Telegram MCP

    Your own Telegram account, as an assistant can use it: chats, search, sending and groups.

    Tools
    147
    Runs on
    Your computer
    Licence
    Apache-2.0
    Stars
    1.9K
Full docs on GitHubatilaahmettaner/tradingview-mcp

Something wrong on this page? Tell us.

For bots & AI agents

Machine-readable versions of TradingView MCP and MCP Shelf. Fetch these instead of parsing this page.

This listing (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs