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 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 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 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  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 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Tradingview MCP Jackson MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Tradingview MCP Jackson 帮我完成这项任务吗?
Tradingview MCP Jackson
当然,我看过了。
以下是我使用 Tradingview MCP Jackson 得到的结果。

常见问题

Tradingview MCP Jackson MCP 服务器有什么用途?

Tradingview MCP Jackson 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Tradingview MCP Jackson MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Tradingview MCP Jackson。

为什么在 TypingMind 中使用 Tradingview MCP Jackson MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Tradingview MCP Jackson 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Tradingview MCP Jackson MCP 连接到 TypingMind?

Tradingview MCP Jackson 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Tradingview MCP Jackson MCP 在 TypingMind 中提供哪些工具?

Tradingview MCP Jackson 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Tradingview MCP Jackson MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Tradingview MCP Jackson 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