
bidouilles/mcp-tradingview-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Model Context Protocol (MCP) 서버는 자동화된 거래 분석 및 전략 개발을 위한 TradingView의 기술 지표 및 시장 데이터에 대한 프로그래밍 액세스를 제공합니다.
개요
Tradingview scraper 라이브러리를 통해 TradingView 기술 지표 및 OHLCV 데이터를 노출하는 FastMCP v2 서버. mcp-tradingview 콘솔 항목 전원 Claude 데스크탑 또는 MCP-aware 클라이언트. 1. uv 및 Python 3.11+ 설치 2. 설정 스크립트를 실행: ./setup.sh - 의존성을 설치하고 가상 환경을 만듭니다 - 자동적으로 MCP 서버와 Claude 데스크톱을 구성 3. 새로운 구성을로드하는 Restart Claude Desktop 1. uv 및 Python 3.11+ 2. uv venv --python 3.11 && 근원 .venv/bin/activate 3. uv pip install -e를 설치하십시오. 4. Claude 데스크탑을 형성하십시오 (아래 참조하십시오) - Stdio (Claude default): uv run mcp-tradingview - SSE 서비스: uv run mcp-tradingview --transport sse --host 0.0.0.0 --port 8000 - HTTP 서비스: uv run mcp-tradingview --transport http --host 0.0.0.0 --port 8000 --path /mcp FASTMCP HOST, FASTMCP PORT 및 FASTMCP PATH 환경 변수는 현재 바인드 설정을 무시합니다.
개요(AI 번역)
FastMCP v2 서버는 tradingview_scraper] 라이브러리를 통해 TradingView 기술 지표 및 OHLCV 데이터를 노출합니다. mcp-tradingview 콘솔 엔트리 파워 클라드 데스크탑 또는 MCP-aware 클라이언트.
빠른 시작
자동화 설정 (추천)
- uv 및 Python 3.11+ 설치
- 설정 스크립트를 실행:
./setup.sh
- 의존성을 설치하고 가상 환경을 만듭니다.
- 자동적으로 MCP 서버로 Claude Desktop 구성
- 새로운 윤곽을 적재하는 Restart Claude 데스크탑
수동 설정
- uv 및 Python 3.11+ 설치
- [T3]]
- [T4]]
- Claude 데스크탑 구성 (아래 참조)
실행
- Stdio (Claude 기본):
uv run mcp-tradingview - SSE 서비스: [T6]
- HTTP 서비스:
uv run mcp-tradingview --transport http --host 0.0.0.0 --port 8000 --path /mcp
FASTMCP_HOST, FASTMCP_PORT], FASTMCP_PATH]] 환경 변수는 현재 바인드 설정을 무시합니다.
도구
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP TradingView Server
FastMCP v2 server that exposes TradingView technical indicators and OHLCV data through the tradingview_scraper library. The mcp-tradingview console entry powers Claude Desktop or any MCP-aware client.
Quick Start
Automated Setup (Recommended)
- Install uv and Python 3.11+
- Run the setup script:
./setup.sh- Installs dependencies and creates virtual environment
- Automatically configures Claude Desktop with the MCP server
- Restart Claude Desktop to load the new configuration
Manual Setup
- Install uv and Python 3.11+
uv venv --python 3.11 && source .venv/bin/activateuv pip install -e .- Configure Claude Desktop (see below)
Running
- Stdio (Claude default):
uv run mcp-tradingview - SSE service:
uv run mcp-tradingview --transport sse --host 0.0.0.0 --port 8000 - HTTP service:
uv run mcp-tradingview --transport http --host 0.0.0.0 --port 8000 --path /mcp
FASTMCP_HOST, FASTMCP_PORT, and FASTMCP_PATH environment variables override the bind settings when present.
Tools
get_indicators(symbol, exchange="BINANCE", timeframe="1h", all_indicators=True, export_result=False)– full TradingView indicator snapshot; returnssuccess,symbol,exchange,timeframe, and anindicatorsmapping.get_specific_indicators(symbol, indicators, exchange="BINANCE", timeframe="1h", export_result=False)– filters the full snapshot to requested keys (case-insensitive) and echoesrequested_indicators.get_historical_data(symbol, exchange="BINANCE", timeframe="1h", max_records=100, export_result=False)– streams OHLCV candles viaStreamer, returningrecords_collected,data, and optionalexport_file.
Resources & Exports
- Resource
indicators/{symbol}emits a formatted indicator report usingget_indicatorsdefaults. - When
export_result=True, JSON payloads are written toexport/; keep large archives out of version control.
Claude Desktop
Add the server to claude_desktop_config.json. Here are the recommended configurations:
Using Claude Code CLI (Easiest)
claude mcp add tradingview -- uvx --from /absolute/path/to/mcp-tradingview-server mcp-tradingview
Or with uv run:
claude mcp add tradingview -- uv run mcp-tradingview --cwd /absolute/path/to/mcp-tradingview-server
Manual Configuration
Stdio Transport (Recommended)
{
"mcpServers": {
"tradingview": {
"command": "uvx",
"args": ["--from", "/absolute/path/to/mcp-tradingview-server", "mcp-tradingview"]
}
}
}
Alternative with uv run:
{
"mcpServers": {
"tradingview": {
"command": "uv",
"args": ["run", "mcp-tradingview"],
"cwd": "/absolute/path/to/mcp-tradingview-server"
}
}
}
HTTP Transport
{
"mcpServers": {
"tradingview": {
"command": "uv",
설치
uvx --from /absolute/path/to/mcp-tradingview-server mcp-tradingview설정
{
"mcpServers": {
"tradingview": {
"command": "uvx",
"args": ["--from", "/absolute/path/to/mcp-tradingview-server", "mcp-tradingview"]
}
}
}