Content
# TradingView Claude Doug Version Connection
Doug's custom MCP server for controlling TradingView Desktop via Chrome DevTools Protocol (CDP).
## Features
- **70+ MCP tools** for full TradingView automation
- Chart control (symbol, timeframe, chart type, visible range)
- OHLCV data, indicator values, strategy results
- Pine Script editing, compilation, and analysis
- Screenshots (full page, chart only, strategy tester)
- Drawing tools (shapes, lines, rectangles, text)
- Price alerts (create, list, delete)
- Bar replay (start, step, autoplay, trade)
- Batch operations across multiple symbols/timeframes
- Watchlist management
- UI automation (click, keyboard, scroll, mouse)
- Multi-pane layout control
- Tab management
- Real-time data streaming
- Morning brief workflow with rules engine
## Setup
### 1. Install dependencies
```bash
npm install
```
### 2. Launch TradingView Desktop with CDP enabled
```bash
# macOS
bash scripts/launch_mac.sh
# Linux
bash scripts/launch_linux.sh
# Windows
scripts\launch_windows.bat
```
### 3. Add to Claude Code MCP config
```json
{
"mcpServers": {
"tradingview-doug": {
"command": "node",
"args": ["/path/to/Tradingview-claude-doug-version-connection/src/index.js"]
}
}
}
```
### 4. Start using
The server connects to TradingView Desktop on `localhost:9222` and exposes all tools via MCP.
## Architecture
```
src/
index.js - MCP server entry point (stdio transport)
cdp.js - CDP connection manager
helpers.js - Shared utilities
engine/ - Core business logic (16 modules)
tools/ - MCP tool registrations (16 modules)
scripts/ - Platform-specific launchers
```
## Requirements
- Node.js 18+
- TradingView Desktop app
- Chrome DevTools Protocol enabled (port 9222)
## License
MIT