☁️ This is the self-hosting guide (free, MIT). Prefer to skip the setup entirely? The same 30+ tools are available hosted as one connector URL for Claude.ai, ChatGPT, Copilot & Cursor at pro.cryptosieve.com — from $9/mo, 3-day free trial.
- Python 3.10-3.13
- UV Package Manager (for dependency management)
- Claude Desktop or Codex (for MCP integration)
- Internet Connection (for TradingView data access)
UV is a fast Python package manager that handles all dependencies automatically.
brew install uvOn macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | shOn Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"uv --versionThis repository includes mcp-only Codex plugin metadata:
.codex-plugin/plugin.json.codex-mcp.json
The bundled Codex MCP configuration uses the PyPI package:
{
"mcpServers": {
"tradingview": {
"command": "uvx",
"args": [
"--from",
"tradingview-mcp-server",
"tradingview-mcp"
]
}
}
}After enabling the plugin in Codex, 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. To verify tool availability, start a fresh Codex session and ask it to show the available TradingView tools.
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
Linux:
~/.config/Claude/claude_desktop_config.json
Open the config file and add this configuration:
{
"mcpServers": {
"tradingview-mcp": {
"command": "uv",
"args": [
"tool",
"run",
"--from",
"git+https://github.com/atilaahmettaner/tradingview-mcp.git",
"tradingview-mcp"
]
}
}
}If you already have other MCP servers configured:
{
"mcpServers": {
"existing-server": {
"command": "...",
"args": ["..."]
},
"tradingview-mcp": {
"command": "uv",
"args": [
"tool",
"run",
"--from",
"git+https://github.com/atilaahmettaner/tradingview-mcp.git",
"tradingview-mcp"
]
}
}
}After adding the configuration:
- Completely quit Claude Desktop
- Restart the application
- Wait for initialization (first startup may take 30-60 seconds)
Ask Claude:
"Can you show me the available TradingView tools?"
You should see tools like:
top_gainerstop_losersbollinger_scancoin_analysisconsecutive_candles_scan
-
Install UV Package Manager:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
-
Clone the Repository:
git clone https://github.com/atilaahmettaner/tradingview-mcp.git cd tradingview-mcp
-
Install Dependencies:
uv sync
-
Find Your Claude Desktop Config:
- Press
Win + R, type%APPDATA%\Claudeand press Enter - Create or edit
claude_desktop_config.json
- Press
-
Add Configuration (Replace YOUR_USERNAME):
{ "mcpServers": { "tradingview-mcp-local": { "command": "C:\\Users\\YOUR_USERNAME\\tradingview-mcp\\.venv\\Scripts\\python.exe", "args": ["C:\\Users\\YOUR_USERNAME\\tradingview-mcp\\src\\tradingview_mcp\\server.py"], "cwd": "C:\\Users\\YOUR_USERNAME\\tradingview-mcp" } } } -
Get Your Actual Path:
pwd # Shows current directory - copy this path -
Restart Claude Desktop and Test!
If you want to modify the code or run it locally:
# Clone the repository
git clone https://github.com/atilaahmettaner/tradingview-mcp.git
cd tradingview-mcp
# Install dependencies
uv sync
# Test the server
uv run python src/tradingview_mcp/server.pyWindows (Recommended - Direct Python Path):
{
"mcpServers": {
"tradingview-mcp-local": {
"command": "C:\\Users\\YourUsername\\tradingview-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\Users\\YourUsername\\tradingview-mcp\\src\\tradingview_mcp\\server.py"],
"cwd": "C:\\Users\\YourUsername\\tradingview-mcp"
}
}
}macOS/Linux (Using UV):
{
"mcpServers": {
"tradingview-mcp-local": {
"command": "uv",
"args": ["run", "python", "src/tradingview_mcp/server.py"],
"cwd": "/path/to/your/tradingview-mcp"
}
}
}Note for Windows Users: Replace YourUsername with your actual Windows username and adjust the path accordingly. The direct Python path approach is more reliable on Windows.
If you prefer traditional Python environments:
Windows:
# Clone repository
git clone https://github.com/atilaahmettaner/tradingview-mcp.git
cd tradingview-mcp
# Create virtual environment
python -m venv .venv
.\.venv\Scripts\activate
# Install dependencies
pip install -e .
# Run server
python src/tradingview_mcp/server.pymacOS/Linux:
# Clone repository
git clone https://github.com/atilaahmettaner/tradingview-mcp.git
cd tradingview-mcp
# Create virtual environment
python -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -e .
# Run server
python src/tradingview_mcp/server.pyClaude Desktop Configuration:
{
"mcpServers": {
"tradingview-mcp-venv": {
"command": "C:\\Users\\YourUsername\\tradingview-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\Users\\YourUsername\\tradingview-mcp\\src\\tradingview_mcp\\server.py"],
"cwd": "C:\\Users\\YourUsername\\tradingview-mcp"
}
}
}Ask Claude these questions to verify everything works:
-
Market Screening:
"Show me top 5 crypto gainers on KuCoin in 15 minutes" -
Technical Analysis:
"Analyze Bitcoin with all technical indicators" -
Pattern Detection:
"Find coins with Bollinger Band squeeze (BBW < 0.05)"
You should get detailed responses with:
- ✅ Real-time price data
- ✅ Technical indicator values
- ✅ Bollinger Band ratings
- ✅ Market analysis insights
Solution: UV is not installed or not in PATH
Windows:
# Re-run UV installation
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# Check if uv is in PATH
uv --version
# If not found, add to PATH manually:
# 1. Open System Properties → Environment Variables
# 2. Add C:\Users\YourUsername\.local\bin to PATH
# 3. Restart PowerShell/Command PromptmacOS/Linux:
# Re-run UV installation
curl -LsSf https://astral.sh/uv/install.sh | sh
# Add to PATH (if needed)
export PATH="$HOME/.cargo/bin:$PATH"Solution: Configuration or restart issue
- Check JSON syntax in config file
- Ensure proper file path
- Restart Claude Desktop completely
- Wait 30-60 seconds for initialization
Solution: API or exchange issue
- Try different exchanges (KuCoin usually works best)
- Use standard symbols (e.g., "BTCUSDT", "ETHUSDT")
- Check timeframe format ("15m", "1h", "1D")
Solution: Normal behavior for first requests
- First request may take 10-30 seconds (warming up)
- Subsequent requests are much faster
- Consider smaller limits (5-10 items vs 50)
Solution: Directory or file permissions
Windows:
# Run PowerShell as Administrator and check permissions
# Ensure your user has full control over the project directory
icacls "C:\Users\YourUsername\tradingview-mcp" /grant "%USERNAME%":(F) /T
# If using Windows Defender, add exclusion for the project foldermacOS/Linux:
# Fix permissions
chmod +x ~/.local/bin/uv
chmod -R 755 ~/path/to/tradingview-mcp- Use KuCoin exchange - Most reliable data source
- Start with standard timeframes - 15m, 1h, 1D work best
- Limit results - Use 5-10 items for faster responses
- Cache requests - Avoid rapid repeated requests
- 🥇 KuCoin - Fastest, most reliable
- 🥈 BIST - Turkish stocks, very stable
- 🥉 Binance - Good but may have rate limits
{
"mcpServers": {
"tradingview-mcp": {
"command": "uv",
"args": [
"tool",
"run",
"--from",
"git+https://github.com/atilaahmettaner/tradingview-mcp.git",
"tradingview-mcp"
],
"env": {
"TIMEOUT": "30"
}
}
}
}{
"mcpServers": {
"tradingview-mcp-dev": {
"command": "uv",
"args": ["run", "mcp", "dev", "src/tradingview_mcp/server.py"],
"cwd": "/path/to/tradingview-mcp"
}
}
}- Check the logs: Claude Desktop → Settings → Developer → View Logs
- GitHub Issues: Report bugs here
- Documentation: Main README
- Test locally: Use
uv run python src/tradingview_mcp/server.pyto debug
Happy Trading! 📈