tradingview-mcp-thaqif

tradingview-mcp-thaqif

A local MCP server that connects TradingView Desktop to AI assistants via Chrome DevTools Protocol, enabling Pine Script development, multi-timeframe analysis, and Wyckoff scanning with a rules engine.

Category
Visit Server

README

tradingview-mcp-thaqif

Drive TradingView Desktop from Claude (and other MCP clients) for Pine Script v5/v6, FCPO/futures, and Wyckoff multi-timeframe analysis.

CI License: MIT npm version

A local MCP server that bridges TradingView Desktop to an AI assistant over the Chrome DevTools Protocol, shipped with a 64-rule rules.json that constrains how the AI writes Pine and reads the market. MIT-licensed, runs entirely on your machine.

Improved fork of tradingview-mcp-jackson by Lewis W. Jackson, itself built on the original tradingview-mcp by @tradesdontlie. Full credit to both — see NOTICE.

[!WARNING] Not affiliated with TradingView Inc. or Anthropic. This tool connects to the TradingView Desktop app already running on your machine via the Chrome DevTools Protocol. It requires your own valid TradingView subscription and does not bypass any paywall. It surfaces analysis only — it does not place trades. Read the Disclaimer and SECURITY.md before use.

[!NOTE] All processing is local. No TradingView data leaves your machine; the server has no telemetry.


What it does

  • Read your chart — symbol, timeframe, indicator values, and custom Pine output (lines, labels, tables, boxes).
  • Develop Pine Script v5/v6 — inject source, smart-compile, and read errors in a loop.
  • Manage alerts, replays, and screenshots.
  • morning_brief — scan a watchlist, read every indicator, and return structured data so the model produces a Wyckoff multi-timeframe bias, driven by your rules.json.

What's new in this fork

Feature What it does
rules.json v2.0.0 A 64-rule engine across 9 categories (Pine v5/v6, indicators, multi-timeframe, Wyckoff, FCPO, backtesting, alerts, risk, MCP tools). See docs/RULESET.md.
examples/fcpo_wyckoff_mtf.pine A worked, rule-compliant Pine v6 indicator (Spring/UTAD, non-repaint HTF, FCPO sessions).
npm + .mcpb packaging Install via npx, or one-click in Claude Desktop via a Desktop Extension bundle.
Inherited from the jackson fork morning_brief, session_save/session_get, tv CLI, and the tv_launch fix for TradingView Desktop v2.14+.

Requirements

  • Node.js 18+
  • TradingView Desktop running with the Chrome DevTools Protocol enabled (see SETUP_GUIDE.md)
  • A valid TradingView subscription

Install

Full per-client snippets (Cursor, Cline, VS Code, local clone) are in the install section below.

Claude Desktop — one click: install the .mcpb from Settings -> Extensions, or build it from manifest.json (see DISTRIBUTION.md).

Claude Desktop — config file (claude_desktop_config.json):

{
  "mcpServers": {
    "tradingview": {
      "command": "npx",
      "args": ["-y", "tradingview-mcp-thaqif"]
    }
  }
}

Cursor (~/.cursor/mcp.json), Cline (cline_mcp_settings.json), and VS Code (.vscode/mcp.json) use the same command/args. Run from a local clone with "command": "node", "args": ["/abs/path/tradingview-mcp-thaqif/src/server.js"].

Then, with TradingView Desktop open, verify with the tv_health_check tool.

The rules engine

rules.json is loaded as AI context so the assistant treats critical/high rules as hard constraints. The 9 categories: pine_script, indicators, multi_timeframe, wyckoff, fcpo, backtesting, alerts, risk_management, mcp_tools. Each rule has an id, rationale, severity, and a runnable example. Full guide: docs/RULESET.md. Worked example: examples/.

Publishing / distribution

This repo is packaged for npm, the official MCP Registry (server.json), and a Claude .mcpb bundle (manifest.json). Step-by-step in DISTRIBUTION.md.

Disclaimer

For research and educational use. Nothing here is financial advice. Trading FCPO, crude oil, and crypto futures involves substantial risk of loss. This tool is not affiliated with TradingView Inc. or Anthropic, PBC; you are responsible for complying with TradingView's Terms of Use. The server never executes trades — surface signals and place trades yourself.

Attribution & license

MIT — see LICENSE and the full attribution chain in NOTICE. Original by @tradesdontlie; fork foundation by @LewisWJackson.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured