Tradingview Chart MCP
MCP 서버 - TradingView 차트 이미지 스크래퍼
이 MCP 서버는 티커와 간격에 따라 TradingView 차트 이미지를 가져오는 도구를 제공합니다.
설정
가상 환경 만들기:
지엑스피1
가상 환경 활성화:
macOS/리눅스:
source .venv/bin/activateWindows(Git Bash/WSL):
source .venv/Scripts/activateWindows(명령 프롬프트):
.venv\\Scripts\\activate.bat윈도우(PowerShell):
.venv\\Scripts\\Activate.ps1(참고: PowerShell 실행 정책을 조정해야 할 수도 있습니다:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser)
이제 터미널 프롬프트에
(.venv)에 있다는 메시지가 표시됩니다.종속성 설치(venv 내부):
pip install -r requirements.txt환경 구성(로컬 테스트용):
.env.example``.env로 복사합니다..env파일에TRADINGVIEW_SESSION_ID와TRADINGVIEW_SESSION_ID_SIGN입력하세요. TradingView에 로그인한 후 브라우저 쿠키에서 이 정보를 확인할 수 있습니다.이
.env파일은 로컬 테스트를 위해 서버를 직접 실행할 때 사용됩니다(예:python main.py).로컬 실행에 필요한 경우
.env에서 선택적 스크래퍼 설정(MCP_SCRAPER_HEADLESS등)을 조정합니다.
ChromeDriver 확인:
chromedriver설치되어 시스템 PATH에 접근 가능한지 확인하거나, 경로를 지정할 수 있는 경우tview-scraper.py적절히 구성하세요.
Related MCP server: tradingview-chart-mcp
서버 실행
가상 환경이 활성화되어 있는지 확인하세요( source .venv/bin/activate 또는 이와 동등한 파일).
python main.py가상 환경 비활성화
작업이 끝나면 환경을 비활성화할 수 있습니다.
deactivate용법
서버가 실행되면(활성화된 venv 내에서) MCP 클라이언트를 사용하여 TradingView Chart Image 서버 이름을 대상으로 서버와 상호 작용할 수 있습니다.
사용 가능한 도구:
get_tradingview_chart_image(ticker: str, interval: str): TradingView 차트의 직접 이미지 URL을 가져옵니다.
예시 프롬프트:
"NASDAQ:AAPL 15분 차트를 확인하세요"
"BYBIT:BTCUSDT.P의 일간 차트를 보여주세요"
"60 시간대의 COINBASE:ETHUSD에 대한 TradingView 차트 이미지를 가져옵니다"
🔌 MCP 클라이언트(Claude Desktop/Cursor)와 함께 사용
이 서버는 구성을 제공하는 두 가지 방법을 지원합니다.
.env파일을 통해(로컬 테스트용):python main.py직접 실행하는 경우, 서버는 프로젝트 디렉토리의.env파일에서 자격 증명과 설정을 로드합니다.클라이언트 환경 변수 사용(통합 권장): MCP 클라이언트(예: Claude/Cursor)에서 실행하는 경우, 필요한 환경 변수를 직접 주입하도록 클라이언트를 구성해야 합니다. 이렇게 하면
.env파일에 있는 모든 값이 재정의됩니다.
클로드 데스크탑
Claude Desktop 구성 파일을 엽니다.
윈도우:
%APPDATA%\\Claude\\claude_desktop_config.jsonmacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
mcpServers객체에 다음을 추가하거나 병합하세요.env블록에 사용자 인증 정보를 입력하세요.{ "mcpServers": { "tradingview-chart-mcp": { "command": "/absolute/path/to/your/tradingview-chart-mcp/.venv/bin/python3", "args": ["/absolute/path/to/your/tradingview-chart-mcp/main.py"], "env": { "TRADINGVIEW_SESSION_ID": "YOUR_SESSION_ID_HERE", "TRADINGVIEW_SESSION_ID_SIGN": "YOUR_SESSION_ID_SIGN_HERE" // Optional: Add MCP_SCRAPER_* variables here too if needed // "MCP_SCRAPER_HEADLESS": "False" } } // ... other servers if any ... } }플레이스홀더 경로(
command,args)를 실제 절대 경로로 바꾸세요.YOUR_SESSION_ID_HERE와YOUR_SESSION_ID_SIGN_HERE실제 TradingView 자격 증명으로 바꾸세요.Claude Desktop을 다시 시작합니다.
커서
이동:
Settings -> Cursor Settings -> MCP -> Edit User MCP Config (~/.cursor/mcp.json).mcpServers객체에 다음을 추가하거나 병합하세요.env블록에 사용자 인증 정보를 입력하세요.{ "mcpServers": { "tradingview-chart-mcp": { "command": "/absolute/path/to/your/tradingview-chart-mcp/.venv/bin/python3", "args": ["/absolute/path/to/your/tradingview-chart-mcp/main.py"], "env": { "TRADINGVIEW_SESSION_ID": "YOUR_SESSION_ID_HERE", "TRADINGVIEW_SESSION_ID_SIGN": "YOUR_SESSION_ID_SIGN_HERE" // Optional: Add MCP_SCRAPER_* variables here too if needed // "MCP_SCRAPER_HEADLESS": "False" } } // ... other servers if any ... } }플레이스홀더 경로(
command,args)를 실제 절대 경로로 바꾸세요.YOUR_SESSION_ID_HERE와YOUR_SESSION_ID_SIGN_HERE실제 TradingView 자격 증명으로 바꾸세요.커서를 다시 시작합니다.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A remote MCP server to convert HTML documents (URL or raw source) to PDF or screenshots
MCP server for Mint — AI-powered QA that runs your app in a real browser on every PR.
MCP server for OpenMM — exposes market data, account, trading, and strategy tools to AI agents
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables users to fetch TradingView chart images for specified tickers and intervals through MCP tools, returning snapshot URLs or base64 image data. It supports browser pooling for concurrent performance, configurable intervals, TradingView authentication, and performance statistics.-
- FlicenseNot gradedqualityAmaintenanceEnables fetching TradingView chart images for any ticker and interval using Selenium, with browser pooling for concurrent performance.-
- FlicenseNot gradedqualityAmaintenanceThis MCP server enables users to retrieve TradingView chart images for any ticker and interval via Selenium, with browser pooling for faster concurrent image fetching and optional session-based authentication.-
- FlicenseNot gradedqualityAmaintenanceEnables users to fetch chart snapshots for any ticker and timeframe through Selenium, with browser pooling to support efficient concurrent requests. It provides performance statistics and configurable authentication for use with MCP clients.-