Skip to content
Kitbay
MCP server

Trading-View-MCP-for-AI-by-Moon-Dev

Runs locallyMITUpdated on Aug 30, 202698GitHub starsCan change dataNeeds an API key

A community Python MCP server by Moon Dev that drives a logged-in TradingView chart page in a dedicated Chrome profile through the Chrome DevTools Protocol.

What it does

A community Python MCP server by Moon Dev that drives a logged-in TradingView chart page in a dedicated Chrome profile through the Chrome DevTools Protocol. The agent writes Pine Script, checks that it compiles by calling TradingView's Pine compiler over HTTPS, pastes it into the Pine Editor, adds it to the chart and reads results back. It needs Python 3.10 or later, Chrome and a TradingView account, and a free account is enough according to the README. The user logs in once in the dedicated browser window and keeps it open. Setup notes cover Claude Desktop and Claude Code over stdio.

Capabilities

  • Compile-check Pine Script before it reaches the chart
  • Paste Pine Script into the Pine Editor and add it to the chart
  • Read indicator results back from the chart
  • Launch a dedicated Chrome profile for TradingView