# tradingview-mcp-assistant

tradingview-mcp-assistant — a skill that hooks Claude to your local TradingView desktop app over Chrome DevTools Protocol, so the agent can read charts, edit Pine Script and set alerts.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 262 installs · ★ 9 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/tradingview-mcp-assistant/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/tradingview-mcp-assistant

## What it does

The skill links a coding agent to the TradingView desktop app running on your own machine. Traffic goes over Chrome DevTools Protocol, so the agent sees the chart you already have open: it switches tickers and timeframes, pulls the current quote, reads indicator values, and inspects lines, labels, tables and boxes left by Pine scripts.

Pine Script work is the other half. Code lands in the editor, compiles, and errors come back with line numbers; saving pushes the script to TradingView's cloud. A four-pane layout can hold different symbols, alerts can be created and listed, and replay walks the history bar by bar. Each tool has a `tv` counterpart for shell scripts.

Setup takes some patience. TradingView must be started in debug mode on port 9222, and `.mcp.json` needs a node server entry; launch scripts for macOS, Windows and Linux come with the setup. A paid TradingView subscription and Node.js 18+ are required. With the debug port closed the agent finds no chart at all, so run `tv_health_check` before anything else.

## Requirements
- Works with: Chrome

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill tradingview-mcp-assistant -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/tradingview-mcp-assistant/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/tradingview-mcp-assistant/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill tradingview-mcp-assistant -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/tradingview-mcp-assistant/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill tradingview-mcp-assistant -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/tradingview-mcp-assistant/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/mcp-skills skills/tradingview-mcp-assistant
```

2. **Manually: put the files in place**
- File: `.github/skills/tradingview-mcp-assistant/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill tradingview-mcp-assistant -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/tradingview-mcp-assistant
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/tradingview-mcp-assistant/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill tradingview-mcp-assistant -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/tradingview-mcp-assistant/SKILL.md

## When to use it
- read indicator values off the open chart
- write and compile a Pine Script indicator
- arrange four symbols in a 2x2 layout
- mark support and resistance with horizontal lines
- create price alerts and list them afterwards

## Example prompts
- Run `tv_health_check` and tell me which symbol and timeframe are open.
- Read the indicator values from the chart and give me the current RSI.
- Write a Pine Script indicator with RSI plus lines at 70 and 30, compile it, and show me any errors.

## Similar
- [tradingview-quantitative](https://affpapa.org/en/nevibecode/skills/tradingview-quantitative.md) — skill · 1500 installs
- [tradingview-reader](https://affpapa.org/en/nevibecode/skills/tradingview-reader.md) — skill · 1200 installs
- [tradingview-mcp](https://affpapa.org/en/nevibecode/skills/tradingview-mcp.md) — skill · 275 installs
- [pine-optimizer](https://affpapa.org/en/nevibecode/skills/pine-optimizer.md) — skill · 481 installs
- [pine-publisher](https://affpapa.org/en/nevibecode/skills/pine-publisher.md) — skill · 282 installs
- [lightweight-charts-react-components](https://affpapa.org/en/nevibecode/skills/lightweight-charts-react-components.md) — skill · ★ 41430 repo stars

From the same set: [reason-machines/mcp-skills](https://affpapa.org/en/nevibecode/by/reason-machines/mcp-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
