一个专注、类型安全的MCP服务器,通过Chrome DevTools协议让Claude Code或其他MCP兼容客户端控制本地运行的TradingView桌面应用程序。

Stars

134

7 天增长

暂无数据

Fork 数

1,110

开放 Issue

0

开源协议

MIT

最近更新

2026-07-13

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它提供了一套精简、文档完善且严格类型化的工具集(12个工具),用于操作TradingView图表,同时包含诊断命令和可选的Redis缓存,而不增加不必要的复杂性。

适合谁使用

  • 使用Claude Code进行交易分析的开发者
  • 希望借助AI辅助图表的TradingView高级用户
  • 自动化图表工作流程的量化交易者
  • 寻找TradingView集成的MCP客户端开发者

典型使用场景

  • 获取当前图表状态(代码、时间周期、指标、最新价格)
  • 以编程方式切换代码或时间周期
  • 从活动图表获取最多5000根OHLCV柱线
  • 通过AI代理自动执行重复的图表操作

项目优势

  • 使用Zod模式和严格TypeScript(无any、启用noUncheckedIndexedAccess)实现端到端类型安全
  • 小而可预测的工具集(12个工具,文档完善且经过测试),易于审计
  • 包含`tradingview-mcp doctor`诊断命令,可即时验证设置
  • 可选的Redis缓存减少CDP往返次数,提升读取工具性能

使用前须知

  • 依赖TradingView未公开的内部页面API,该API可能在桌面版本更新时发生变化
  • 需要本地运行已启用调试端口的TradingView桌面应用,且拥有有效TradingView订阅
  • 因依赖于Electron的CDP和未公开API而存在潜在不稳定因素;建议固定TradingView版本

README 快速开始

tradingview-mcp

tradingview-mcp/  v0.1   ──────────────────────────────────────────────────

A focused, type-safe MCP server that lets Claude Code (or any MCP-compatible client) drive a locally-running TradingView Desktop application — read chart state, change symbols and timeframes, fetch OHLCV bars, capture screenshots.

[!IMPORTANT] This project is not affiliated with, endorsed by, or associated with TradingView Inc. It is a personal-use bridge that interacts with your locally running TradingView Desktop application via the Chrome DevTools Protocol — the same standard debug interface built into Slack, VS Code, Discord, and every other Electron app.

[!IMPORTANT] Requires a valid TradingView subscription. This tool does not bypass, scrape, or circumvent any TradingView paywall or access control. Everything happens on your machine, against the TradingView Desktop instance you have already logged into and paid for.

[!NOTE] All processing is local. No TradingView data is transmitted, stored, or redistributed by this tool. Your charts, your data, your machine.

[!CAUTION] TradingView's internal page API is undocumented. It can change between Desktop releases. Pin a working TradingView Desktop version if you want stability, and check the version compatibility note before upgrading.


What it does

Wraps the TradingView Desktop chart in a small set of well-defined MCP tools. Tools are typed end-to-end with Zod schemas, validated at the boundary, and surface useful error messages when something goes wrong.

                  ┌───────────────┐
                  │ Claude Code   │
                  │ (or any MCP   │
                  │  client)      │
                  └───────┬───────┘
                          │ stdio (MCP)
                          ▼
                  ┌───────────────┐
                  │tradingview-mcp│
                  └───────┬───────┘
                          │ Chrome DevTools Protocol
                          ▼
                  ┌───────────────┐
                  │ TradingView   │
                  │ Desktop       │
                  │ (--remote-    │
                  │  debugging-   │
                  │  port=9222)   │
                  └───────────────┘

Why another TradingView integration?

Ex

项目描述

Tradingview MCP server for controlling Tradingview Desktop from Claude Code via Chrome DevTools Protocol

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

0xwilliamortiz
精选
0xwilliamortiz GitHub avatar

openclaude-improved

OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.

AI 与机器学习大语言模型
577
OneInterface
精选
OneInterface GitHub avatar

stormy-cookbook

Stormy Cookbook provides copy-pasteable recipes for using the Stormy Social Data API and MCP server, which offers a unified REST API and MCP tools to search profiles, posts, and emails across TikTok, YouTube, Instagram, LinkedIn, X, and Reddit through a single HTTP contract.

AI 与机器学习大语言模型
72
S40911120
精选
S40911120 GitHub avatar

recensa

Recensa is a self-hosted web viewer that indexes Claude Code session transcripts into a local SQLite database, enabling full-text search, replay, and audit of all past agent conversations without uploading data anywhere.

AI 与机器学习大语言模型
67