A focused, type-safe MCP server that lets Claude Code or any MCP-compatible client drive a locally-running TradingView Desktop application via Chrome DevTools Protocol.

Stars

134

7-day growth

No data

Forks

1,110

Open issues

0

License

MIT

Last updated

2026-07-13

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It provides a small, well-documented, and strictly typed set of tools (12 tools) for TradingView chart interactions, alongside a diagnostic command and optional Redis caching, without overcomplicating.

Who it is for

  • Developers using Claude Code for trading analysis
  • TradingView power users who want AI-assisted charting
  • Quantitative traders automating chart-based workflows
  • MCP client developers seeking a TradingView integration

Use cases

  • Fetching current chart state (symbol, timeframe, studies, last price)
  • Changing symbol or timeframe programmatically
  • Retrieving up to 5000 OHLCV bars from the active chart
  • Automating repetitive chart tasks via an AI agent

Strengths

  • End-to-end type safety with Zod schemas and strict TypeScript (no any, noUncheckedIndexedAccess)
  • Small, predictable tool surface (12 tools, documented and tested) easy to audit
  • Includes `tradingview-mcp doctor` diagnostic command for instant setup verification
  • Optional Redis caching reduces CDP round-trips and improves performance for read tools

Considerations

  • Depends on TradingView's undocumented internal page API, which can change between Desktop releases
  • Requires a locally running TradingView Desktop with debug port enabled and a valid TradingView subscription
  • Potential instability due to reliance on Electron's CDP and undisclosed API; pinning TradingView version recommended

README quick start

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

Description

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

Related repositories

Similar projects matched by category, topics, and programming language.

0xwilliamortiz
Featured
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 & Machine LearningLarge Language Models
577
OneInterface
Featured
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 & Machine LearningLarge Language Models
72
S40911120
Featured
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 & Machine LearningLarge Language Models
67