tradingview-mcp

by @atilaahmettaner

Tradingview MCP Server

Equip Claude, ChatGPT, Cursor, or Codex with 39 market-data, technical-indicator, screener, sentiment, and backtesting tools across stocks, crypto, forex, and futures. Runs locally in Python without a TradingView account, or connects via hosted TradingMCP.

Finance & Commerce5,334pythonMIT

Server facts

tradingview-mcp

GitHub stars

5,334

Last commit

Nov 20, 2026

Runtime

python

License

MIT

Tech

Runtime
python
Transports
stdio
Remote access
No
Authentication
None (optional MARKETAUX_API_TOKEN)

Activity

GitHub stars
5,334
Last commit
Data as of

Tags

  • Charts
  • Crypto
  • backtesting
  • finance
  • forex
  • market data
  • stocks
  • technical analysis
  • trading

Overview

Quantitative screening and strategy validation inside AI chats usually stall without live exchange feeds or reproducible backtesting. This independent MIT-licensed Python toolkit (`tradingview-mcp-server`, not affiliated with TradingView Inc.) serves 39 tools covering multi-exchange technical indicators, Bollinger Band ratings, candlestick pattern detection, multi-timeframe alignment, Yahoo Finance quotes, Reddit sentiment, live financial RSS headlines, and a 9-strategy backtesting engine with walk-forward overfitting verdicts. Because data is pulled server-side from public endpoints, it never logs into, scrapes, or touches your personal TradingView account or desktop app.

Self-hosting is free via `pip install tradingview-mcp-server` or `uvx --from tradingview-mcp-server tradingview-mcp` for Claude Desktop and Codex plugins, while an optional paid hosted service (`TradingMCP` at `https://mcp.tradingmcp.ai/mcp`) adds a direct remote URL and in-chat interactive candlestick charts for Claude, Cursor, ChatGPT, Grok, and Copilot. On Windows, pin `--python 3.13` with `uvx` (Python 3.14 lacks prebuilt wheels and triggers 60-second `-32001` timeouts), and on macOS specify the full path to `uvx`. Adding a free `MARKETAUX_API_TOKEN` enables licensed news and sentiment; note this Python-only repo has no official npm package and provides educational analysis rather than financial advice.

Install & configure

Requirements

  • Python 3.10-3.13 (pin 3.13 on Windows; Python 3.14 is not yet supported)
  • uv / uvx or pip for self-hosting (or hosted TradingMCP subscription)
  • Optional free MARKETAUX_API_TOKEN for licensed news and per-ticker sentiment
Documented launch / install command
pip install tradingview-mcp-server

Self-host via `pip install tradingview-mcp-server` or configure `uvx --python 3.13 --from tradingview-mcp-server tradingview-mcp` in Claude Desktop or Codex. On macOS GUI apps, supply the full path to `uvx`. Hosted connector URL is `https://mcp.tradingmcp.ai/mcp`.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "tradingview": {
      "command": "uvx",
      "args": [
        "--python",
        "3.13",
        "--from",
        "tradingview-mcp-server",
        "tradingview-mcp"
      ]
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "tradingview": {
      "command": "uvx",
      "args": [
        "--python",
        "3.13",
        "--from",
        "tradingview-mcp-server",
        "tradingview-mcp"
      ]
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "tradingview": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--python",
        "3.13",
        "--from",
        "tradingview-mcp-server",
        "tradingview-mcp"
      ]
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "tradingview": {
      "command": "uvx",
      "args": [
        "--python",
        "3.13",
        "--from",
        "tradingview-mcp-server",
        "tradingview-mcp"
      ]
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "tradingview": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--python",
        "3.13",
        "--from",
        "tradingview-mcp-server",
        "tradingview-mcp"
      ]
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
get_technical_analysisComputes RSI, MACD, Bollinger Bands, and 23 technical indicators with BUY, SELL, or HOLD signals.
get_multiple_analysisRuns bulk technical analysis across multiple symbols in a single request.
get_multi_timeframe_analysisEvaluates trend alignment from weekly down through daily, 4H, 1H, and 15m intervals.
get_bollinger_band_analysisScores symbols using a proprietary ±3 Bollinger Band rating system.
get_stock_decisionProduces ranking, trade setup framing, and quality scores via a 3-layer decision engine.
get_candlestick_patternsDetects 15 chart candlestick patterns on target instruments.
screen_stocksFilters symbols across global exchanges using 20+ technical and market criteria.
scan_by_signalScans exchanges for specific conditions such as oversold, trending, or breakout setups.
stock_screenerLists common or preferred stocks by TradingView country market with price, currency, percentage change, and dividend yield.
stock_pricesLooks up direct prices and daily percentage moves for comma-separated EXCHANGE:SYMBOL pairs.
yahoo_priceFetches real-time quotes, percentage change, 52-week ranges, and market state across stocks, crypto, ETFs, indices, and FX.
market_snapshotSummarizes major benchmarks including S&P500, NASDAQ, VIX, BTC, ETH, EUR/USD, SPY, and GLD.
backtest_strategyBacktests any of 9 strategies on 1d or 1h timeframes with Sharpe, Calmar, drawdown, expectancy, commission, and slippage metrics.
compare_strategiesRuns and ranks all 9 built-in strategies head-to-head on a chosen symbol.
walk_forward_backtest_strategyPerforms train/test split walk-forward validation returning ROBUST, MODERATE, WEAK, or OVERFITTED verdicts.
market_sentimentAggregates bullish and bearish Reddit sentiment scores and top finance community posts.
financial_newsRetrieves live RSS headlines from Yahoo Finance, MarketWatch, CNBC, CoinDesk, and CoinTelegraph.
combined_analysisConfluence workflow combining TradingView technicals, Reddit sentiment, and live news with retry and 60s caching.

Use cases

  • Generate morning market briefs spanning global indices, futures, crypto movers, and multi-timeframe technical reads.
  • Backtest and rank 9 trading strategies with walk-forward overfitting checks on daily or 1h bars.
  • Screen Binance, KuCoin, US, European, Indian, BIST, and EGX markets for volume breakouts or Bollinger setups.
  • Combine technical ratings, Reddit sentiment, and live headlines for confluence research on stocks or crypto.

Strengths

  • Works out of the box with no TradingView account, browser automation, or paid market-data API key required.
  • Broad 39-tool surface spanning multi-exchange screening, 9-strategy backtesting, walk-forward validation, and Yahoo Finance quotes.
  • Offers both free MIT-licensed self-hosting and a hosted connector URL with in-chat candlestick charts.

Limitations

  • Python 3.14 is not yet supported and can trigger first-launch timeouts unless pinned to Python 3.13.
  • Does not edit TradingView watchlists, alerts, Pine Script, or pull SEC filings/analyst forecasts like TradingView's official MCP.
  • Informational analysis only—data may be delayed or incomplete, and it does not execute trades or provide financial advice.

tradingview-mcp setup notes

  • tradingview-mcp's stdio example needs a client that launches local processes.

Frequently asked questions

No. Self-hosted mode fetches public market data server-side without logging into TradingView or automating TradingView Desktop. Only `MARKETAUX_API_TOKEN` is optional for Marketaux-backed news and sentiment.

Related MCP servers