Skip to main content
Glama
Cryptocurrency Market Data MCP Server

Cryptocurrency Market Data MCP Server

by Nayshins

暗号通貨市場データMCPサーバー

主要取引所との連携により、リアルタイムおよび過去の暗号通貨市場データを提供するモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、クロードのようなLLM(法務・法務・金融サービス)は、現在の価格を取得し、市場動向を分析し、詳細な取引情報にアクセスできるようになります。

MCP パイソン CCXT 鍛冶屋のバッジ

特徴

  • リアルタイム市場データ

    • 現在の暗号通貨の価格

    • ビッド/アスクスプレッドを含む市場概要

    • 取引量上位ペア

    • 複数の交換のサポート

  • 歴史的分析

    • OHLCV(ローソク足)データ

    • 価格変動統計

    • ボリューム履歴の追跡

    • カスタマイズ可能な時間枠

  • 交換サポート

    • バイナンス

    • コインベース

    • クラーケン

    • クーコイン

    • ハイパーリキッド

    • フォビ

    • ビットフィネックス

    • バイビット

    • OKX

    • メキシコシティ

Related MCP server: Crypto MCP Server

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Cryptocurrency Market Data Server を自動的にインストールするには:

npx -y @smithery/cli install mcp-server-ccxt --client claude

手動でインストールする

# Using uv (recommended)
uv pip install mcp ccxt

# Using pip
pip install mcp ccxt

使用法

サーバーの実行

python crypto_server.py

Claude Desktopとの接続

  1. Claude Desktop の構成を次の場所で開きます:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

  2. サーバー構成を追加します。

{
    "mcpServers": {
        "crypto": {
            "command": "python",
            "args": ["/path/to/crypto_server.py"]
        }
    }
}
  1. Claudeデスクトップを再起動します

利用可能なツール

  1. 価格を取得

    • あらゆる取引ペアの現在の価格を取得する

    • 例: 「Binance での BTC/USDT の現在の価格はいくらですか?」

  2. 市場概要を取得する

    • 詳細な市場情報を取得する

    • 例:「ETH/USDTの市場概要を表示してください」

  3. トップボリュームを獲得する

    • 取引量上位ペアを一覧表示する

    • 例: 「Kraken の取引ペアのトップ 5 は何ですか?」

  4. リスト交換

    • サポートされているすべての取引所を表示

    • 例: 「どの取引所がサポートされていますか?」

  5. 歴史的なOHLCVを取得する

    • 過去のローソク足データを取得する

    • 例:「過去7日間のBTC/USDTの価格データを1時間間隔で表示してください」

  6. 価格変更を取得

    • 異なる期間における価格変動を計算する

    • 例: 「SOL/USDT の 24 時間の価格変動はいくらですか?」

  7. ボリューム履歴の取得

    • 取引量の推移を追跡する

    • 例:「過去1週間のETH/USDTの取引量履歴を表示してください」

クエリの例

サーバーが接続されたら、Claude に尋ねることができる質問の例をいくつか示します。

- What's the current Bitcoin price on Binance?
- Show me the top 5 trading pairs by volume on Coinbase
- How has ETH/USDT performed over the last 24 hours?
- Give me a detailed market summary for SOL/USDT on Kraken
- What's the trading volume history for BNB/USDT over the last week?

技術的な詳細

依存関係

  • mcp : モデルコンテキストプロトコル SDK

  • ccxt : 暗号通貨取引所取引ライブラリ

  • Python 3.9以上

建築

サーバーは以下を使用します:

  • CCXTの非同期サポートによる効率的な交換通信

  • MCPのLLM統合ツールシステム

  • 一貫した出力のための標準化されたデータフォーマット

  • 最適なパフォーマンスのための接続プール

エラー処理

サーバーは、以下に対する堅牢なエラー処理を実装しています。

  • 無効な取引ペア

  • Exchangeの接続の問題

  • レート制限

  • 不正なリクエスト

  • ネットワークタイムアウト

発達

テストの実行

# To be implemented
pytest tests/

貢献

  1. リポジトリをフォークする

  2. 機能ブランチを作成する

  3. 変更を加える

  4. プルリクエストを送信する

地域開発

# Clone the repository
git clone [repository-url]
cd crypto-mcp-server

# Install dependencies
uv pip install -e .

トラブルシューティング

よくある問題

  1. Exchange接続エラー

    • インターネット接続を確認してください

    • 取引所が稼働していることを確認する

    • 選択した取引所に取引ペアが存在することを確認する

  2. レート制限

    • リクエスト間の遅延を実装する

    • 高頻度クエリには異なるエクスチェンジを使用する

    • 取引所固有のレート制限を確認する

  3. データフォーマットの問題

    • 取引ペアの形式を確認してください(例:BTC/USDT、BTCUSDTではありません)

    • 時間枠の仕様を確認する

    • 数値パラメータが有効な範囲内であることを確認する

ライセンス

MITライセンス - 詳細はLICENSEファイルを参照

謝辞

Available Tools

7 tools
get-historical-ohlcvB

Get historical OHLCV (candlestick) data for a trading pair

Inputs: symbol (required), timeframe, days_back, exchange.

get-market-summaryC

Get detailed market summary for a cryptocurrency pair from a specific exchange

Inputs: symbol (required), exchange.

get-priceB

Get current price of a cryptocurrency pair from a specific exchange

Inputs: symbol (required), exchange.

get-price-changeC

Get price change statistics over different time periods

Inputs: symbol (required), exchange.

get-top-volumesB

Get top cryptocurrencies by trading volume from a specific exchange

Inputs: limit, exchange.

get-volume-historyC

Get trading volume history over time

Inputs: symbol (required), days, exchange.

list-exchangesB

List all supported cryptocurrency exchanges

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity: get-historical-ohlcv for candlestick data, get-market-summary for detailed pair info, get-price for current price, get-price-change for statistics, get-top-volumes for volume rankings, get-volume-history for volume trends, and list-exchanges for exchange listing. The descriptions precisely differentiate their functions, making misselection unlikely.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using kebab-case (e.g., get-historical-ohlcv, list-exchanges). The naming is predictable and readable throughout, with 'get-' or 'list-' prefixes clearly indicating the action, ensuring a uniform and professional appearance.

    Tool Count5/5

    With 7 tools, the server is well-scoped for cryptocurrency market data, covering key areas like pricing, volume, exchanges, and historical data. Each tool earns its place by addressing specific market analysis needs, avoiding bloat while providing comprehensive coverage for the domain.

    Completeness4/5

    The tool set offers strong coverage for cryptocurrency market data, including price, volume, historical data, and exchange info. Minor gaps exist, such as no tools for order book depth, trade history, or market sentiment, but agents can work around these with the provided tools for core market analysis tasks.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that exposes Binance cryptocurrency exchange data to LLMs, allowing agents to access real-time prices, order books, and historical market data without requiring API keys.
      21
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time and historical cryptocurrency market data using ccxt, enabling users to fetch live prices, historical candlestick data, and stream real-time ticker updates across multiple exchanges.
      14
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides cryptocurrency data tools and resources via an HTTP endpoint. It enables users to fetch real-time market data from Binance, track activity logs, and generate cryptocurrency executive summaries.
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      A comprehensive cryptocurrency market-data MCP server with 49 tools across six data sources, enabling LLMs to answer market questions via natural language.
      49
      MIT