gitwtfhub

wtf is tradingview-mcp?

tradesdontlie/tradingview-mcp — explained in plain English

Analysis updated 2026-05-18

5,046JavaScriptAudience · developerComplexity · 3/5Setup · moderate

TL;DR

Connects Claude Code to your local TradingView Desktop app so an AI can read charts, write Pine Script, and automate chart workflows.

Mindmap

mindmap
  root((repo))
    What it does
      Bridges Claude Code to TradingView Desktop
      Uses Chrome DevTools Protocol
      Local only, no external data
    Tech stack
      JavaScript
      Node.js
      MCP
    Use cases
      AI assisted chart analysis
      Pine Script development
      Automated chart workflows
    Audience
      Traders
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Ask an AI assistant to write and debug Pine Script indicators on your TradingView chart

REASON 2

Automate chart navigation, symbol switching, and multi pane layouts through natural language

REASON 3

Stream live price and indicator data from TradingView Desktop into local monitoring scripts

What's in the stack?

JavaScriptNode.jsMCPChrome DevTools Protocol

How it stacks up

tradesdontlie/tradingview-mcposo95/scroll-worldmpetroff/pannellum
Stars5,0464,8044,790
LanguageJavaScriptJavaScriptJavaScript
Setup difficultymoderatemoderateeasy
Complexity3/53/52/5
Audiencedevelopervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires a paid TradingView subscription, the TradingView Desktop app running with debug mode enabled, and Node.js 18 or newer.

Wtf does this do

TradingView MCP Bridge connects the Claude Code AI assistant to your own locally running TradingView Desktop app, letting an AI help you read charts, write Pine Script indicators, and automate parts of your chart workflow. It is not made by or connected to TradingView Inc, and it does not bypass any paywall: you still need your own paid TradingView subscription and the Desktop app already installed and running. The tool works by talking to TradingView Desktop through the Chrome DevTools Protocol, a standard debugging interface built into Chromium and Electron based apps like TradingView Desktop, VS Code, Slack, and Discord. That debug connection is off by default and only turns on if you explicitly launch TradingView with a special flag, so nothing is exposed without you choosing to enable it. All communication happens on your own computer. No TradingView data is sent to any external server by this tool, and it cannot place real trades, since it only interacts with the chart interface itself. Once connected, the AI assistant gains a wide set of abilities over your chart: writing, compiling, and debugging Pine Script scripts, switching symbols and timeframes, drawing trend lines and annotations, creating and managing price alerts, replaying historical price bars, taking chart screenshots for visual analysis, arranging multi chart layouts, and streaming live indicator or price data for local monitoring scripts. Every one of these actions is also available as a standalone command line tool called tv, so scripts and other programs can use the same features outside of Claude Code, with JSON output designed for piping into tools like jq. Setup involves cloning the repository, installing its Node.js dependencies, launching TradingView Desktop with the debug port enabled using a provided script for your operating system, and registering the tool in Claude Code's MCP configuration file. The project frames itself partly as a research effort into how AI agents can work with financial desktop applications, and includes a research document discussing open questions and known failure modes, rather than positioning itself as a trading bot.

Yoink these prompts

Prompt 1
Install the TradingView MCP server and connect it to my locally running TradingView Desktop app
Prompt 2
Use tv_health_check to verify my TradingView connection is working
Prompt 3
Help me write a Pine Script indicator and compile it through this tool
Prompt 4
Show me how to set up a 2x2 multi chart layout with different symbols per pane

Frequently asked questions

wtf is tradingview-mcp?

Connects Claude Code to your local TradingView Desktop app so an AI can read charts, write Pine Script, and automate chart workflows.

What language is tradingview-mcp written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, MCP.

How hard is tradingview-mcp to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is tradingview-mcp for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.