Model Context Protocol

TradingView MCP Integration

Access TradingView data capabilities through MCP for AI assistants like Claude, Cursor, and VS Code. No need to build your own tool layer—use our ready-to-go tools directly.

Why Use TradingView MCP?

Professional market data integration for AI assistants

StreamableHTTP Transport

Real-time streaming with Server-Sent Events (SSE) for efficient data delivery

  • GET establishes SSE connection for streaming
  • POST sends JSON-RPC 2.0 requests
  • Low latency with persistent connections
  • Automatic reconnection handling
  • Efficient for real-time market data

Comprehensive Tools

Access 11 powerful tools for market data, analysis, and research

  • Market search and symbol discovery
  • Real-time quotes and historical prices
  • Technical analysis indicators
  • Financial news and sentiment
  • Economic calendar and events
  • Leaderboards and rankings

JWT Authentication

Secure token-based authentication with flexible expiration options

  • 30 minutes for quick testing
  • 1 day for daily usage
  • 15 days for long-term projects
  • Easy token regeneration
  • RapidAPI integration support

Multi-Client Support

Works seamlessly with popular AI assistants and MCP clients

  • Claude Desktop (macOS/Windows)
  • Cursor IDE
  • VS Code with MCP extension
  • Custom MCP clients
  • Standard JSON-RPC 2.0 protocol

Global Market Coverage

Access data from 353+ exchanges across all major asset classes

  • Stocks from 250+ global exchanges
  • Cryptocurrency markets (Binance, Coinbase, etc.)
  • Forex pairs and currency data
  • Futures and commodities
  • ETFs and indices

High Performance

Optimized for speed and reliability with enterprise-grade infrastructure

  • 99.9% uptime guarantee
  • Low-latency data delivery
  • Scalable architecture
  • CDN-accelerated endpoints
  • Real-time data synchronization

Available MCP Tools

11 powerful tools for comprehensive market data access

Search & Discovery

tradingview_search_market

Search for symbols across 353+ exchanges

Metadata

tradingview_get_metadata

Get market metadata, tabs, columnsets, exchanges

Quotes

tradingview_get_quote

Get real-time quote for a single symbol

Quotes

tradingview_get_quote_batch

Get real-time quotes for multiple symbols

Historical Data

tradingview_get_price

Get historical price data (OHLCV)

Historical Data

tradingview_get_price_batch

Get historical prices for multiple symbols

Technical Analysis

tradingview_get_ta

Get technical analysis indicators

News

tradingview_get_news

Get financial news for symbols

News

tradingview_get_news_detail

Get detailed news article content

Calendar

tradingview_get_calendar

Get economic calendar, earnings, dividends, IPOs

Rankings

tradingview_get_leaderboard

Get market leaderboards (gainers, losers, most active)

Quick Start Guide

Get connected in 3 simple steps

1

Generate JWT Token

Call the token generation endpoint to get your MCP authentication token:

curl -X POST https://tradingview-data1.p.rapidapi.com/api/mcp/generate \ -H "x-rapidapi-host: tradingview-data1.p.rapidapi.com" \ -H "x-rapidapi-key: YOUR_RAPIDAPI_KEY"
Response includes:
  • token - Your JWT authentication token
  • mcpUrl - MCP service endpoint
  • expiresIn - Token validity period (30min / 1day / 15days)
2

Configure Your MCP Client

Add TradingView MCP server to your client configuration:

For Cursor

~/.cursor/mcp.json

{ "mcpServers": { "tradingview": { "type": "streamable-http", "url": "https://mcp.tradingviewapi.com/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN_HERE", "Accept": "application/json, text/event-stream" } } } }

For Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json

{ "mcpServers": { "tradingview": { "type": "streamable-http", "url": "https://mcp.tradingviewapi.com/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN_HERE", "Accept": "application/json, text/event-stream" } } } }
3

Start Using MCP Tools

Restart your client and start using TradingView tools in your AI conversations:

"Search for Apple stock symbol"

"Get real-time quote for AAPL"

"Show me technical analysis for BTC/USDT"

"Get latest news for Tesla"

"Show upcoming earnings calendar"

"Get market leaderboards and top gainers"

Technical Details

Service Endpoint

https://mcp.tradingviewapi.com/mcp
  • Transport: StreamableHTTP
  • Protocol: JSON-RPC 2.0
  • GET for SSE streaming
  • POST for tool calls

Authentication

Multiple authentication methods supported (priority order):

  • Authorization: Bearer TOKEN (recommended)
  • x-api-token: TOKEN
  • x-rapidapi-key / x-rapidapi-proxy-secret

Required Headers

Content-Type: application/json Accept: application/json, text/event-stream Authorization: Bearer YOUR_TOKEN

Token Expiration

  • Type 1: 30 minutes - Quick testing
  • Type 2: 1 day - Daily usage
  • Type 3: 15 days - Long-term projects

Regenerate tokens before expiration to maintain access

Response Format

All responses follow JSON-RPC 2.0 specification:

  • Success: result field with data
  • Error: error field with code and message
  • Request ID: id field for matching requests
  • Streaming: SSE events for real-time updates

Rate Limits

API rate limits based on your subscription tier:

  • Basic: 150 requests/month
  • Pro: 30,000 requests/month
  • Ultra: 50,000 requests/month
  • Mega: 200,000 requests/month

WebSocket connections count as continuous requests

Ready to Integrate TradingView MCP?

Start accessing professional market data through your AI assistant today.