
ertugrul59/tradingview-chart-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
ertugrul59/tradingview-chart-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요
ertugrul59/tradingview-chart-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
** 🚀 이제 브라우저 풀링 최적화로 70-80% 더 나은 동시 성능을 제공합니다!**
이 MCP 서버는 티커와 구간을 기반으로 TradingView 차트 이미지를 가져오는 도구를 제공하며, 최대의 동시 성능을 위해 고급 브라우저 풀링을 지원합니다.
🔥 성능 최적화
브라우저 풀링 기술
- 프로덕션 버전: 최대 동시 성능을 위해 브라우저 풀링과 함께
main_optimized.py - 성능 향상: 동시 요청 시 70-80% 더 빨라짐
- 동시 처리: 미리 초기화된 브라우저 인스턴스와 최대 4개의 동시 요청을 지원합니다
- 기대 성과:
- 1 요청: ~6-8초 (기준선)
- 동시 2개: 각각 ~3-4시간 (60-70% 빠름)
- 3개 동시 시간: 각각 ~2.5-3.5초 (70-80% 빠름)
버전 비교
main_optimized.py(프로덕션): 브라우저 풀링, 동시 최적화, 성능 추적main.py(레거시): 디버깅/백업용으로 유지된 단순한 단일 브라우저 방식
특징
- ** 🚀 최적화된 차트 이미지 도구: ** 브라우저 풀링을 통해 최대 동시 성능을 위해 직접 차트 이미지를 가져오는 것
- ** 📊 성능 통계:** 내장 성능 모니터링 및 통계
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP Server - TradingView Chart Image Scraper
🚀 Now with Browser Pooling Optimization for 70-80% Better Concurrent Performance!
This MCP server provides tools to fetch TradingView chart images based on ticker and interval with advanced browser pooling for maximum concurrent performance.
🔥 Performance Optimizations
Browser Pooling Technology
- Production Version: Uses
main_optimized.pywith browser pooling for maximum concurrent performance - Performance Improvement: 70-80% faster for concurrent requests
- Concurrent Handling: Supports up to 4 simultaneous requests with pre-initialized browser instances
- Expected Performance:
- 1 request: ~6-8s (baseline)
- 2 concurrent: ~3-4s each (60-70% faster)
- 3 concurrent: ~2.5-3.5s each (70-80% faster)
Version Comparison
main_optimized.py(Production): Browser pooling, concurrent optimization, performance trackingmain.py(Legacy): Simple single-browser approach, kept for debugging/fallback
Features
- 🚀 Optimized Chart Image Tool: Fetches direct chart images with browser pooling for maximum concurrent performance
- 📊 Performance Statistics: Built-in performance monitoring and statistics
- 🔄 Browser Pool Management: Pre-initialized browser instances for zero-overhead concurrent requests
- 🎯 Natural Language Prompts: Easy chart requests with interval mapping
- ⚙️ Environment Configuration: Fully configurable via environment variables
- 🔐 TradingView Authentication: Secure session-based authentication
- 💾 Clipboard Capture: Direct base64 image capture for faster performance
Tools
get_tradingview_chart_image
Description: Fetches the direct image URL for a TradingView chart snapshot with optimized concurrent performance.
Performance: This optimized version achieves 70-80% better performance for concurrent requests using browser pooling technology.
Arguments:
ticker(str): The TradingView ticker symbol (e.g., “BYBIT:BTCUSDT.P”, “NASDAQ:AAPL”). Required.interval(str): The chart time interval (e.g., ‘1’, ‘5’, ‘15’, ‘60’, ‘240’, ‘D’, ‘W’). Required.
Returns:
- (str): The direct TradingView snapshot image URL (e.g.,
data:image/png;base64,...orhttps://s3.tradingview.com/snapshots/...).
Raises:
Error(MCP type): If the scraper encounters an error. Error codes:400: Input error (invalid ticker/interval format)503: Scraper error (failure during the scraping process)500: Unexpected internal server error
get_performance_stats
설치
npx -y @smithery/cli install @ertugrul59/tradingview-chart-mcp --client claude설정
{
"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 ...
}
}