How to Connect Claude to TradingView (Official MCP Server, 2026)

Add TradingView's official MCP server to Claude, Claude Code or Codex step by step: the commands, the plan you need, daily call limits and what it can do.

By Tom Evans · Updated · 7 min read

To connect Claude to TradingView, add https://mcp.tradingview.com/mcp as a custom connector in Claude (Settings, then Connectors, then Add custom connector) and sign in with a TradingView account on the Essential plan or above. That is TradingView's official MCP server, released in public beta on 16 September 2026, and it gives Claude your watchlists, alerts, price history, the screener, news and fundamentals.

Many guides written before September still say there is no official server and point you to community bridges instead. Both options exist now, and they do different jobs. This guide covers the official setup step by step, when a community bridge makes sense, and the one thing neither of them does for algo traders: tell you whether your strategy actually works.

Quick setup commands

If you use a terminal assistant, these are the commands from TradingView's MCP docs. You still need an Essential plan or above.

Claude Code:

claude mcp add --transport http mcp-tradingview https://mcp.tradingview.com/mcp

Then run /mcp inside Claude Code and sign in to TradingView in your browser.

Codex CLI:

codex mcp add tradingview --url https://mcp.tradingview.com/mcp

Then approve access to your TradingView account in the browser and start a new Codex task. If the browser doesn't open, codex mcp login tradingview starts the sign-in again (OpenAI's Codex MCP docs).

For the Claude apps, ChatGPT and other assistants, follow the steps below.

What you need before you start

  • A paid TradingView plan. TradingView's MCP documentation says MCP calls are included in paid plans, starting at 10 a day on Essential or any legacy plan (checked 27 November 2026).
  • An MCP-capable assistant. Claude (web, desktop and mobile apps), Claude Code, ChatGPT and Codex, Grok, Perplexity and Cursor are all listed in TradingView's docs.
  • No API key. Authentication is OAuth 2.1, so you sign in with your normal TradingView login and approve access.

Connect Claude (web, desktop and mobile)

  1. In Claude, open Settings, then Connectors.
  2. Click Add custom connector, paste https://mcp.tradingview.com/mcp and click Add.
  3. Sign in to TradingView in the window that opens and approve access.
  4. Start a new chat and ask something that needs your account, such as "List my TradingView watchlists".

A connector you add once works across claude.ai and the desktop and mobile apps, according to TradingView's docs.

Connect Claude Code

Run this in your terminal:

claude mcp add --transport http mcp-tradingview https://mcp.tradingview.com/mcp

Then run /mcp inside Claude Code and finish the sign-in in your browser. This is the most useful setup if you work on Pine Script or analysis code, because Claude Code can pull price history straight into a script without CSV exports or API keys.

Connect ChatGPT, Codex and other assistants

The server URL is the same everywhere. TradingView's docs give these routes as of October 2026 (menu names change often, so check the docs if yours differ):

AssistantWhere to add it
ChatGPT and Codex (app)Settings, Plugins, Add, MCPs, Add MCP Server. Type: Streamable HTTP. Then Authenticate.
Codex (terminal)codex mcp add tradingview --url https://mcp.tradingview.com/mcp
GrokPlugins, New Connector, Custom
PerplexityAccount settings, Connectors, Custom connector. Authentication: OAuth. Transport: Streamable HTTP.
CursorCustomize, MCPs, New MCP Server, with "type": "http" in mcp.json

Any other client that supports MCP over streamable HTTP with OAuth 2.1 should work with the same URL.

What the official server can do

TradingView lists 38 tools in nine groups and says "the toolset is in beta and expands over time" (checked 27 November 2026). In plain terms, Claude can:

  • Read market data: at most 5,000 OHLCV bars per call as rows (8,000 as columns), economic data series and symbol search.
  • Run the screener: filter and sort with up to 1,000 rows, or pull screener columns for up to 50 symbols at once.
  • Read news and documents: headlines and full stories, filings and earnings call transcripts.
  • Check the economic calendar.
  • Work with Pine Script (since 16 November 2026): search, read, check (validate_pine_script) and save your own scripts to your TradingView account, run an indicator, and backtest a strategy with run_pine_backtest, which returns a compact Strategy Tester report. See TradingView's announcement.
  • Manage watchlists: create, rename, add to, remove from and delete them.
  • Manage alerts: create simple price alerts, pause, restart and delete them, and read the alert log (up to 2,000 events).

The TradingView announcement suggests uses like a morning briefing on a symbol, screening in plain English and saving the results as a watchlist, and a post-mortem on alerts that fired.

What it can't do (and why it matters for algo traders)

