Logo van Tradingview MCP Jackson

Tradingview MCP Jackson

Community
greenpeas007

AI-assisted TradingView chart analysis — connect Claude Code to your TradingView Desktop for personal workflow automation

Uitgevergreenpeas007
Repositorytradingview-mcp-jackson
TaalJavaScript
Forks
23
Sterren
58
Beschikbare tools
0
Transporttypestdio
Links
  • Koppel tools aan AI-workflows

    Tradingview MCP Jackson biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    58 sterren en 23 forks in de gekoppelde repository.

TradingView MCP Jackson

If you found this from the YouTube video — welcome. This is the improved fork. Everything you need is below.

Built on top of the original tradingview-mcp by @tradesdontlie. Full credit to them for the foundation. This fork adds a morning brief workflow, a rules config, and fixes the launch bug on TradingView Desktop v2.14+.

[!WARNING] Not affiliated with TradingView Inc. or Anthropic. This tool connects to your locally running TradingView Desktop app via Chrome DevTools Protocol. Review the Disclaimer before use.

[!IMPORTANT] Requires a valid TradingView subscription. This tool does not bypass any TradingView paywall. It reads from and controls the TradingView Desktop app already running on your machine.

[!NOTE] All data processing happens locally. Nothing is sent anywhere. No TradingView data leaves your machine.


What's New in This Fork

FeatureWhat it does
morning_briefOne command that scans your watchlist, reads all your indicators, and returns structured data for Claude to generate your session bias
session_save / session_getSaves your daily brief to ~/.tradingview-mcp/sessions/ so you can compare today vs yesterday
rules.jsonWrite your trading rules once — bias criteria, risk rules, watchlist. The morning brief applies them automatically every day
Launch bug fixFixed tv_launch compatibility with TradingView Desktop v2.14+
tv brief CLIRun your morning brief from the terminal in one word

One-Shot Setup

Paste this into Claude Code and it will handle everything:

Set up TradingView MCP Jackson for me. 
Clone https://github.com/LewisWJackson/tradingview-mcp-jackson.git to ~/tradingview-mcp-jackson, run npm install, then add it to my MCP config at ~/.claude/.mcp.json (merge with any existing servers, don't overwrite them). 
The config block is: { "mcpServers": { "tradingview": { "command": "node", "args": ["/Users/YOUR_USERNAME/tradingview-mcp-jackson/src/server.js"] } } } — replace YOUR_USERNAME with my actual username.
Then copy rules.example.json to rules.json and open it so I can fill in my trading rules.
Finally restart and verify with tv_health_check.

Or follow the manual steps below.


Prerequisites

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

Quick Start

1. Clone and install

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

2. Set up your rules

bash
cp rules.example.json rules.json

Open rules.json and fill in:

  • Your watchlist (symbols to scan each morning)
  • Your bias criteria (what makes something bullish/bearish/neutral for you)
  • Your risk rules (the rules you want Claude to check before every session)

3. Launch TradingView with CDP

TradingView must be running with the debug port enabled.

Mac:

bash
./scripts/launch_tv_debug_mac.sh

Windows:

bash
scripts\launch_tv_debug.bat

Linux:

bash
./scripts/launch_tv_debug_linux.sh

Or use the MCP tool after setup: "Use tv_launch to start TradingView in debug mode"

4. Add to Claude Code

Add to ~/.claude/.mcp.json (merge with any existing servers):

json
{
  "mcpServers": {
    "tradingview": {
      "command": "node",
      "args": ["/Users/YOUR_USERNAME/tradingview-mcp-jackson/src/server.js"]
    }
  }
}

Replace YOUR_USERNAME with your actual username. On Mac: echo $USER to check.

5. Verify

Restart Claude Code, then ask: "Use tv_health_check to verify TradingView is connected"

6. Run your first morning brief

Ask Claude: "Run morning_brief and give me my session bias"

Or from the terminal:

bash
npm link  # install tv CLI globally (one time)
tv brief

Morning Brief Workflow

This is the feature that turns this from a toolkit into a daily habit.

Before every session:

  1. TradingView is open (launched with debug port)
  2. Run: tv brief in your terminal (or ask Claude: "run morning_brief")
  3. Claude scans every symbol in your watchlist, reads your indicator values, applies your rules.json criteria, and prints:
