FinanceImported version
Install the TradingView MCP
/Users/fabien/Desktop/AI/PROMPTS/-finance/business/install the TradingView MCP.odt
Folder-finance/business
Versions0
Imported2026-11-11
StatusActive
## Install and Configure the TradingView MCP Server for a Crypto Trading Workflow
You are going to install the TradingView MCP server and configure it for a crypto trading workflow. Follow these steps in order. At each step, if something fails, report the error clearly and stop — do not continue past a failure.
### Step 1 — Install the MCP server
Clone to `~/tradingview-mcp`. Run `npm install` inside it. If the directory already exists, pull the latest changes instead of cloning.
### Step 2 — Add the MCP to my config
Edit `~/.claude/.mcp.json` to add the tradingview server. If the file already exists and has other MCP servers, merge the tradingview entry into the existing `mcpServers` object — do not overwrite other servers. The entry to add:
```json
{
"mcpServers": {
"tradingview": {
"command": "node",
"args": ["<HOME>/tradingview-mcp/src/server.js"]
}
}
}
```
Replace `<HOME>` with the actual absolute path to my home directory.
### Step 3 — Create my trading rules file
Create the file at `~/tradingview-mcp/rules.json` with this crypto swing-trading configuration:
```json
{
"watchlist": {
"majors": ["BINANCE:BTCUSDT", "BINANCE:ETHUSDT", "BINANCE:SOLUSDT"],
"alts": ["BINANCE:LINKUSDT", "BINANCE:AVAXUSDT", "BINANCE:SUIUSDT"],
"macro": ["CRYPTOCAP:TOTAL", "CRYPTOCAP:TOTAL3", "CRYPTOCAP:BTC.D"]
},
"timeframes_to_check": ["1W", "1D", "4H"],
"bias_criteria": {
"bullish": "Price above 50D EMA, RSI on daily between 45 and 70, higher highs and higher lows on 4H",
"bearish": "Price below 50D EMA, RSI on daily below 45, lower highs and lower lows on 4H",
"neutral": "Price chopping around 50D EMA, RSI between 40 and 60, no clear structure"
},
"risk_rules": {
"max_risk_per_trade": "1% of portfolio",
"min_rr_ratio": 2,
"no_trades_during": ["major US CPI", "FOMC", "weekend thin liquidity"]
},
"indicators_i_care_about": ["RSI (14)", "MACD (12, 26, 9)", "50 EMA", "200 EMA", "Volume"]
}
```
### Step 4 — Launch TradingView with the debug port
Use the `tv_launch` tool. If `tv_launch` isn't available yet, auto-detect the TradingView Desktop app on this machine and launch it with the `--remote-debugging-port=9222` flag.
- **Mac path:** `/Applications/TradingView.app/Contents/MacOS/TradingView`
- **Windows path:** `%LOCALAPPDATA%\TradingView\TradingView.exe`
- **Linux path:** `/opt/TradingView/tradingview`
### Step 5 — Verify the connection
Run `tv_health_check`. If it returns `cdp_connected: true`, the setup is working.
### Step 6 — Fetch the BTC price and report setup status
Once the health check passes, fetch the current price of BTCUSDT and report it to me. Then report back the full setup status:
- MCP installed and connected: yes/no
- Rules file created at: [path]
- TradingView connected on port 9222: yes/no
- Current BTC price: [number]
- Ready to use: yes/no
If all five items pass, the setup is complete.