TradingView MCP Server logo

TradingView MCP Server

CommunityPopular
atilaahmettaner

Real-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick patterns + native Claude Desktop integration. Multi-exchange (Binance, KuCoin, Bybit+). Open-source AI trading infrastructure.

Publisheratilaahmettaner
Repositorytradingview-mcp
LanguagePython
Forks
607
Stars
2.8K
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    TradingView MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    2.8K stars and 607 forks from the linked repository.

📈 AI Trading Intelligence Framework — MCP Server

The most complete AI-powered trading toolkit for Claude and MCP clients. Backtesting + Live Sentiment + Yahoo Finance + 30+ Technical Analysis Tools — all in one MCP server.

License: MIT Python 3.10+ MCP Ready OpenClaw Ready Version PyPI GitHub Sponsors

⭐ If this tool improves your workflow, please star the repo and consider sponsoring — it keeps the project alive and growing!

🚀 Don't want to fight uv / pandas / Python on Windows?
pro.cryptosieve.com — same 30+ tools,
one connector URL into Claude.ai, ChatGPT, Copilot, Cursor. $9/month with 7-day free trial.
Self-hosting is free and always will be; the hosted version is just for
folks who'd rather skip the ops dance.


🎥 Framework Demo

https://github-production-user-asset-6210df.s3.amazonaws.com/67838093/478689497-4a605d98-43e8-49a6-8d3a-559315f6c01d.mp4


🏗️ Architecture

tradingview-mcp Architecture


✨ Why tradingview-mcp?

Featuretradingview-mcpTraditional SetupsBloomberg Terminal
Setup Time5 minutesHours (Docker, Conda...)Weeks (Contracts)
CostFree & Open SourceVariable$30k+/year
Backtesting✅ 6 strategies + Sharpe❌ Manual scripting✅ Proprietary
Live Sentiment✅ Reddit + RSS news❌ Separate setup✅ Terminal
Market Data✅ Live / Real-TimeHistorical / DelayedLive
API KeysNone requiredMultiple (OpenAI, etc.)N/A

🚀 Quick Start (5 Minutes)

Install via pip

bash
pip install tradingview-mcp-server

Claude Desktop Config (claude_desktop_config.json)

Note: On macOS, GUI apps like Claude Desktop may not have ~/.local/bin in their PATH. Use the full path to uvx to avoid "command not found" errors.

json
{
  "mcpServers": {
    "tradingview": {
      "command": "/Users/YOUR_USERNAME/.local/bin/uvx",
      "args": ["--from", "tradingview-mcp-server", "tradingview-mcp"]
    }
  }
}

On Linux, replace /Users/YOUR_USERNAME with /home/YOUR_USERNAME. On Windows, use %USERPROFILE%\.local\bin\uvx.exe.

Codex Plugin Config

This repository also includes mcp-only Codex plugin metadata:

  • .codex-plugin/plugin.json
  • .codex-mcp.json

The plugin uses the same PyPI package entrypoint:

json
{
  "mcpServers": {
    "tradingview": {
      "command": "uvx",
      "args": ["--from", "tradingview-mcp-server", "tradingview-mcp"]
    }
  }
}

After installing or enabling the Codex plugin, restart Codex so the MCP server is loaded in the next session. Depending on your Codex version, codex mcp list may show registered MCP servers, but tool availability should be verified in a fresh Codex session.

Or run from source

bash
git clone https://github.com/atilaahmettaner/tradingview-mcp
cd tradingview-mcp
uv run tradingview-mcp

🛠️ Troubleshooting

🪟 Windows: MCP error -32001: Request timed out on first launch

Symptom — you see this in the Claude Desktop logs shortly after adding the config:

[tradingview] Server started and connected successfully
[tradingview] Message from client: initialize ...
[60 seconds later]
[tradingview] notifications/cancelled — reason: "MCP error -32001: Request timed out"

Why it happens: on Windows with Python 3.14, uvx downloads tradingview-mcp-server, creates a fresh virtualenv, and installs dependencies the first time it runs. Because pandas has no prebuilt wheel for Python 3.14 yet, pip falls back to a source build — which typically exceeds Claude Desktop's 60-second MCP initialization timeout.

Fix — pin to Python 3.13 (has prebuilt pandas wheels):

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

On macOS use the full path to uvx (see the note in Quick Start). On Windows uvx is typically %USERPROFILE%\.local\bin\uvx.exe.

Alternative — pre-install once, then let Claude Desktop reuse the cache:

bash
# Run in a terminal before launching Claude Desktop
uv tool install --python 3.13 tradingview-mcp-server

After the install finishes, start Claude Desktop with the normal config and the server will come up instantly (cache is already warm).

Credit: @wyh4444 for the original report in #24.


📱 Use via Telegram, WhatsApp & More (OpenClaw)

Connect this server to Telegram, WhatsApp, Discord and 20+ messaging platforms using OpenClaw — a self-hosted AI gateway. Tested & verified on Hetzner VPS (Ubuntu 24.04).