BTCUSD  | BIAS: Bearish  | KEY LEVEL: 94,200  | WATCH: RSI crossing 50 on 4H
ETHUSD  | BIAS: Neutral  | KEY LEVEL: 3,180   | WATCH: Ribbon direction on daily
SOLUSD  | BIAS: Bullish  | KEY LEVEL: 178.50  | WATCH: Hold above 20 EMA

Overall: Cautious session. BTC leading bearish, SOL the exception — watch for divergence.
  1. Save it: "save this brief" (uses session_save)
  2. Next morning, compare: "get yesterday's session" (uses session_get)

What This Tool Does

  • Morning brief — scan watchlist, read indicators, apply your rules, print session bias
  • Pine Script development — write, inject, compile, debug scripts with AI
  • Chart navigation — change symbols, timeframes, zoom to dates, add/remove indicators
  • Visual analysis — read indicator values, price levels, drawn levels from custom indicators
  • Draw on charts — trend lines, horizontal levels, rectangles, text
  • Manage alerts — create, list, delete price alerts
  • Replay practice — step through historical bars, practice entries and exits with P&L tracking
  • Screenshots — capture chart state
  • Multi-pane layouts — 2x2, 3x1 grids with different symbols per pane
  • Stream data — JSONL output from your live chart for monitoring scripts
  • CLI access — every tool is also a tv command, pipe-friendly JSON output

How Claude Knows Which Tool to Use

Claude reads CLAUDE.md automatically when working in this project. It contains the full decision tree.

You say...Claude uses...
"Run my morning brief"morning_brief → apply rules → session_save
"What was my bias yesterday?"session_get
"What's on my chart?"chart_get_state → data_get_study_values → quote_get
"Give me a full analysis"quote_get → data_get_study_values → data_get_pine_lines → data_get_pine_labels → capture_screenshot
"Switch to BTCUSD daily"chart_set_symbol → chart_set_timeframe
"Write a Pine Script for..."pine_set_source → pine_smart_compile → pine_get_errors
"Start replay at March 1st"replay_start → replay_step → replay_trade
"Set up a 4-chart grid"pane_set_layout → pane_set_symbol
"Draw a level at 94200"draw_shape (horizontal_line)

Tool Reference (81 MCP tools)

Morning Brief (new in this fork)

ToolWhat it does
morning_briefScan watchlist, read indicators, return structured data for session bias. Reads rules.json automatically.
session_saveSave the generated brief to ~/.tradingview-mcp/sessions/YYYY-MM-DD.json
session_getRetrieve today's brief (or yesterday's if today not saved yet)

Chart Reading

ToolWhen to useOutput size
chart_get_stateFirst call — get symbol, timeframe, all indicator names + IDs~500B
data_get_study_valuesRead current RSI, MACD, BB, EMA values from all indicators~500B
quote_getGet latest price, OHLC, volume~200B
data_get_ohlcvGet price bars. Use summary: true for compact stats500B (summary) / 8KB (100 bars)

Custom Indicator Data (Pine Drawings)

Read line.new(), label.new(), table.new(), box.new() output from any visible Pine indicator.

ToolWhen to use
data_get_pine_linesHorizontal price levels (support/resistance, session levels)
data_get_pine_labelsText annotations + prices ("PDH 24550", "Bias Long")
data_get_pine_tablesData tables (session stats, analytics dashboards)
data_get_pine_boxesPrice zones as {high, low} pairs

Always use study_filter to target a specific indicator: study_filter: "MyIndicator".

Chart Control

ToolWhat it does
chart_set_symbolChange ticker (BTCUSD, AAPL, ES1!, NYMEX:CL1!)
chart_set_timeframeChange resolution (1, 5, 15, 60, D, W, M)
chart_set_typeChange style (Candles, HeikinAshi, Line, Area, Renko)
chart_manage_indicatorAdd/remove indicators. Use full names: "Relative Strength Index" not "RSI"
chart_scroll_to_dateJump to a date (ISO: "2025-01-15")
indicator_set_inputs / indicator_toggle_visibilityChange indicator settings, show/hide

Pine Script Development

ToolStep
pine_set_source1. Inject code into editor
pine_smart_compile2. Compile with auto-detection + error check
pine_get_errors3. Read compilation errors if any
pine_get_console4. Read log.info() output
pine_save5. Save to TradingView cloud
pine_analyzeOffline static analysis (no chart needed)
pine_checkServer-side compile check (no chart needed)

Replay Mode

