Integrations
Supports fetching chart images for Coinbase-listed cryptocurrency pairs using the TradingView interface.
Fetches TradingView chart images based on ticker symbols and time intervals, allowing users to retrieve visual market data for various financial instruments.
MCPサーバー - TradingViewチャート画像スクレーパー
この MCP サーバーは、ティッカーと間隔に基づいて TradingView チャート画像を取得するためのツールを提供します。
設定
- 仮想環境の作成:Copy
- 仮想環境をアクティブ化します:
- macOS/Linux:Copy
- Windows (Git Bash/WSL):Copy
- Windows (コマンドプロンプト):Copy
- Windows (PowerShell):(注: PowerShell 実行ポリシーを調整する必要がある場合があります:Copy
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
)
ターミナルプロンプトに
(.venv)
内にいることが示されるはずです。 - macOS/Linux:
- 依存関係をインストールします(venv内):Copy
- 環境を構成する (ローカルテスト用):
.env.example
を.env
にコピーします。.env
ファイルにTRADINGVIEW_SESSION_ID
とTRADINGVIEW_SESSION_ID_SIGN
を入力してください。これらは、TradingViewにログイン後、ブラウザのCookieから取得できます。- この
.env
ファイルは、ローカル テストのためにサーバーを直接実行するとき (例:python main.py
) に使用されます。 - ローカル実行に必要な場合は、
.env
内のオプションのスクレーパー設定 (MCP_SCRAPER_HEADLESS
など) を調整します。
- ChromeDriver を確認する:
chromedriver
がインストールされており、システムの PATH でアクセスできることを確認するか、パスの指定が許可されている場合はtview-scraper.py
を適切に構成します。
サーバーの実行
仮想環境がアクティブ化されていることを確認します ( source .venv/bin/activate
または同等のもの)。
仮想環境の無効化
完了したら、環境を非アクティブ化できます。
使用法
サーバーが実行される(アクティブ化された venv 内)と、 TradingView Chart Image
サーバー名をターゲットにして、MCP クライアントを使用してサーバーと対話できるようになります。
利用可能なツール:
get_tradingview_chart_image(ticker: str, interval: str)
: TradingView チャートの直接画像 URL を取得します。
プロンプトの例:
- 「NASDAQ:AAPLの15分チャートを取得する」
- 「BYBIT:BTCUSDT.Pの日足チャートを見せてください」
- 「60時間枠のCOINBASE:ETHUSDのTradingViewチャート画像を取得」
🔌 MCP クライアント (Claude Desktop / Cursor) での使用
このサーバーは、構成を提供する 2 つの方法をサポートしています。
.env
ファイル経由 (ローカル テスト用):python main.py
直接実行すると、サーバーはプロジェクト ディレクトリ内の.env
ファイルから資格情報と設定を読み込みます。- クライアント環境変数経由(統合に推奨): MCPクライアント(Claude/Cursorなど)で実行する場合は、必要な環境変数を直接挿入するようにクライアントを設定する必要があります。これらの環境変数は、
.env
ファイル内の値を上書きします。
クロードデスクトップ
- Claude Desktop 構成ファイルを開きます。
- Windows:
%APPDATA%\\Claude\\claude_desktop_config.json
- macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
- Windows:
mcpServers
オブジェクト内に以下のコードを追加またはマージします。envenv
に認証情報を入力してください。Copy- プレースホルダー パス (
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
オブジェクト内に以下のコードを追加またはマージします。envenv
に認証情報を入力してください。Copy- プレースホルダー パス (
command
、args
) を実際の絶対パスに置き換えます。 YOUR_SESSION_ID_HERE
とYOUR_SESSION_ID_SIGN_HERE
実際の TradingView の資格情報に置き換えます。- カーソルを再起動します。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
TradingviewチャートMCP
Related MCP Servers
- -securityFlicense-qualityThe MCP Trader Server conducts comprehensive technical analysis on stocks, offering insights into trends, momentum indicators, volatility metrics, and volume analysis to support stock trading decisions.Last updated -29Python
- AsecurityAlicenseAqualityAn MCP server that integrates the XTQuant quantitative trading platform with AI assistants, allowing AI to directly access and operate on trading data and functionality.Last updated -830PythonMIT License
- -securityAlicense-qualityAn MCP server that provides current and historical gold/precious metal prices (gold, silver, platinum, and palladium) via the GoldAPI.io service with support for multiple currencies.Last updated -PythonMIT License
- AsecurityFlicenseAqualityAn MCP server that analyzes stock trading volume to identify significant price levels (volume walls), supporting features like order book data fetching, trade analysis, and volume distribution tracking.Last updated -3512Python