Tradingview Chart MCP
Servidor MCP - Rastreador de imágenes de gráficos de TradingView
Este servidor MCP proporciona herramientas para obtener imágenes de gráficos de TradingView según el ticker y el intervalo.
Configuración
Crear entorno virtual:
# Navigate to the project directory cd tradingview-chart-mcp # Create the venv (use python3 if python is not linked) python3 -m venv .venvActivar entorno virtual:
macOS/Linux:
source .venv/bin/activateVentanas (Git Bash/WSL):
source .venv/Scripts/activateWindows (símbolo del sistema):
.venv\\Scripts\\activate.batVentanas (PowerShell):
.venv\\Scripts\\Activate.ps1(Nota: Es posible que necesite ajustar la política de ejecución de PowerShell:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser)
El indicador de terminal ahora debería indicar que se encuentra en
(.venv).Instalar dependencias (dentro de venv):
pip install -r requirements.txtConfigurar el entorno (para pruebas locales):
Copiar
.env.examplea.env.Introduce tu
TRADINGVIEW_SESSION_IDyTRADINGVIEW_SESSION_ID_SIGNen el archivo.env. Puedes obtenerlos de las cookies de tu navegador tras iniciar sesión en TradingView.Este archivo
.envse utiliza cuando se ejecuta el servidor directamente (por ejemplo,python main.py) para pruebas locales.Ajuste la configuración opcional del raspador (
MCP_SCRAPER_HEADLESS, etc.) en.envsi es necesario para ejecuciones locales.
Asegúrese de
chromedriveresté instalado y accesible en la RUTA de su sistema, o configuretview-scraper.pyen consecuencia si permite especificar una ruta.
Related MCP server: claude-tradingview-mcp
Ejecución del servidor
Asegúrese de que su entorno virtual esté activado ( source .venv/bin/activate o equivalente).
python main.pyDesactivación del entorno virtual
Cuando hayas terminado, puedes desactivar el entorno:
deactivateUso
Una vez que el servidor esté en ejecución (dentro del venv activado), puedes interactuar con él mediante un cliente MCP, apuntando al nombre del servidor TradingView Chart Image .
Herramientas disponibles:
get_tradingview_chart_image(ticker: str, interval: str): obtiene la URL de la imagen directa para un gráfico de TradingView.
Ejemplos de indicaciones:
Obtenga el gráfico de 15 minutos del NASDAQ:AAPL.
Muéstrame el gráfico diario de BYBIT:BTCUSDT.P
Obtener la imagen del gráfico de TradingView para COINBASE:ETHUSD en el marco temporal de 60 días.
🔌 Uso con clientes MCP (Claude Desktop / Cursor)
Este servidor admite dos formas de proporcionar configuración:
A través del archivo
.env(para pruebas locales): al ejecutarpython main.pydirectamente, el servidor cargará las credenciales y la configuración desde un archivo.enven el directorio del proyecto.Mediante variables de entorno del cliente (recomendado para la integración): Al ejecutarse con un cliente MCP (como Claude/Cursor), debe configurar el cliente para que inyecte directamente las variables de entorno necesarias. Estas sobrescribirán cualquier valor presente en un archivo
.env.
Escritorio de Claude
Abra el archivo de configuración de Claude Desktop:
Ventanas:
%APPDATA%\\Claude\\claude_desktop_config.jsonmacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
Agregue o combine lo siguiente dentro del objeto
mcpServers. Proporcione sus credenciales en el bloqueenv:{ "mcpServers": { "tradingview-chart-mcp": { "command": "/absolute/path/to/your/tradingview-chart-mcp/.venv/bin/python3", "args": ["/absolute/path/to/your/tradingview-chart-mcp/main.py"], "env": { "TRADINGVIEW_SESSION_ID": "YOUR_SESSION_ID_HERE", "TRADINGVIEW_SESSION_ID_SIGN": "YOUR_SESSION_ID_SIGN_HERE" // Optional: Add MCP_SCRAPER_* variables here too if needed // "MCP_SCRAPER_HEADLESS": "False" } } // ... other servers if any ... } }Reemplace las rutas de marcador de posición (
command,args) con sus rutas absolutas reales.Reemplace
YOUR_SESSION_ID_HEREyYOUR_SESSION_ID_SIGN_HEREcon sus credenciales reales de TradingView.Reinicie Claude Desktop.
Cursor
Vaya a:
Settings -> Cursor Settings -> MCP -> Edit User MCP Config (~/.cursor/mcp.json).Agregue o combine lo siguiente dentro del objeto
mcpServers. Proporcione sus credenciales en el bloqueenv:{ "mcpServers": { "tradingview-chart-mcp": { "command": "/absolute/path/to/your/tradingview-chart-mcp/.venv/bin/python3", "args": ["/absolute/path/to/your/tradingview-chart-mcp/main.py"], "env": { "TRADINGVIEW_SESSION_ID": "YOUR_SESSION_ID_HERE", "TRADINGVIEW_SESSION_ID_SIGN": "YOUR_SESSION_ID_SIGN_HERE" // Optional: Add MCP_SCRAPER_* variables here too if needed // "MCP_SCRAPER_HEADLESS": "False" } } // ... other servers if any ... } }Reemplace las rutas de marcador de posición (
command,args) con sus rutas absolutas reales.Reemplace
YOUR_SESSION_ID_HEREyYOUR_SESSION_ID_SIGN_HEREcon sus credenciales reales de TradingView.Reiniciar cursor.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceControls the TradingView Desktop app via MCP, allowing AI agents to manage charts, indicators, Pine Script strategies, and optionally mirrors signals to MetaTrader 5 for automated trading.MIT
- AlicenseAqualityCmaintenanceAn MCP server that lets Claude analyze your TradingView charts by reading the window and taking screenshots, with no write tools or trade execution.51MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that lets AI assistants interact with TradingView for real-time quotes, historical OHLCV data, screener, alerts, watchlists, news, chart layouts, Pine scripts, and more. Connect it to Claude Desktop, Cursor, or any MCP-compatible client to control TradingView via natural language.2815
- FlicenseNot gradedqualityCmaintenanceAn MCP server that extends TradingView with AI-driven morning briefs, trading rule automation, and 81 tools for chart control, Pine Script development, replay practice, and multi-pane layouts.281
Related MCP Connectors
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
Multi-tenant FastMCP server for Charles Schwab brokerage data, monetized via DPYC Tollbooth
Screenshot and HTML render MCP server for AI agents
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ertugrul59/tradingview-chart-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server