ToolStep
replay_startEnter replay at a date
replay_stepAdvance one bar
replay_autoplayAuto-advance (set speed in ms)
replay_tradeBuy/sell/close positions
replay_statusCheck position, P&L, date
replay_stopReturn to realtime

Multi-Pane, Alerts, Drawings, UI

ToolWhat it does
pane_set_layoutChange grid: s, 2h, 2v, 2x2, 4, 6, 8
pane_set_symbolSet symbol on any pane
draw_shapeDraw horizontal_line, trend_line, rectangle, text
alert_create / alert_list / alert_deleteManage price alerts
batch_runRun action across multiple symbols/timeframes
watchlist_get / watchlist_addRead/modify watchlist
capture_screenshotScreenshot (regions: full, chart, strategy_tester)
tv_launch / tv_health_checkLaunch TradingView and verify connection

CLI Commands

bash
tv brief                           # run morning brief
tv session get                     # get today's saved brief
tv session save --brief "..."      # save a brief

tv status                          # check connection
tv quote                           # current price
tv symbol BTCUSD                   # change symbol
tv ohlcv --summary                 # price summary
tv screenshot -r chart             # capture chart
tv pine compile                    # compile Pine Script
tv pane layout 2x2                 # 4-chart grid
tv stream quote | jq '.close'      # monitor price ticks

Full command list: tv --help


Troubleshooting

ProblemSolution
cdp_connected: falseTradingView isn't running with --remote-debugging-port=9222. Use the launch script.
ECONNREFUSEDTradingView isn't running or port 9222 is blocked
MCP server not showing in Claude CodeCheck ~/.claude/.mcp.json syntax, restart Claude Code
tv command not foundRun npm link from the project directory
morning_brief — "No rules.json found"Run cp rules.example.json rules.json and fill it in
morning_brief — watchlist emptyAdd symbols to the watchlist array in rules.json
Tools return stale dataTradingView still loading — wait a few seconds
Pine Editor tools failOpen Pine Editor panel first: ui_open_panel pine-editor open

Architecture

Claude Code  ←→  MCP Server (stdio)  ←→  CDP (port 9222)  ←→  TradingView Desktop (Electron)
  • 78 original tools + 3 morning brief tools = 81 MCP tools total
  • Transport: MCP over stdio + CLI (tv command)
  • Connection: Chrome DevTools Protocol on localhost:9222
  • No external network calls — everything runs locally
  • Zero extra dependencies beyond the original

Credits

This fork is built on tradingview-mcp by @tradesdontlie. The original tool is the foundation — go star their repo.


Disclaimer

This project is provided for personal, educational, and research purposes only.

This tool uses the Chrome DevTools Protocol (CDP), a standard debugging interface built into all Chromium-based applications. It does not reverse engineer any proprietary TradingView protocol, connect to TradingView's servers, or bypass any access controls. The debug port must be explicitly enabled by the user via a standard Chromium command-line flag.

By using this software you agree that:

  1. You are solely responsible for ensuring your use complies with TradingView's Terms of Use and all applicable laws.
  2. This tool accesses undocumented internal TradingView APIs that may change at any time.
  3. This tool must not be used to redistribute, resell, or commercially exploit TradingView's market data.
  4. The authors are not responsible for any account bans, suspensions, or other consequences.

Use at your own risk.

License

MIT — see LICENSE. Applies to source code only, not to TradingView's software, data, or trademarks.

Gebruik Tradingview MCP Jackson MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Tradingview MCP Jackson is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Tradingview MCP Jackson toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Tradingview MCP Jackson.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "tradingview-mcp-jackson": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Tradingview MCP Jackson in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Tradingview MCP Jackson in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Tradingview MCP Jackson gebruiken om me hiermee te helpen?
Tradingview MCP Jackson
Zeker. Ik heb het gelezen.
Dit vond ik met Tradingview MCP Jackson.

Veelgestelde vragen

Waarvoor wordt de MCP-server Tradingview MCP Jackson gebruikt?

Tradingview MCP Jackson is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Tradingview MCP Jackson MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Tradingview MCP Jackson gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Tradingview MCP Jackson MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Tradingview MCP Jackson verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Tradingview MCP Jackson MCP met TypingMind?

Tradingview MCP Jackson werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Tradingview MCP Jackson MCP in TypingMind?

Tradingview MCP Jackson biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Tradingview MCP Jackson MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Tradingview MCP Jackson authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