Skip to main content
Glama

pinetop

MCP server for TradingView Desktop — control charts, Pine Script, indicators, and backtesting via CDP (Chrome DevTools Protocol).

pip install pinetop

Quick Start

# 1. Launch TradingView with CDP flags
pinetop-launch

# 2. Register with Hermes
hermes mcp add pinetop --command pinetop

# 3. Use it (in a new session after /reset)

Related MCP server: TradingView MCP Bridge

Tools (14)

Category

Tools

Chart Control

tv_get_state, tv_set_symbol, tv_set_timeframe, tv_get_ohlcv, tv_get_quote, tv_get_studies, tv_get_symbol_info, tv_screenshot

Pine Script

tv_pine_open, tv_pine_get_source, tv_pine_compile, tv_pine_get_errors

Strategy Tester

tv_open_strategy_tester, tv_get_strategy_results

Architecture

Hermes ↔ MCP stdio ↔ pinetop (FastMCP) ↔ CDP WebSocket ↔ TradingView Desktop
                                              ↓
                            window.TradingViewApi.activeChart()

Requirements

  • TradingView Desktop 3.3.x (standalone, NOT Microsoft Store)

  • Python 3.11+

  • websocket-client

License

MIT

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to interact with TradingView Desktop charts for analysis, Pine Script development, and workflow automation via Chrome DevTools Protocol.
    99 npm
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Connects AI assistants to TradingView Desktop for chart analysis, Pine Script development, and workflow automation via Chrome DevTools Protocol.
    99 npm
    -
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to interact with locally running TradingView Desktop for chart analysis, Pine Script development, and workflow automation via Chrome DevTools Protocol.
    99 npm
    -