tradingview-mcp-assistant

Automates TradingView chart analysis and Pine Script development via Chrome DevTools Protocol.

7|2|Updated May 16, 2026
One-click install
npx skills add https://github.com/reason-machines/mcp-skills --skill tradingview-mcp-assistant-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tradingview-mcp-assistant
Source: https://github.com/reason-machines/mcp-skills/tree/main/skills/tradingview-mcp-assistant
Command: npx skills add https://github.com/reason-machines/mcp-skills --skill tradingview-mcp-assistant-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually reading indicator values, iterating on Pine Script code, and managing TradingView charts is repetitive and slow. This Skill connects Claude Code to a locally running TradingView Desktop app via Chrome DevTools Protocol, enabling AI-assisted chart analysis, Pine Script development, and workflow automation without any external data transmission. ## Core Features & Use Cases - Chart Reading & Analysis: Read quotes, OHLCV bars, indicator values (RSI, MACD), and custom Pine Script drawings like lines, labels, tables, and boxes. - Pine Script Development: Inject, compile, debug, and save Pine Script indicators and strategies with automatic error detection and console log reading. - Chart Automation: Control symbols, timeframes, multi-pane layouts, drawing tools, price alerts, replay mode, and screenshots, with every tool also available as a tv CLI command. - Use Case: Ask the assistant to read support and resistance levels from a custom indicator, then automatically create price alerts at each level and capture a chart screenshot for your trading journal. ## Quick Start Ask Claude to use tv_health_check to verify the TradingView connection, then request a full chart analysis of the current symbol.

Frequently Asked Questions about tradingview-mcp-assistant

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect Claude Code to TradingView Desktop?▼

Launch TradingView Desktop with Chrome DevTools Protocol enabled on port 9222 using the provided launch scripts, then add the MCP server path to your .mcp.json configuration. Verify the connection by asking Claude to run tv_health_check.

How to read indicator values like RSI from a TradingView chart?▼

Use the data_get_study_values tool to read all visible indicator values including RSI, MACD, and Bollinger Bands. Start with chart_get_state to confirm which indicators are loaded on the chart.

Does TradingView MCP require a paid subscription?▼

Yes, this tool requires a valid TradingView subscription and the Desktop app. It communicates only with your local TradingView instance via CDP and does not access TradingView servers directly.

Can I write and debug Pine Script with Claude?▼

Yes, use pine_set_source to inject code into the Pine Editor, pine_smart_compile to compile with version auto-detection, and pine_get_errors to retrieve line-specific error messages for iteration.

Why does data_get_pine_lines return empty results?▼

Empty results usually mean the study_filter does not exactly match the indicator name, which is case-sensitive, or the Pine Script is not drawing any lines. Check chart_get_state for the exact indicator name first.

Is my trading data sent to external servers?▼

No, all communication happens locally via Chrome DevTools Protocol on port 9222. No data is stored externally or transmitted outside your machine.