
moondevonyt/trading-view-mcp-for-ai-by-moon-dev
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
거래보기 MCP for AI 그래서 당신은 AI로 거래보기 차트에 아무것도 구축 할 수
개요
Claude 거래 아이디어를 말하십시오. TradingView 차트에 표시됩니다. 이것은 Chrome에서 실제 로그 인 TradingView 차트를 구동하는 것입니다. Claude는 Pine Script, 컴파일 체크를 작성하여 Pine Editor로 붙여넣고 차트에 추가하고 결과를 다시 읽습니다. 아이디어에서 차트에 3 초 미만. 있습니다. TradingView의 자체 AI 제품 (AI Chart Copilot)은 하루 15 요청에서 닫힌 크롬 확장이며 소나무를 실행할 수 없습니다. GitHub의 다른 TradingView MCP는 TradingView의 개인 HTTP API를 통해 시장 데이터를 읽습니다. 아무도는 차트에 사용자 정의 스크립트를 넣을 수 있습니다. 실제 페이지를 구동하기 때문에이 일 수 있습니다. - 실제 차트를 만지고 있는 모든 것. - 유효성 검사 이 스크립트는 브라우저 전에 컴파일하는 것으로 입증되었으므로 브라우저는 당신이 그것을 디버그하지 않는 아이디어에서 볼 수있는 곳입니다. Chrome 인스턴스는 매일 Chrome과 분리되어 있습니다.
개요(AI 번역)
Claude 거래 아이디어를 말하십시오. TradingView 차트에 표시됩니다.
이것은Model Context Protocol server 이며, 실제, 로그인 TradingView를 구동한다. Chrome의 차트. Claude는 Pine Script, 컴파일 체크를 작성하여 붙여넣기 Pine Editor는 차트에 추가하고 결과를 다시 읽습니다. 3 초 미만 차트에 대한 아이디어.
** 공식 TradingView MCP **이 없습니다. TradingView의 자체 AI 제품 (AI 차트 Copilot)는 닫히는 크롬 연장은 하루에 15개의 요구에 넣고 달릴 수 없습니다 당신의 소나무. GitHub의 다른 TradingView MCP는 TradingView의 시장 데이터를 읽습니다. 개인 HTTP API. 아무도는 차트에 사용자 정의 스크립트를 넣을 수 있습니다. 이 것, 실제 페이지를 구동하기 때문에.
Moon Dev에 의해 생성됨
어떻게 작동합니까?
2개의 수로, 목적에:
- Chrome DevTools Protocol는 실제 차트를 터치해야 합니다.
- ** TradingView의 자신의 소나무 컴파일러**에 직접 HTTPS 호출. 으로 스크립트를 컴파일하는 것으로 입증된다 before 브라우저는 이제 그것을 볼 수, 그래서 브라우저는 당신이 그것을 디버그하지 않는 아이디어에서 볼 수있는 곳입니다.
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"
}
}
}