Home

TradingView × Claude AI

Connect TradingView Desktop + your Indian broker to Claude in minutes. Works on Mac and Windows.

The Fastest Way — Just Give Claude This Prompt
🤖 Copy this prompt and paste it directly into Claude Desktop
Set up TradingView MCP for me. Clone https://github.com/LewisWJackson/tradingview-mcp-jackson.git to ~/tradingview-mcp-jackson, run npm install, then add it to my Claude Desktop MCP config at ~/Library/Application Support/Claude/claude_desktop_config.json (merge with any existing servers, don't overwrite them). The config block is: { "mcpServers": { "tradingview": { "command": "/opt/homebrew/bin/node", "args": ["/Users/YOUR_USERNAME/tradingview-mcp-jackson/src/server.js"] } } } Replace YOUR_USERNAME with my actual system username. Find it with: echo $USER Then copy rules.example.json to rules.json so I can fill in my trading rules. Finally tell me how to launch TradingView with CDP and verify with tv_health_check.
✅ Claude will clone, install, write the config, and walk you through the rest. That's it.
Windows version — change two things in the prompt above:
Config path → %APPDATA%\Claude\claude_desktop_config.json
Node command → replace /opt/homebrew/bin/node with output of where node in PowerShell
⚙️ Before You Start — Install These 4 Things
💻
TradingView Desktop
Paid plan required (Pro/Pro+/Premium).
tradingview.com/desktop
🤖
Claude Desktop
Download the Claude app (not the web version).
claude.ai/download
🟢
Node.js v18+
Mac: brew install node
Windows: download from nodejs.org
Check: node --version
🐙
Git
Mac: xcode-select --install
Windows: gitforwindows.org
Check: git --version
💡 That's all. npm comes bundled with Node. You don't need to install anything else separately — Claude handles the rest via the prompt above.
🔌 If You Prefer Manual Steps — Do It Yourself in 5
1

Clone & Install

Open Terminal (Mac) or PowerShell (Windows) and run:

🍎 Mac
git clone https://github.com/LewisWJackson/tradingview-mcp-jackson.git \ ~/tradingview-mcp-jackson cd ~/tradingview-mcp-jackson npm install npm link
🪟 Windows
git clone https://github.com/LewisWJackson/tradingview-mcp-jackson.git ` "$env:USERPROFILE radingview-mcp-jackson" cd "$env:USERPROFILE radingview-mcp-jackson" npm install npm link
npm link gives you the tv command globally — tv status, tv brief, tv dashboard all work from any terminal.
2

Add to Claude Desktop Config

Open the config file and add the tradingview block. Find your username with echo $USER (Mac) or echo %USERNAME% (Windows). Find your node path with which node (Mac) or where node (Windows).

