
AI辅助TradingView图表分析——将Claude代码连接到您的TradingView桌面,实现个人工作流程自动化
概览
您的TradingView桌面图表个人AI助手。通过Chrome DevTools协议将Claude代码连接到本地运行的TradingView应用,实现AI辅助图表分析、Pine Script开发和工作流程自动化。 它通过 Chrome DevTools 协议与您本地运行的 TradingView 桌面应用交互。使用前请阅读免责声明。 该工具不会绕过或绕过任何TradingView付费墙或访问控制。它读取并控制已运行在您机器上的TradingView桌面应用。 该工具不会对TradingView数据进行传输、存储或外部再分发。 该工具通过Electron调试界面访问未公开的TradingView内部API。这些API可能会在任何TradingView更新中无预警地更改或失效。如果你在意稳定性,请将你的TradingView桌面版本钉顶。 该工具不会连接到TradingView的服务器,不会修改任何TradingView文件,也不会拦截任何网络流量。
概述(AI 翻译)
您的TradingView桌面图表个人AI助手。通过Chrome DevTools协议将Claude代码连接到本地运行的TradingView应用,实现AI辅助图表分析、Pine Script开发和工作流程自动化。
[!警告] 本工具与TradingView Inc.无关联、不认可或关联 它通过Chrome DevTools协议与您本地运行的TradingView桌面应用交互。使用前请阅读免责声明。
[!重要] 需要有效的TradingView订阅。 该工具不会绕过或规避任何TradingView付费墙或访问控制。它读取并控制您机器上已运行的TradingView桌面应用。
[!注] 所有数据处理均在您机器本地进行。 该工具不会对TradingView数据进行传输、存储或外部再分发。
[!注意] 该工具通过Electron调试界面访问未公开的内部TradingViewAPI。这些API可能会在任何TradingView更新中无预警地变更或失效。如果你在意稳定性,请固定你的TradingView桌面版本。
工作原理(以及为什么运行安全)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
TradingView MCP Bridge
Personal AI assistant for your TradingView Desktop charts. Connects Claude Code to your locally running TradingView app via Chrome DevTools Protocol for AI-assisted chart analysis, Pine Script development, and workflow automation.
[!WARNING] This tool is not affiliated with, endorsed by, or associated with TradingView Inc. It interacts with your locally running TradingView Desktop application via Chrome DevTools Protocol. Review the Disclaimer before use.
[!IMPORTANT] Requires a valid TradingView subscription. This tool does not bypass or circumvent any TradingView paywall or access control. It reads from and controls the TradingView Desktop app already running on your machine.
[!NOTE] All data processing occurs locally on your machine. No TradingView data is transmitted, stored, or redistributed externally by this tool.
[!CAUTION] This tool accesses undocumented internal TradingView APIs via the Electron debug interface. These can change or break without notice in any TradingView update. Pin your TradingView Desktop version if stability matters to you.
How It Works (and why it’s safe to run)
This tool does not connect to TradingView’s servers, modify any TradingView files, or intercept any network traffic. It communicates exclusively with your locally running TradingView Desktop instance via Chrome DevTools Protocol (CDP) — a standard debugging interface built into all Chromium/Electron applications by Google, including VS Code, Slack, and Discord.
The debug port is disabled by default and must be explicitly enabled by you using a standard Chromium flag (--remote-debugging-port=9222). Nothing happens without that deliberate step.
What This Tool Does Not Do
- Connect to TradingView’s servers or APIs
- Store, transmit, or redistribute any market data
- Work without a valid TradingView subscription and installed Desktop app
- Bypass any TradingView paywall or access restriction
- Execute real trades (chart interaction only)
- Work if TradingView changes their internal Electron structure
Research Context
This project explores an open research question: how can LLM-based agents interact with professional trading interfaces to support human decision-making?
Specifically it investigates:
- How structured tool APIs (MCP) can bridge LLMs and stateful desktop financial applications
- What latency, context, and reliability constraints emerge when an agent operates on live chart data
- How agents handle ambiguous financial UI state (e.g. interpreting Pine Script output, reading indicator tables)
- Whether natural language is an effective interface for chart navigation and Pine Script development
- The failure modes of LLM agents operating in real-time data environments
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"tradingview": {
"command": "node",
"args": ["/path/to/tradingview-mcp/src/server.js"]
}
}
}