How It Works

OpenClaw routes Telegram messages to an AI agent. The agent uses trading.py — a thin Python wrapper — to call tradingview-mcp functions and return formatted results. No MCP protocol needed between OpenClaw and the server; it's a direct Python import.

Telegram → OpenClaw agent (AI model) → trading.py (bash) → tradingview-mcp → Yahoo Finance

Quick Setup

bash
# 1. Install UV and tradingview-mcp
curl -LsSf https://astral.sh/uv/install.sh | sh && source ~/.bashrc
uv tool install tradingview-mcp-server

# 2. Configure OpenClaw channels
cat > ~/.openclaw/openclaw.json << 'EOF'
{
  channels: {
    telegram: {
      botToken: "YOUR_BOT_TOKEN_HERE",
    },
  },
}
EOF

# 3. Configure gateway + agent
openclaw config set gateway.mode local
openclaw config set acp.defaultAgent main

# 4. Set your AI model (choose ONE option below)
openclaw configure --section model

# 5. Install the skill + tool wrapper
mkdir -p ~/.agents/skills/tradingview-mcp ~/.openclaw/tools
curl -fsSL https://raw.githubusercontent.com/atilaahmettaner/tradingview-mcp/main/openclaw/SKILL.md \
  -o ~/.agents/skills/tradingview-mcp/SKILL.md
curl -fsSL https://raw.githubusercontent.com/atilaahmettaner/tradingview-mcp/main/openclaw/trading.py \
  -o ~/.openclaw/tools/trading.py && chmod +x ~/.openclaw/tools/trading.py

# 6. Start the gateway
openclaw gateway install
systemctl --user start openclaw-gateway.service

Choose Your AI Model

OpenRouter is not required — use whichever provider you have a key for:

ProviderModel ID for OpenClawGet Key
OpenRouter (aggregator — access to all models)openrouter/google/gemini-3-flash-previewopenrouter.ai/keys
Anthropic (Claude direct)anthropic/claude-sonnet-4-5console.anthropic.com
Google (Gemini direct)google/gemini-2.5-flashaistudio.google.com
OpenAI (GPT direct)openai/gpt-4o-miniplatform.openai.com
bash
# Examples — set your chosen model:
openclaw config set agents.defaults.model "openrouter/google/gemini-3-flash-preview"  # via OpenRouter
openclaw config set agents.defaults.model "anthropic/claude-sonnet-4-5"               # Anthropic direct
openclaw config set agents.defaults.model "google/gemini-2.5-flash"                   # Google direct

⚠️ Important: Prefix must match your provider. google/... needs a Google API key. openrouter/... needs an OpenRouter key.

⚠️ Common Mistakes

SymptomCauseFix
Unrecognized keys: mcpServersmcpServers not supported in this versionRemove from config, use bash wrapper
No API key for provider "google"Used google/model but only have OpenRouter keyUse openrouter/google/model instead
which agent? loopacp.defaultAgent not setopenclaw config set acp.defaultAgent main
Gateway won't startgateway.mode missingopenclaw config set gateway.mode local

Test Your Bot

Once running, send your Telegram bot:

market snapshot
backtest RSI strategy for AAPL, 1 year
compare all strategies for BTC-USD

👉 Full OpenClaw Setup Guide →


Unlike basic screeners, this framework deploys specialized AI agents that debate findings in real-time:

  1. 🛠️ Technical Analyst — Bollinger Bands (±3 proprietary rating), RSI, MACD
  2. 🌊 Sentiment & Momentum Analyst — Reddit community sentiment + price momentum
  3. 🛡️ Risk Manager — Volatility, drawdown risk, mean-reversion signals

Output: STRONG BUY / BUY / HOLD / SELL / STRONG SELL with confidence score


🔧 All 30+ MCP Tools

📊 Backtesting Engine (New in v0.6.0)

ToolDescription
backtest_strategyBacktest 1 of 6 strategies with institutional metrics (Sharpe, Calmar, Expectancy)
compare_strategiesRun all 6 strategies on same symbol and rank by performance

6 Strategies to Test:

  • rsi — RSI oversold/overbought mean reversion
  • bollinger — Bollinger Band mean reversion
  • macd — MACD golden/death cross
  • ema_cross — EMA 20/50 Golden/Death Cross
  • supertrend — ATR-based Supertrend trend following 🔥
  • donchian — Donchian Channel breakout (Turtle Trader style)

Metrics you get: Win Rate, Total Return, Sharpe Ratio, Calmar Ratio, Max Drawdown, Profit Factor, Expectancy, Best/Worst Trade, vs Buy-and-Hold, with realistic commission + slippage simulation.

Example prompt: "Compare all strategies on BTC-USD for 2 years"
→ #1 Supertrend: +31.5% | Sharpe: 2.1 | WR: 62%
→ #2 Bollinger:  +18.3% | Sharpe: 3.4 | WR: 75%
→ Buy & Hold:    -5.0%

