Sponsored by Deepsite.site

Tradingview Mcp Server

Created By
atilaahmettaner4 months ago
Content

📈 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

  1. 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
    
  2. 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"
          ]
        }
      }
    }
    
  3. 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

ToolDescriptionExample Usage
top_gainersFind highest performing assetsTop crypto gainers in 15m
top_losersFind biggest declining assetsWorst performing stocks today
bollinger_scanFind assets with tight Bollinger BandsCoins ready for breakout
rating_filterFilter by Bollinger Band ratingStrong buy signals (rating +2)

🔍 Technical Analysis

ToolDescriptionExample Usage
coin_analysisComplete technical analysisAnalyze BTC with all indicators
consecutive_candles_scanFind candlestick patterns3+ consecutive green candles
advanced_candle_patternMulti-timeframe pattern analysisComplex pattern detection

📋 Information

ToolDescription
exchanges://listList 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:

RatingSignalDescription
+3🔥 Strong BuyPrice above upper Bollinger Band
+2✅ BuyPrice in upper 50% of bands
+1⬆️ Weak BuyPrice above middle line
0➡️ NeutralPrice at middle line
-1⬇️ Weak SellPrice below middle line
-2❌ SellPrice in lower 50% of bands
-3🔥 Strong SellPrice 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:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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

Server Config

{
  "mcpServers": {
    "tradingview-mcp": {
      "command": "uv",
      "args": [
        "tool",
        "run",
        "--from",
        "git+https://github.com/atilaahmettaner/tradingview-mcp.git",
        "tradingview-mcp"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Amap Maps高德地图官方 MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
DeepChatYour AI Partner on Desktop
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Tavily Mcp
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
ChatWiseThe second fastest AI chatbot™
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code