Tradingview MCP Jacksonのロゴ

Tradingview MCP Jackson

コミュニティ
greenpeas007

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

公開者greenpeas007
リポジトリtradingview-mcp-jackson
言語JavaScript
フォーク
23
スター
58
利用可能なツール
0
通信方式stdio
リンク
  • ツールをAIワークフローに接続

    Tradingview MCP Jacksonは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには58件のスターと23件のフォークがあります。

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.

Tradingview MCP JacksonのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Tradingview MCP Jacksonに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Tradingview MCP Jacksonをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Tradingview MCP JacksonのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "tradingview-mcp-jackson": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてTradingview MCP JacksonのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Tradingview MCP JacksonのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Tradingview MCP Jacksonを使ってこのタスクを手伝ってもらえますか?
Tradingview MCP Jackson
はい、読みました。
Tradingview MCP Jacksonで調べた結果をお伝えします。

よくある質問

Tradingview MCP Jackson MCPサーバーは何に使いますか?

Tradingview MCP Jacksonは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでTradingview MCP Jackson MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでTradingview MCP Jacksonを利用できます。

TypingMindでTradingview MCP Jackson MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Tradingview MCP Jacksonを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Tradingview MCP Jackson MCPをTypingMindに接続するにはどうすればよいですか?

Tradingview MCP JacksonはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでTradingview MCP Jackson MCPのどのようなツールを利用できますか?

Tradingview MCP JacksonはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Tradingview MCP Jackson MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Tradingview MCP Jacksonで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