🍎 Mac
~/Library/Application Support/Claude/claude_desktop_config.json
🪟 Windows
%APPDATA%\Claude\claude_desktop_config.json
JSON to add inside mcpServers:
{ "mcpServers": { "tradingview": { "command": "/opt/homebrew/bin/node", // output of: which node "args": ["/Users/YOUR_USERNAME/tradingview-mcp-jackson/src/server.js"] } } }
⚠️ If the file already has entries, only add the "tradingview" block inside the existing mcpServers — don't replace the whole file.
3

Launch TradingView with CDP & Restart Claude Desktop

Two things to do each session — takes 10 seconds total.

🍎 Mac
pkill -f TradingView; sleep 2 open -a TradingView --args --remote-debugging-port=9222 # Verify after ~10 seconds: curl -s http://localhost:9222/json/version
🪟 Windows
taskkill /F /IM TradingView.exe 2>nul "%LOCALAPPDATA%\TradingView\TradingView.exe" \ --remote-debugging-port=9222 :: Verify after ~10 seconds: curl -s http://localhost:9222/json/version
ℹ️ Then fully quit Claude Desktop (Cmd+Q on Mac / system tray on Windows) and relaunch it. MCP tools only load on startup.
🚫 Never use the normal TradingView dock icon — it won't enable CDP. Always use the commands above.
4

Verify the Connection

In Claude Desktop, just say:

# Say this to Claude: tv_health_check # You should see: { "success": true, "cdp_connected": true, "chart_symbol": "...", "api_available": true }
"cdp_connected": true — you're live. Done.
ℹ️ If it fails: check TradingView was launched with the CDP command, and Claude Desktop was restarted after editing the config.
5

Set Up Your Rules & Run Morning Brief

Tell Claude to fill in your trading rules and sync your watchlist, then run the brief.

# Say to Claude (after connection is verified): "Copy rules.example.json to rules.json, open my TradingView watchlist panel, pull all symbols, and update rules.json" # Then run your first morning brief: "Run morning_brief" # Or from Terminal: tv brief
Daily workflow: Launch TV with CDP → open Claude → say "run morning brief" → get your A+/A/B+ graded setups, market bias, and top picks.
Handy CLI commands once connected:

tv dashboard — see your full config + how to update each field
tv rules set --field notes --value '"RBI policy Thursday"' — update any field
tv rules show — print full rules.json
tv status — quick CDP health check from terminal
tv brief — run morning brief from terminal (no timeout)

Uninstall & Reset (if needed)

🍎 Mac
# Remove repo, CLI, session data rm -rf ~/tradingview-mcp-jackson npm unlink -g tradingview-mcp rm -rf ~/.tradingview-mcp # Remove tradingview block from: # ~/Library/Application Support/Claude/ # claude_desktop_config.json # Restart Claude Desktop
🪟 Windows
# Remove repo, CLI, session data Remove-Item -Recurse -Force ` "$env:USERPROFILE\tradingview-mcp-jackson" npm unlink -g tradingview-mcp Remove-Item -Recurse -Force ` "$env:USERPROFILE\.tradingview-mcp" # Remove tradingview block from: # %APPDATA%\Claude\claude_desktop_config.json # Restart Claude Desktop
📈 Connect Zerodha (Kite) MCP
Uses the community zerodha-mcp server which wraps the Kite Connect API. You'll need a Kite Connect app (API key + secret) — create one free at developers.kite.trade.
1

Clone & Install

git clone https://github.com/zerodha/zerodha-mcp.git ~/zerodha-mcp cd ~/zerodha-mcp npm install
2

Add to Claude Desktop Config

Merge this block into mcpServers in your Claude Desktop config:

"zerodha": { "command": "/opt/homebrew/bin/node", // Mac: which node "args": ["/Users/YOUR_USERNAME/zerodha-mcp/src/index.js"], "env": { "KITE_API_KEY": "your_api_key_here", "KITE_API_SECRET": "your_api_secret_here" } }
⚠️ Replace YOUR_USERNAME, your_api_key_here, and your_api_secret_here with real values. Windows: change path to %USERPROFILE%\zerodha-mcp\src\index.js and node path to output of where node.
3

Authenticate & Verify

Restart Claude Desktop, then say:

# Zerodha requires a daily login token — tell Claude: "Generate my Kite login URL and help me authenticate for today" # Once authenticated, test it: "Get my Zerodha portfolio holdings" "Show my open positions"
ℹ️ Kite Connect access tokens expire daily at 6 AM IST. You'll need to re-authenticate each trading day — Claude can automate this with the login URL.
🌱 Connect Groww MCP
Uses the Groww MCP server. You'll need your Groww account credentials. The server uses the unofficial Groww API — suitable for reading portfolio data and placing orders.
1

Clone & Install

git clone https://github.com/PrashamTrivedi/GrowwMCP.git ~/groww-mcp cd ~/groww-mcp npm install
2

Add to Claude Desktop Config

Merge this block into mcpServers:

"groww": { "command": "/opt/homebrew/bin/node", // Mac: which node "args": ["/Users/YOUR_USERNAME/groww-mcp/build/index.js"], "env": { "GROWW_AUTH_TOKEN": "your_groww_token_here" } }
ℹ️ To get your Groww auth token: open Groww in Chrome → DevTools (F12) → Network tab → make any request → look for Authorization header in the request headers.
3

Build & Verify

# Build the TypeScript source first: cd ~/groww-mcp npm run build # Restart Claude Desktop, then say: "Show my Groww portfolio" "Get my Groww holdings and current P&L"
⚠️ The Groww token may expire periodically — if tools stop responding, fetch a fresh token from DevTools and update the env block in your config.
🔗 Running All Three Together

Your final claude_desktop_config.json will look like this:

{ "mcpServers": { "tradingview": { "command": "/opt/homebrew/bin/node", "args": ["/Users/YOUR_USERNAME/tradingview-mcp-jackson/src/server.js"] }, "zerodha": { "command": "/opt/homebrew/bin/node", "args": ["/Users/YOUR_USERNAME/zerodha-mcp/src/index.js"], "env": { "KITE_API_KEY": "your_api_key", "KITE_API_SECRET": "your_api_secret" } }, "groww": { "command": "/opt/homebrew/bin/node", "args": ["/Users/YOUR_USERNAME/groww-mcp/build/index.js"], "env": { "GROWW_AUTH_TOKEN": "your_groww_token" } } } }
✅ All three MCP servers load on Claude Desktop startup. Claude can now read live TradingView charts AND trade on Zerodha and Groww from the same conversation.

Prefer someone to set it up for you?

Book a session — we'll handle everything live.

Book Your Session →