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.
# Add to your Claude Code skills
git clone https://github.com/atilaahmettaner/tradingview-mcpThe 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.
โญ If this tool improves your workflow, please star the repo and consider sponsoring โ it keeps the project alive and growing!
https://github-production-user-asset-6210df.s3.amazonaws.com/67838093/478689497-4a605d98-43e8-49a6-8d3a-559315f6c01d.mp4

| Feature | tradingview-mcp | Traditional Setups | Bloomberg Terminal |
|---------|-------------------|--------------------|--------------------|
| | 5 minutes | Hours (Docker, Conda...) | Weeks (Contracts) |
| | Free & Open Source | Variable | $30k+/year |
| | โ
6 strategies + Sharpe | โ Manual scripting | โ
Proprietary |
| | โ
Reddit + RSS news | โ Separate setup | โ
Terminal |
| | โ
Live / Real-Time | Historical / Delayed | Live |
| | | Multiple (OpenAI, etc.) | N/A |
No comments yet. Be the first to share your thoughts!
pip install tradingview-mcp-server
claude_desktop_config.json)Note: On macOS, GUI apps like Claude Desktop may not have
~/.local/binin their PATH. Use the full path touvxto avoid "command not found" errors.
{
"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.
git clone https://github.com/atilaahmettaner/tradingview-mcp
cd tradingview-mcp
uv run tradingview-mcp
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).
OpenClaw routes Telegram messages to an AI agent. The agent uses
trading.pyโ a thin Python wrapper โ to calltradingview-mcpfunctions 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
# 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
OpenRouter is not required โ use whichever provider you have a key for:
| Provider | Model ID for OpenClaw | Get Key |
|----------|----------------------|---------|
| OpenRouter (aggregator โ access to all models) | openrouter/google/gemini-3-flash-preview | openrouter.ai/keys |
| Anthropic (Claude direct) | anthropic/claude-sonnet-4-5 | console.anthropic.com |
| Google (Gemini direct) | google/gemini-2.5-flash | aistudio.google.com |
| OpenAI (GPT direct) | openai/gpt-4o-mini | platform.openai.com |
# 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.
| Symptom | Cause | Fix |
|---------|-------|-----|
| Unrecognized keys: mcpServers | mcpServers not supported in this version | Remove from config, use bash wrapper |
| No API key for provider "google" | Used google/model but only have OpenRouter key | Use openrouter/google/model instead |
| which agent? loop | acp.defaultAgent not set | openclaw config set acp.defaultAgent main |
| Gateway won't start | gateway.mode missing | openclaw config set gateway.mode local |
Once running, send your Telegram bot:
market snapshot
backtest RSI strategy for AAPL, 1 year
compare all strategies for BTC-USD
Unlike basic screeners, this framework deploys specialized AI agents that debate findings in real-time:
Output: STRONG BUY / BUY / HOLD / SELL / STRONG SELL with confidence score
| Tool | Description |
|------|-------------|
| backtest_strategy | Backtest 1 of 6 strategies with institutional metrics (Sharpe, Calmar, Expectancy) |
| compare_strategies | Run all 6 strategies on same symbol and rank by performance |
6 Strategies to Test:
rsi โ RSI oversold/overbought mean reversionbollinger โ Bollinger Band mean reversionmacd โ MACD golden/death crossema_cross โ EMA 20/50 Golden/Death Crosssupertrend โ 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%
| Tool | Description |
|------|-------------|
| yahoo_price | Real-time quote: price, change %, 52w high/low, market state |
| market_snapshot | Global 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)
| Tool | Description |
|------|-------------|
| market_sentiment | Reddit sentiment across finance communities (bullish/bearish score, top posts) |
| financial_news | Live RSS headlines from Reuters, CoinDesk, CoinTelegraph |
| combined_analysis | Power Tool: TradingView technicals + Reddit sentiment + live news โ confluence decision |
| Tool | Description |
|------|-------------|
| get_technical_analysis | Full TA: RSI, MACD, Bollinger, 23 indicators with BUY/SELL/HOLD |
| get_multiple_analysis | Bulk TA for multiple symbols at once |
| get_bollinger_band_analysis | Proprietary ยฑ3 BB rating system |
| get_stock_decision | 3-layer decision engine (ranking + trade