TradingView MCP Server
Provides advanced cryptocurrency and stock market analysis using TradingView data with real-time screening, technical indicators, and pattern recognition. Supports multiple exchanges and markets for comprehensive trading intelligence through natural language queries.
README
📈 TradingView MCP Server
A powerful Model Context Protocol (MCP) server that provides advanced cryptocurrency and stock market analysis using TradingView data. Perfect for traders, analysts, and AI assistants who need real-time market intelligence.
🎥 Demo Video
Quick 19-second demo showing the MCP server in action
https://github-production-user-asset-6210df.s3.amazonaws.com/67838093/478689497-4a605d98-43e8-49a6-8d3a-559315f6c01d.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20250816%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250816T155717Z&X-Amz-Expires=300&X-Amz-Signature=1362a9ea0e886268315cfa5b63951c82929ea01c9d826c87060e3ac116cf9531&X-Amz-SignedHeaders=host
✨ Key Features
- 🚀 Real-time Market Screening: Find top gainers, losers, and trending stocks/crypto
- 📊 Advanced Technical Analysis: Bollinger Bands, RSI, MACD, and more indicators
- 🎯 Bollinger Band Intelligence: Proprietary rating system (-3 to +3) for squeeze detection
- 🕯️ Pattern Recognition: Detect consecutive bullish/bearish candle formations
- 💎 Multi-Market Support: Crypto exchanges (KuCoin, Binance, Bybit) + Traditional markets (NASDAQ, BIST)
- ⏰ Multi-Timeframe Analysis: From 5-minute to monthly charts
- 🔍 Individual Asset Deep-Dive: Comprehensive technical analysis for any symbol
🚀 Quick Start
Option 1: Claude Desktop (Recommended)
-
Install UV Package Manager:
# macOS (Homebrew) brew install uv # Windows powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" # macOS/Linux (Direct) curl -LsSf https://astral.sh/uv/install.sh | sh -
Add to Claude Desktop Configuration:
Config Path:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{ "mcpServers": { "tradingview-mcp": { "command": "uv", "args": [ "tool", "run", "--from", "git+https://github.com/atilaahmettaner/tradingview-mcp.git", "tradingview-mcp" ] } } } - Windows:
-
Restart Claude Desktop - The server will be automatically available!
📋 For detailed Windows instructions, see INSTALLATION.md
Option 2: Manual Installation
# Clone the repository
git clone https://github.com/atilaahmettaner/tradingview-mcp.git
cd tradingview-mcp
# Install dependencies
uv sync
# For local development, add to Claude Desktop:
Windows Configuration Path:
%APPDATA%\Claude\claude_desktop_config.json
macOS Configuration Path:
~/Library/Application Support/Claude/claude_desktop_config.json
Configuration for Local Setup:
{
"mcpServers": {
"tradingview-mcp-local": {
"command": "C:\\path\\to\\your\\tradingview-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\your\\tradingview-mcp\\src\\tradingview_mcp\\server.py"],
"cwd": "C:\\path\\to\\your\\tradingview-mcp"
}
}
}
macOS/Linux Configuration:
{
"mcpServers": {
"tradingview-mcp-local": {
"command": "uv",
"args": ["run", "python", "src/tradingview_mcp/server.py"],
"cwd": "/path/to/your/tradingview-mcp"
}
}
}
🛠️ Available Tools
📈 Market Screening
| Tool | Description | Example Usage |
|---|---|---|
top_gainers |
Find highest performing assets | Top crypto gainers in 15m |
top_losers |
Find biggest declining assets | Worst performing stocks today |
bollinger_scan |
Find assets with tight Bollinger Bands | Coins ready for breakout |
rating_filter |
Filter by Bollinger Band rating | Strong buy signals (rating +2) |
🔍 Technical Analysis
| Tool | Description | Example Usage |
|---|---|---|
coin_analysis |
Complete technical analysis | Analyze BTC with all indicators |
consecutive_candles_scan |
Find candlestick patterns | 3+ consecutive green candles |
advanced_candle_pattern |
Multi-timeframe pattern analysis | Complex pattern detection |
📋 Information
| Tool | Description |
|---|---|
exchanges://list |
List all supported exchanges and markets |
📝 Usage Examples
Talk to Claude Like This:
Basic Market Screening:
"Show me the top 10 crypto gainers on KuCoin in the last 15 minutes"
"Find the biggest losers on Binance today"
"Which Turkish stocks (BIST) are down more than 5% today?"
Technical Analysis:
"Analyze Bitcoin with all technical indicators"
"Find crypto coins with Bollinger Band squeeze (BBW < 0.05)"
"Show me coins with strong buy signals (rating +2)"
Pattern Recognition:
"Find coins with 3 consecutive bullish candles on Bybit"
"Scan for stocks showing growing candle patterns"
"Which assets have tight Bollinger Bands ready for breakout?"
Advanced Queries:
"Compare AAPL vs TSLA technical indicators"
"Find high-volume crypto with RSI below 30"
"Show me NASDAQ stocks with strong momentum"
🎯 Understanding the Bollinger Band Rating System
Our proprietary rating system helps identify trading opportunities:
| Rating | Signal | Description |
|---|---|---|
| +3 | 🔥 Strong Buy | Price above upper Bollinger Band |
| +2 | ✅ Buy | Price in upper 50% of bands |
| +1 | ⬆️ Weak Buy | Price above middle line |
| 0 | ➡️ Neutral | Price at middle line |
| -1 | ⬇️ Weak Sell | Price below middle line |
| -2 | ❌ Sell | Price in lower 50% of bands |
| -3 | 🔥 Strong Sell | Price below lower Bollinger Band |
Bollinger Band Width (BBW): Lower values indicate tighter bands → potential breakout coming!
🏢 Supported Markets & Exchanges
💰 Cryptocurrency Exchanges
- KuCoin (KUCOIN) - Primary recommendation
- Binance (BINANCE) - Largest crypto exchange
- Bybit (BYBIT) - Derivatives focused
- OKX (OKX) - Global crypto exchange
- Coinbase (COINBASE) - US-regulated exchange
- Gate.io (GATEIO) - Altcoin specialist
- Huobi (HUOBI) - Asian market leader
- Bitfinex (BITFINEX) - Professional trading
📊 Traditional Markets
- NASDAQ (NASDAQ) - US tech stocks (AAPL, MSFT, TSLA)
- BIST (BIST) - Turkish stock market (Borsa İstanbul)
- More markets coming soon!
⏰ Supported Timeframes
5m, 15m, 1h, 4h, 1D, 1W, 1M
📊 Technical Indicators Included
- Bollinger Bands (20, 2) - Volatility and squeeze detection
- RSI (14) - Momentum oscillator
- Moving Averages - SMA20, EMA50, EMA200
- MACD - Trend and momentum
- ADX - Trend strength measurement
- Stochastic - Overbought/oversold conditions
- Volume Analysis - Market participation
- Price Action - OHLC data with percentage changes
🚨 Troubleshooting
Common Issues:
1. "No data found" errors:
- Try different exchanges (KuCoin usually works best)
- Use standard timeframes (15m, 1h, 1D)
- Check symbol format (e.g., "BTCUSDT" not "BTC")
2. Empty arrays or rate limiting:
- If you get empty results, you may have hit TradingView's rate limits
- Wait 5-10 minutes between query sessions
- The server automatically handles retries
- KuCoin and BIST have the most reliable data
3. Claude Desktop not detecting the server:
- Restart Claude Desktop after adding configuration
- Check that UV is installed:
uv --version - Verify the configuration JSON syntax
4. Slow responses:
- First request may be slower (warming up)
- Subsequent requests are much faster
- Consider using smaller limits (5-10 items)
🔧 Development & Customization
Running in Development Mode:
# Clone and setup
git clone https://github.com/atilaahmettaner/tradingview-mcp.git
cd tradingview-mcp
uv sync
# Run with MCP Inspector for debugging
uv run mcp dev src/tradingview_mcp/server.py
# Test individual functions
uv run python test_api.py
Adding New Exchanges:
The server is designed to be easily extensible. Check src/tradingview_mcp/core/ for the modular architecture.
🤝 Contributing
We welcome contributions! Here's how:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Ideas for Contributions:
- Add new exchanges or markets
- Implement additional technical indicators
- Improve error handling and rate limiting
- Add more candlestick pattern recognition
- Create comprehensive test suite
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🐛 Support & Issues
- Report bugs: GitHub Issues
- Feature requests: Open an issue with the "enhancement" label
- Questions: Check existing issues or open a new discussion
🌟 Star This Project
If you find this MCP server useful, please ⭐ star the repository to help others discover it!
Built with ❤️ for traders and AI enthusiasts
Empowering intelligent trading decisions through advanced market analysis
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.