BACK TO CLAUDE SKILLS
◈
mcp_connect_tradingview
MCP IntegrationMCPTradingView
INSTALLATION
$python -c "exec(open('mcp_connect_tradingview.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Establishes a persistent MCP connection between a Claude agent and the TradingView Desktop application. The function wraps the MCPClient handshake, validates the connection status, and returns a client handle that downstream skills can reuse across a session without reconnecting.
Configurable timeout prevents indefinite blocking when TradingView is unresponsive. The returned client object is stateful — it maintains an open WebSocket channel and automatically restores it after a short disconnect, making it robust for long-running batch scan jobs.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryMCP Integration
ComplexityIntermediate
LanguagePython 3.10+
TagsMCP, TradingView
[ ASK CLAUDE ]
Ask AI about this skill before installing it.