Tradingview Server
FreeNot checkedExposes TradingView technical indicators and OHLCV data through MCP tools for Claude Desktop or any MCP-aware client.
About
Exposes TradingView technical indicators and OHLCV data through MCP tools for Claude Desktop or any MCP-aware client.
README
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)
- Install uv and Python 3.11+
- Run the setup script:
./setup.sh- Installs dependencies and creates virtual environment
- Automatically configures Claude Desktop with the MCP server
- Restart Claude Desktop to load the new configuration
Manual Setup
- Install uv and Python 3.11+
uv venv --python 3.11 && source .venv/bin/activateuv pip install -e .- 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; returnssuccess,symbol,exchange,timeframe, and anindicatorsmapping.get_specific_indicators(symbol, indicators, exchange="BINANCE", timeframe="1h", export_result=False)– filters the full snapshot to requested keys (case-insensitive) and echoesrequested_indicators.get_historical_data(symbol, exchange="BINANCE", timeframe="1h", max_records=100, export_result=False)– streams OHLCV candles viaStreamer, returningrecords_collected,data, and optionalexport_file.
Resources & Exports
- Resource
indicators/{symbol}emits a formatted indicator report usingget_indicatorsdefaults. - When
export_result=True, JSON payloads are written toexport/; 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 pytestexecutes the asynchronous test suite intest_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.
Install Tradingview Server in Claude Desktop, Claude Code & Cursor
unyly install mcp-tradingview-serverInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add mcp-tradingview-server -- uvx --from git+https://github.com/bidouilles/mcp-tradingview-server mcp-tradingview-serverFAQ
Is Tradingview Server MCP free?
Yes, Tradingview Server MCP is free — one-click install via Unyly at no cost.
Does Tradingview Server need an API key?
No, Tradingview Server runs without API keys or environment variables.
Is Tradingview Server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Tradingview Server in Claude Desktop, Claude Code or Cursor?
Open Tradingview Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Tradingview Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
