# Connect Claude Code to your TradingView Desktop charts

> Lets Claude read and annotate your TradingView charts and write scripts.

- **What it does:** Lets Claude see and control the TradingView charts on your computer, so it can read indicators, mark up charts, set alerts and write Pine Script (TradingView's coding language). It doesn't place trades.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_27488c65d846caa29d75bddb`
- **Creator:** @orbit.earns on Instagram
- **Safety:** Checked by Orbit: use with care. Uses undocumented interfaces; may conflict with TradingView ToS
- **Installs:** 7
- **Last updated:** 2026-11-14
- **Page:** https://orbitinbox.app/s/connect-claude-code-to-your-tradingview-desktop-charts

## Skill

---
name: tradingview-mcp-bridge
description: Use when you say "connect Claude Code to TradingView" or "read my TradingView charts"; it installs the TradingView MCP Bridge so Claude talks to your local TradingView Desktop app over Chrome DevTools Protocol for chart analysis and Pine Script work.
---

# Connect Claude Code to your TradingView Desktop charts

## What it does

TradingView MCP Bridge is an MCP server that connects Claude Code to the TradingView Desktop app running on your own machine, via Chrome DevTools Protocol (CDP) on localhost port 9222. All data processing happens locally; the tool does not connect to TradingView's servers and does not transmit, store or redistribute market data. It requires a valid TradingView subscription and does not bypass any paywall or access control. It executes no real trades (chart interaction only). The project describes itself as a research interface layer, not a trading bot.

What it gives Claude:

- Pine Script development: write, inject, compile, debug and iterate on scripts
- Chart navigation: change symbols, timeframes, chart type, zoom to dates, add/remove indicators
- Visual analysis: read indicator values, price levels, labels, tables and boxes drawn by your Pine indicators
- Drawing: trend lines, horizontal lines, rectangles, text annotations
- Alerts: create, list and delete price alerts
- Replay practice: step through historical bars and practice entries/exits in replay mode
- Screenshots: capture the chart, or the Strategy Tester panel
- Multi-pane layouts and tabs: 2x2, 3x1 and other grids with a different symbol per pane
- Monitoring: `tv stream` polls your local app and prints JSONL
- A `tv` CLI: every MCP tool is also a CLI command with JSON output
- `tv_launch`, `tv_health_check`, `tv_discover` for connection management

The repo also ships five skills you can install: chart-analysis, multi-symbol-scan, pine-develop, replay-practice, strategy-report.

Use it only on your own TradingView account and data. TradingView's Terms of Use restrict automated data collection and non-display use, and programmatic access may conflict with them; you are responsible for compliance, and the authors say to use it at your own risk.

## What you need

- TradingView Desktop app, with a paid subscription for real-time data
- Node.js 18+
- Claude Code with MCP support (or any terminal for the CLI)
- macOS, Windows or Linux

Note: the tool uses undocumented internal TradingView interfaces that can break in any TradingView update. The README suggests pinning your TradingView Desktop version if stability matters.

## Setup

1. Clone and install:

```bash
git clone https://github.com/tradesdontlie/tradingview-mcp.git ~/tradingview-mcp
cd ~/tradingview-mcp
npm install
```

2. Add the server to Claude Code (replace the path if you cloned elsewhere):

```bash
claude mcp add tradingview -- node ~/tradingview-mcp/src/server.js
```

The project's own config form is `~/.claude/.mcp.json` (or a project `.mcp.json`):

```json
{
  "mcpServers": {
    "tradingview": {
      "command": "node",
      "args": ["/path/to/tradingview-mcp/src/server.js"]
    }
  }
}
```

3. Launch TradingView Desktop with the debug port. The port is disabled by default; you enable it yourself with the standard Chromium flag.

Mac:

```bash
./scripts/launch_tv_debug_mac.sh
```

Windows:

```bash
scripts\launch_tv_debug.bat
```

Linux:

```bash
./scripts/launch_tv_debug_linux.sh
```

Or manually on any platform:

```bash
/path/to/TradingView --remote-debugging-port=9222
```

4. Restart Claude Code (the MCP server loads at startup), then verify:

> Use tv_health_check to verify TradingView is connected

If `cdp_connected` is false, TradingView is not running with `--remote-debugging-port=9222`.

5. Optional, the `tv` CLI:

```bash
cd ~/tradingview-mcp
npm link
tv status
```

6. Optional, install the repo's five skills:

```bash
mkdir -p ~/.claude/skills
cp -R ~/tradingview-mcp/skills/* ~/.claude/skills/
```

## How to use it with Claude

- "Use tv_health_check to confirm TradingView is connected, then tell me what's on my chart."
- "Switch to AAPL daily, add the Relative Strength Index, and take a screenshot."
- "Read the price levels and labels from my Profiler indicator and summarise the key levels."
- "Write a Pine Script indicator for a 200 EMA with alerts, compile it, and fix any errors."
- "Start replay at March 1st, step through the bars, and track the practice P&L."
- "Set up a 2x2 grid with ES1!, NQ1!, YM1! and RTY1! and compare them."

Replay trades are practice trades inside TradingView's replay mode. The bridge does not place real orders. Nothing here is financial advice.

## Credits

Made by tradesdontlie (TradingView MCP Bridge), packaged by Orbit. Source: https://github.com/tradesdontlie/tradingview-mcp — license: MIT per the README (GitHub reports the license as NOASSERTION; the MIT terms cover this project's source code only). Not affiliated with TradingView Inc. or Anthropic.

Shared by @orbit.earns, credited on Orbit.