The beta has real limits, all from TradingView's own docs:

  • Daily call allowances. From 17 November 2026 every tool call counts towards a daily allowance: 10 on Essential or any legacy plan, 20 on Plus, 50 on Premium and 500 on Ultimate (500 a day and 50 a minute with the AI subscription). Every validation, run and backtest counts as a call.
  • Compact backtests only. run_pine_backtest returns a summary report with up to 200 recent closed trades; TradingView's docs say "equity curves are never returned", and protected or invite-only scripts can't be read.
  • No orders or positions. Nothing places trades or reads broker balances.
  • Alerts are price-only. Only single price conditions (cross, cross up, cross down, greater, less) are supported. Indicator alerts, multi-condition alerts and webhook alerts must still be created on tradingview.com, because the two-factor check isn't available for MCP connections yet.
  • Data follows your plan. Data delay and depth follow your TradingView plan and exchange subscriptions.
  • Personal use. The docs say not to use the server for automated trading or trading decisions, or connect it to a bot or app other people use.

So the official server is a research assistant that can now also run quick Pine backtests. The questions you care most about as an algo trader (is the edge real, which sessions lose money, would a tighter stop help) still can't be answered from a compact summary of the last few hundred trades.

The community bridge: Pine Script access, with caveats

The most popular alternative is the open-source TradingView MCP Bridge (about 7,000 GitHub stars). Instead of TradingView's servers, it connects Claude Code to the TradingView Desktop app running on your own computer, through a debugging port (Chrome DevTools Protocol on localhost:9222). That lets it do what the official server can't: write and compile Pine Script, read compiler errors, change the chart's symbol and timeframe, take screenshots and read Strategy Tester data.

Know the trade-offs before you use it:

  • Its README says it "accesses undocumented internal TradingView APIs" that can change or break without notice.
  • It is not affiliated with TradingView, and you are responsible for staying within TradingView's terms of use.
  • You have to launch TradingView Desktop with remote debugging turned on, which opens a local control port while it runs.

For a full comparison of the official server, this bridge and the data-only community servers, see TradingView MCP server: what it can and can't do.

Where testing your strategy fits

Claude can now write a Pine Script strategy in seconds, and with a bridge it can even run it. What it can't do on its own is tell you whether the result is a real edge or a lucky backtest. That needs a test on data the strategy wasn't built on, after costs.

The workflow that works:

  1. Write or refine the strategy with Claude (see Claude for Pine Script).
  2. Test it in Strategy Lab with realistic commission and slippage, an unseen period and Monte Carlo. (Claude can also run a Pine strategy through the official run_pine_backtest tool, which returns a compact report and uses one of your daily calls.)
  3. If you already have Strategy Tester results, export the List of Trades and break it down by session, weekday, time of day and volatility in a spreadsheet to see where the results come from.
  4. Rebuild the strategy in Strategy Lab with any rule change that breakdown suggests, and keep it only if it holds up on the unseen period, in Monte Carlo and on other markets.

The full method is in How to test a strategy ChatGPT or Claude wrote.

If you'd rather skip the Pine Script step, describe the strategy in plain English to TES in Strategy Lab. It builds the rules, backtests them on years of data with costs and an unseen period, and Launchpad can run the result as a bot.

Want Claude or Codex to backtest with TradingView? See what works for Claude and Codex TradingView backtests.

Frequently asked questions

Is there an official TradingView MCP server?
Yes. TradingView released its official MCP server in public beta on 16 September 2026. The URL is https://mcp.tradingview.com/mcp and it works with Claude, ChatGPT, Codex, Grok, Perplexity, Cursor and other MCP clients.
Is the TradingView MCP server free?
It's included with paid TradingView plans, with a daily call allowance from 17 November 2026: 10 calls a day on Essential or any legacy plan, 20 on Plus, 50 on Premium and 500 on Ultimate, or 500 a day with the AI subscription.
Can Claude place trades on TradingView?
No. The official server has no tools for orders, positions or broker balances. Its only write actions are on watchlists and price alerts.
Can Claude read my Pine Script or backtest results through the official server?
Partly, since 16 November 2026. The official server can read and save your own Pine Scripts and run a strategy with run_pine_backtest, which returns a compact report with up to 200 recent trades but no equity curve. It can't read protected or invite-only scripts. Community bridges that drive TradingView Desktop can do more, but they rely on undocumented internal APIs.
Why does Claude say it can't see my TradingView data?
Check that you're on a paid plan (Essential or above), that you haven't used up today's call allowance, that you completed the sign-in and approved access, and that the connector is enabled in the chat you're using. In Claude Code, run /mcp to see the connection status.

Build it, backtest it, run it as a bot.

Describe your strategy in plain English and Strategy Lab backtests it. When it holds up, Launchpad runs it on Binance, Hyperliquid, cTrader or Liquid Brokers: paper trading, Copilot signals you approve, or fully automated Autopilot. Free plan, no card.