💰 Yahoo Finance — Real-Time Prices (New in v0.6.0)

ToolDescription
yahoo_priceReal-time quote: price, change %, 52w high/low, market state
market_snapshotGlobal overview: S&P500, NASDAQ, VIX, BTC, ETH, EUR/USD, SPY, GLD

Supports: Stocks (AAPL, TSLA, NVDA), Crypto (BTC-USD, ETH-USD, SOL-USD), ETFs (SPY, QQQ, GLD), Indices (^GSPC, ^DJI, ^IXIC, ^VIX), FX (EURUSD=X), Turkish (THYAO.IS, SASA.IS)


🧠 AI Sentiment & Intelligence (New in v0.5.0)

ToolDescription
market_sentimentReddit sentiment across finance communities (bullish/bearish score, top posts)
financial_newsLive RSS headlines from Reuters, CoinDesk, CoinTelegraph
combined_analysisPower Tool: TradingView technicals + Reddit sentiment + live news → confluence decision

📈 Technical Analysis Core

ToolDescription
get_technical_analysisFull TA: RSI, MACD, Bollinger, 23 indicators with BUY/SELL/HOLD
get_multiple_analysisBulk TA for multiple symbols at once
get_bollinger_band_analysisProprietary ±3 BB rating system
get_stock_decision3-layer decision engine (ranking + trade setup + quality score)
screen_stocksMulti-exchange screener with 20+ filter criteria
scan_by_signalScan by signal type (oversold, trending, breakout...)
get_candlestick_patterns15 candlestick pattern detector
get_multi_timeframe_analysisWeekly→Daily→4H→1H→15m alignment analysis

🌍 Multi-Exchange Support

ExchangeTools
BinanceCrypto screener, all pairs
KuCoin / Bybit+Crypto screener
NASDAQ / NYSEUS stocks (AAPL, TSLA, NVDA...)
EGX (Egypt)egx_market_overview, egx_stock_screener, egx_trade_plan, egx_fibonacci_retracement
Turkish (BIST)Via TradingView screener

💬 Example AI Conversations

You: "Give me a full market snapshot right now"
AI: [market_snapshot] → S&P500 -3.4%, BTC +0.1%, VIX 31 (+13%), EUR/USD 1.15

You: "What is Reddit saying about NVDA?"
AI: [market_sentiment] → Strongly Bullish (0.41) | 23 posts | 18 bullish

You: "Backtest RSI strategy on BTC-USD for 2 years"
AI: [backtest_strategy] → +31.5% return | 100% win rate | 2 trades | B&H: -5%

You: "Which strategy worked best on AAPL in the last 2 years?"
AI: [compare_strategies] → Supertrend #1 (+14.6%, Sharpe 3.09), MACD last (-9.1%)

You: "Analyze TSLA with all signals: technical + sentiment + news"
AI: [combined_analysis] → BUY (Technical STRONG BUY + Bullish Reddit + Positive news)

💖 Support the Project

This framework is free and open source, built in spare time. If it saves you hours of research or helps you make better decisions, please consider sponsoring:

TierMonthlyWhat You Get
☕ Coffee$5Heartfelt gratitude + name in README
🚀 Supporter$15Above + priority bug fixes
💎 Pro$30Above + priority feature requests

Every sponsor directly funds new features like Walk-Forward Backtesting, Twitter/X sentiment, and managed cloud hosting.


📋 Roadmap

  • TradingView technical analysis (30+ indicators)
  • Multi-exchange screener (Binance, KuCoin, MEXC, EGX, US stocks)
  • Reddit sentiment analysis
  • Live financial news (RSS)
  • Yahoo Finance real-time prices
  • Backtesting engine (6 strategies + Sharpe/Calmar/Expectancy)
  • Walk-forward backtesting (overfitting detection)
  • Twitter/X market sentiment
  • Paper trading simulation
  • Managed cloud hosting (no local setup)

📄 License

MIT License — see LICENSE for details.


Disclaimer: This tool is for educational and research purposes only. It does not constitute financial advice. Always do your own research before making investment decisions.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "atilaahmettaner-tradingview-mcp": {
      "command": "uvx",
      "args": [
        "tradingview-mcp-server"
      ]
    }
  }
}

Use TradingView MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once TradingView MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add TradingView MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the TradingView MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "atilaahmettaner-tradingview-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tradingview-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the TradingView MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the TradingView MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use TradingView MCP Server to help me with this task?
TradingView MCP Server
Sure. I read it.
Here is what I found using TradingView MCP Server.

Frequently asked questions

What is the TradingView MCP Server MCP server used for?

TradingView MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use TradingView MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use TradingView MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use TradingView MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With TradingView MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect TradingView MCP Server MCP to TypingMind?

TradingView MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does TradingView MCP Server MCP provide in TypingMind?

TradingView MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use TradingView MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If TradingView MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