
moondevonyt/trading-view-mcp-for-ai-by-moon-dev
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
取引ビューMCP for AI は、AIで取引ビューチャートに何かを組み込むことができます
概要
取引のアイデアをClaudeに伝えてください。 取引チャートに表示されます。 これは、Chromeで実質的に記録された取引ビューチャートを駆動するものです。 Claude は、Pine Script を記述し、コンパイルチェックを行い、Pine Editor に貼り付け、チャートに追加し、結果を返します。 アイデアからチャートまで3秒以内。 あります。 TradingView独自のAI製品(AIチャートコピロット)は、15リクエストで埋め込まれたクロームエクステンションで、Pineを実行することはできません。 GitHub の他の TradingView MCP では、TradeView のプライベート HTTP API 上で市場データを読み込みます。 チャートにカスタムスクリプトを置くことはできません。 実際のページを駆動するので、この1つのことができます。 - 実際のチャートに触れなければならないこと。 - 検証のため。 これは、ブラウザがそれを見ている前にコンパイルするスクリプトが実証されているため、ブラウザはデバッグ場所ではなく、アイデアを見る場所です。 Chrome インスタンスは、毎日 Chrome から分離します.
概要(AI 翻訳)
取引のアイデアをClaudeに伝えてください。 取引チャートに表示されます。
これは、実際の、ログインした取引ビューを駆動する**モデルコンテキストプロトコルサーバーです。 クロムのグラフ。 Claude は、Pine Script を書き、コンパイル チェックを行い、それをペーストします。 パインエディタは、チャートに追加し、結果を返します。 3秒未満 チャートへのアイデア
公式 TradingView MCPはありません。 TradingView独自のAI製品(AIチャート) Copilot(コピロット)は、1日15リクエストで埋め込まれたクロームのクローズドエクステンションで、実行できません。 あなたのパイン。 GitHub の他の TradingView MCP では、TradeView の市場データを読み込みます。 プライベートHTTP API チャートにカスタムスクリプトを置くことはできません。 この1つはできます、 実際のページを駆動するため。
Moon Dev ∴ のビルド
お問い合わせ
使い方
2つのチャネル、目的:
- クローム DevTools プロトコル 実際のチャートに触れなければならないもの。
- ** 検証のために、TradeViewのPineコンパイラ**に直接HTTPS呼び出します。 お問い合わせ つまり、スクリプトはbeforeをブラウザが見たことがあるので、 ブラウザは、デバッグする場所ではなく、アイデアを見る場所です。
Chrome インスタンスは、日常の Chrome とは別の ** のプロファイル** です.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
🌙 TradingView MCP
Tell Claude a trading idea. Watch it appear on your TradingView chart.
This is a Model Context Protocol server that drives a real, logged-in TradingView chart in Chrome. Claude writes the Pine Script, compile-checks it, pastes it into the Pine Editor, adds it to the chart, and reads the result back. Under 3 seconds from idea to chart.
There is no official TradingView MCP. TradingView’s own AI product (AI Chart Copilot) is a closed Chrome extension capped at 15 requests a day and it cannot run your Pine. Every other TradingView MCP on GitHub reads market data over TradingView’s private HTTP API. None of them can put a custom script on a chart. This one can, because it drives the actual page.
Built by Moon Dev 🌙
How it works
Claude tradingview_mcp ──CDP──> Chrome tab on tradingview.com
│
└──HTTPS──> pine-facade.tradingview.com
(compile-check, no browser)
Two channels, on purpose:
- Chrome DevTools Protocol for anything that has to touch the real chart.
- A direct HTTPS call to TradingView’s own Pine compiler for validation. This means a script is proven to compile before the browser ever sees it, so the browser is where you look at an idea, not where you debug it.
The Chrome instance is a dedicated profile, separate from your everyday Chrome. Running your main browser with remote debugging open would let any local process read your logged-in sessions. This one only ever holds TradingView.
Quick start
You need Python 3.10+, Chrome, and a TradingView account (free tier is fine).
Step 1 — Install
cd tradingview_mcp
pip install -r requirements.txt
cp .env.example .env
You do not need to edit .env. The defaults work.
Step 2 — Log into TradingView, one time
⚠️ Close any other TradingView window or tab before this. TradingView allows one active session per account. A second one kicks the first with a “Session disconnected” popup.
python -m tradingview_mcp.chrome_launcher
A new Chrome window opens on TradingView. This is a dedicated profile, separate from your everyday Chrome, so your other logins are never exposed to the debug port.
👉 Log into TradingView in that window, then leave it open. The login persists, so you only do this once.
You should see:
🌙 Moon Dev: launching dedicated Chrome → profile at /Users/you/.tradingview_mcp_chrome
🌙 Moon Dev: Chrome CDP ready on port 9222
Step 3 — Put your first indicator on the chart
Leave that Chrome window open. Open a second terminal, cd into this folder
again, and run:
cd tradingview_mcp
python mount_pine.py examples/moon_dev_rainbow_ribbon_10_50.pine
🌙 Moon Dev — mounting moon_dev_rainbow_ribbon_10_50.pine (6247 bytes)
1. compile-check (no browser) 290 ms valid=True
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"tradingview": {
"command": "python",
"args": ["-m", "tradingview_mcp.server"],
"cwd": "/full/path/to/tradingview_mcp"
}
}
}