tradingview-mcp-review
tradingview-mcp-review
tradesdontlie/tradingview-mcp のレビュー専用派生版:Chrome DevTools Protocol 経由で 127.0.0.1:9222 上のライブ TradingView Desktop チャートに対してトレード記録をレビューするための9つのMCPツール
これは汎用ブリッジではありません。元のプロジェクトでは、Pine Script編集、アラート、ウォッチリスト、リプレイ取引、UI自動化、任意のJS評価、プロセス制御、自己更新を含む84のツールを公開しています。このビルドではそれらすべてをコードレベルで削除し、トレード記録のレビューに必要なものだけを残しています:取引が発生したチャートへの移動、価格コンテキストの読み取り、エントリー/エグジットレベルのマーキング、スクリーンショットの撮影。
TradingView Inc. または Anthropic, PBC との提携、承認、関連は一切ありません。TradingView とのプログラムによる連携は TradingView の利用規約 に抵触する可能性があります — お客様ご自身の責任においてコンプライアンスを確保してください。上流プロジェクトの免責事項がそのまま適用されます。
セキュリティ境界(設計による)
ローカルホストのみ。 CDPエンドポイントは
127.0.0.1:9222に固定 — 環境変数や設定による上書きは不可。高権限プリミティブなし。 自己更新、プロセスの起動/強制終了、任意のJS評価、Pineエディター、アラート/ウォッチリスト/リプレイ/注文機能はなし。登録解除だけでなく、ソースレベルで削除(ファイル削除)。
任意入力なし。 呼び出し元が制御できるファイルパスなし(スクリーンショットはプログラム生成名で
generated/screenshots/に保存)、タイムフレームは列挙型、シンボルは長さ制限あり。レイアウト変更は永続化の可能性あり。 シンボル/タイムフレームの変更は保存済みのTradingViewレイアウトを汚染する可能性があります(レイアウトの自動保存が有効な場合は永続化)。専用のスクラッチレイアウトで作業してください。
ローカルのみのヘルスチェック。 上流のGitHubアップデートチェックは削除済み。サーバーはローカルデバッグポート以外へのネットワークリクエストを行いません。
CIで強制。
tests/tool_surface.test.jsはツールリストが正確に7つの許可リストと一致すること、および上流の名前付き機能が存在しないことをアサートするため、上流のマージによってそれらが静かに再導入されることはありません。
Related MCP server: TradingView MCP Jackson
7つのツール
ツール | レビューにおける目的 |
| ローカルCDP接続と現在のチャートを確認 |
| シンボル / タイムフレーム / インジケーターを読み取り |
| 取引の銘柄に切り替え |
| 取引の解像度(列挙型)に切り替え |
| 取引の時間ウィンドウにジャンプ/ズーム(過去履歴のページ送り) |
| 価格コンテキスト。特定のウィンドウには |
|
|
チャートアノテーション(draw_shape / draw_clear)はこのリリースには含まれていません。アノテーションを安全に削除するには、このセッションでどの描画を作成したかを証明する必要があります。TradingViewのレイアウト切り替えをまたぐと、その所有権を確実に証明できず、所有権を証明できないクリアはユーザー自身の描画を削除してしまいます。この機能は注意喚起付きではなく、証明可能な契約と共に戻されます。
意図するアーキテクチャ:トレード記録を真実の源泉とする → 分析はローカルで実行 → TradingViewデバッグインスタンスは視覚的コンテキストのみを提供。
セットアップ
必要条件:TradingView Desktop(サブスクリプションが必要)、Node.js 18以上。
git clone https://github.com/F-e-u-e-r/tradingview-mcp-review.git
cd tradingview-mcp-review
npm ci --ignore-scriptsデバッグポートを有効にしてTradingView Desktopを自分で起動してください(サーバーは意図的にそれを実行できません):
./scripts/launch_tv_debug_mac.sh # macOS
# or manually, any platform:
/path/to/TradingView --remote-debugging-port=9222デバッグポートはレビューセッションの間のみ有効にしてください — 有効にしている間は、ローカルのすべてのプロセスがそのTradingViewインスタンスを制御できます。完了したら通常通り閉じて再起動してください。リモートデバッグ機能付きのChromeタブではなく、TradingView Desktop を使用してください(Chromeタブではブラウザプロファイル全体が露出します)。
MCPクライアント設定(例:プロジェクトの .mcp.json)に追加:
{
"mcpServers": {
"tradingview-review": {
"command": "node",
"args": ["/path/to/tradingview-mcp-review/src/server.js"]
}
}
}ゲート
npm run lint # eslint no-undef guard (catches unfinished refactors)
npm test # tool-surface allowlist/denylist gate + sanitization + unit tests (all offline)出自
セキュリティ監査済みのコミットで上流ツリーからフォーク。以降のすべての変更は UPSTREAM.md に列挙されており、上流の更新を取り込むための再監査手順も定義されています。ライセンス:MIT(LICENSE を参照、著作権は上流の作者に帰属)。
Available Tools
7 toolscapture_screenshotA
Take a screenshot of the TradingView chart. Saves to the fixed generated/screenshots/ directory with a program-generated name and returns the path. No path or name input is accepted.
Inputs: region, wait_for_render.
chart_get_stateA
Get current chart state (symbol, timeframe, chart type, indicators)
Inputs: no named parameters.
chart_set_symbolC
Change the chart symbol
Inputs: symbol (required).
chart_set_timeframeC
Change the chart timeframe/resolution
Inputs: timeframe (required).
chart_set_visible_rangeA
Zoom the chart to a specific date range (unix timestamps in seconds). Pages in older history as needed, so this also serves as jump-to-date for reviewing a past trade: pass a window around the trade time.
Inputs: to (required), from (required).
data_get_ohlcvA
Get OHLCV bar data from the chart. TWO MODES: pass from+to (unix seconds) to get bars from THAT window — required when reviewing a past trade, because without it you get the newest bars regardless of where the chart is navigated. Omit both for the newest count bars. A window with no loaded bars is refused rather than answered with the latest data; call chart_set_visible_range for that window first. Defaults to summary=true (compact stats + last 5 bars).
Inputs: to, from, count, summary.
tv_health_checkA
Check the local CDP connection (127.0.0.1:9222) to TradingView Desktop and return current chart state. Local-only: performs no external network requests.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct action: health check, state retrieval, setting symbol/timeframe/visible range, getting OHLCV data, and screenshots. No functional overlap.
Naming mixes prefixes: 'tv_' for health check, 'chart_' for state and settings, 'data_' for OHLCV, and no prefix for screenshot. While still readable, the pattern is inconsistent.
Seven tools are well-scoped for chart review and navigation, fitting the recommended 3-15 range. Each tool serves a clear purpose without redundancy.
Core trade review workflows are covered (navigate to date, get historical OHLCV, capture screenshot). A minor gap is the absence of a tool to change chart type (e.g., candlestick to line), which could be useful but is not critical.
Maintenance
Related MCP Connectors
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
MCP server with quote and live cryptocurrency price tools, local and cloud-deployed transports.
Hosted MCP server for MT4 and MT5: read accounts, prices and candles, and place or close orders.
Read-only MCP server for Sidechair. Your assistant reads your lessons, price bars and watchlist.
Related MCP Servers
- AlicenseAqualityDmaintenanceA type-safe MCP server that enables AI agents to control TradingView Desktop via Chrome DevTools Protocol, allowing chart state reading, symbol/timeframe changes, and OHLCV data fetching.111MIT
- FlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that connects to TradingView Desktop via Chrome DevTools Protocol, enabling chart control, Pine Script development, and a morning brief workflow with AI-driven analysis.-
- FlicenseBqualityDmaintenanceA TradingView-style market research and charting MCP server that provides tools for market data, indicators, watchlists, and local HTML chart rendering without scraping TradingView.9-
- AlicenseNot gradedqualityAmaintenanceA local MCP server that connects TradingView Desktop to AI assistants via Chrome DevTools Protocol, enabling Pine Script development, multi-timeframe analysis, and Wyckoff scanning with a rules engine.44 npm1MIT