SuperAPIAI Directory

tradingview-mcp

github.com · AI developer platforms

TradingMCP is an open-source MCP server that provides AI assistants such as Claude, ChatGPT, Cursor, and Copilot with real-time market data, technical indicators, screeners, and backtesting capabilities, covering stocks, cryptocurrencies, forex, and futures. It offers 39 tools in total and supports self-hosting (free) or using the hosted version of TradingMCP (paid). The project is implemented in Python and does not depend on a TradingView account or API key; data comes from public endpoints.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

TradingMCP is an open-source MCP (Model Context Protocol) server for AI assistants, used for market data retrieval and technical analysis. It is not an official TradingView product and is not affiliated with TradingView Inc.

Purpose: to enable AI assistants (such as Claude, ChatGPT, Cursor, Copilot, and other MCP clients) to directly call real-time market data, technical indicators, screeners, backtesting, and sentiment analysis, covering stocks, cryptocurrencies, forex, and futures, with support for global exchanges.

Key capabilities: provides 39 MCP tools, including:

  • Technical analysis: multi-timeframe technical indicator analysis for a single instrument.
  • Screeners: all-exchange scanning, global stock screening (common and preferred shares), and Egyptian Exchange (EGX) support.
  • Backtesting engine: built-in 9 strategies (rsi, bollinger, macd, ema_cross, supertrend, donchian, rsi_pullback, keltner_breakout, triple_ema), outputting metrics such as win rate, total return, Sharpe ratio, Calmar ratio, maximum drawdown, profit/loss ratio, expectancy, best/worst trade, and comparison with buy-and-hold, while simulating commissions and slippage.
  • Price and market overview: yahoo_price supports stocks, cryptocurrencies, ETFs, indices, forex, Turkish stocks, and more.
  • News and sentiment: financial_news and market_sentiment are provided by Marketaux and require a free API key (100 requests/day; the server caches for 4 hours).
  • Other: market snapshot, Bitcoin market pulse, stock after-hours trading, futures category snapshot, futures watchlist, and more.

Usage:

  • Self-hosted (free): install via pip (PyPI package name tradingview-mcp-server), or run from source. Add the MCP server configuration to the Claude Desktop configuration file and start it with uvx. Note that Python 3.14 is not yet supported; Python 3.13 must be specified.
  • Hosted version (TradingMCP): add https://mcp.tradingmcp.ai/mcp as a connector in Claude, Cursor, and Grok and log in; ChatGPT, Copilot, and others use a private link. The hosted version starts at $9/month (Pro) or $29.99/month (Pro+, with higher limits) and offers a 14-day money-back guarantee. The hosted version supports drawing interactive candlestick charts in conversations (1d/1h/15m, with optional Bollinger Bands overlay).
  • It can also connect to messaging platforms such as Telegram, WhatsApp, and Discord through the OpenClaw gateway, using the trading.py wrapper to call functions directly.

Use cases: market research within AI assistants, technical analysis, strategy backtesting, news sentiment monitoring, multi-market screening, and more.

Limitations and notes:

  • This does not constitute investment advice; it is only an information and educational analysis tool and does not execute trades or manage funds.
  • Market data may be delayed, inaccurate, or incomplete, and no warranty is provided.
  • When self-hosting, the news and sentiment tools require MARKETAUX_API_TOKEN to be configured; otherwise they return a not-configured notice.
  • The project is implemented in Python and has no official npm/Node.js package; the only official sources are the GitHub repository atilaahmettaner/tradingview-mcp, the PyPI package tradingview-mcp-server, and the hosted version tradingmcp.ai. Note that counterfeit repositories may install malware via npm.
  • The error envelope format has been adopted by 28/39 tools; some tools have not yet been migrated.
  • Use must comply with the terms of the data sources; users are responsible for compliance themselves.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools