mcp-tradingview-server

mcp-tradingview-server

Exposes TradingView technical indicators and OHLCV data through MCP tools for Claude Desktop or any MCP-aware client.

Category
Visit Server

README

MCP TradingView Server

FastMCP v2 server that exposes TradingView technical indicators and OHLCV data through the tradingview_scraper library. The mcp-tradingview console entry powers Claude Desktop or any MCP-aware client.

Quick Start

Automated Setup (Recommended)

  1. Install uv and Python 3.11+
  2. Run the setup script: ./setup.sh
    • Installs dependencies and creates virtual environment
    • Automatically configures Claude Desktop with the MCP server
  3. Restart Claude Desktop to load the new configuration

Manual Setup

  1. Install uv and Python 3.11+
  2. uv venv --python 3.11 && source .venv/bin/activate
  3. uv pip install -e .
  4. Configure Claude Desktop (see below)

Running

  • Stdio (Claude default): uv run mcp-tradingview
  • SSE service: uv run mcp-tradingview --transport sse --host 0.0.0.0 --port 8000
  • HTTP service: uv run mcp-tradingview --transport http --host 0.0.0.0 --port 8000 --path /mcp

FASTMCP_HOST, FASTMCP_PORT, and FASTMCP_PATH environment variables override the bind settings when present.

Tools

  • get_indicators(symbol, exchange="BINANCE", timeframe="1h", all_indicators=True, export_result=False) – full TradingView indicator snapshot; returns success, symbol, exchange, timeframe, and an indicators mapping.
  • get_specific_indicators(symbol, indicators, exchange="BINANCE", timeframe="1h", export_result=False) – filters the full snapshot to requested keys (case-insensitive) and echoes requested_indicators.
  • get_historical_data(symbol, exchange="BINANCE", timeframe="1h", max_records=100, export_result=False) – streams OHLCV candles via Streamer, returning records_collected, data, and optional export_file.

Resources & Exports

  • Resource indicators/{symbol} emits a formatted indicator report using get_indicators defaults.
  • When export_result=True, JSON payloads are written to export/; keep large archives out of version control.

Claude Desktop

Add the server to claude_desktop_config.json. Here are the recommended configurations:

Using Claude Code CLI (Easiest)

claude mcp add tradingview -- uvx --from /absolute/path/to/mcp-tradingview-server mcp-tradingview

Or with uv run:

claude mcp add tradingview -- uv run mcp-tradingview --cwd /absolute/path/to/mcp-tradingview-server

Manual Configuration

Stdio Transport (Recommended)

{
  "mcpServers": {
    "tradingview": {
      "command": "uvx",
      "args": ["--from", "/absolute/path/to/mcp-tradingview-server", "mcp-tradingview"]
    }
  }
}

Alternative with uv run:

{
  "mcpServers": {
    "tradingview": {
      "command": "uv",
      "args": ["run", "mcp-tradingview"],
      "cwd": "/absolute/path/to/mcp-tradingview-server"
    }
  }
}

HTTP Transport

{
  "mcpServers": {
    "tradingview": {
      "command": "uv",
      "args": ["run", "mcp-tradingview", "--transport", "http", "--host", "0.0.0.0", "--port", "8001", "--path", "/mcp"],
      "cwd": "/absolute/path/to/mcp-tradingview-server"
    }
  }
}

Restart Claude Desktop after updating the configuration. The bundled CLAUDE.md provides extra guidance the model can reference while chatting.

Development

  • uv run pytest executes the asynchronous test suite in test_server.py.
  • Use logging.getLogger(__name__) for diagnostics; avoid printing secrets.
  • Refer to export/ for captured fixtures when updating tests or documentation.

License

This project is provided as-is for educational and research purposes.

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