Skip to main content
Glama
TermiX-official

Binance MCP Server

Binance MCPサーバー

概要

Binance MCPサーバーは、Binance APIと連携するために設計されたバックエンドサービスです。Binance取引所とのシームレスな連携を可能にし、ユーザーはポートフォリオの閲覧、トークンの変換、そして市場への影響を最小限に抑えた取引の実行が可能になります。このサーバーは、モデルコンテキストプロトコル(MCP)フレームワークを活用し、安全で構造化された効率的なトランザクションを実現します。

主な機能:

  • アカウント情報や取引についてはBinance取引所APIと連携してください

  • ポートフォリオの構成と評価を表示する

  • 市場への影響を軽減しながらスマートトークン変換を実行する

  • 市場注文とアルゴリズム取引戦略を処理する

  • リアルタイムの取引データとアカウント情報を取得する

  • モデルコンテキストプロトコルフレームワークを使用して構造化トランザクションを実装する

  • Binanceとの統合のための安全な認証とAPIキー管理を提供する

Related MCP server: BSC MCP Server

特徴

  • [x] Binance API統合:アカウント情報と取引操作のためにBinance取引所に接続します

  • [x]ポートフォリオ管理: 詳細なポートフォリオ構成、市場価値、および割合の割り当てを表示します。

  • [x]ポートフォリオ分析: オプションの履歴値追跡により、時間の経過に伴うパフォーマンスを監視

  • [x]スマートトークン変換:インテリジェントな注文執行戦略でトークンを変換

  • [x]市場インパクトの緩和:大口注文に対して自動的にアルゴリズム取引を使用し、価格の下落を防ぐ

  • [x]アカウント管理: 詳細なアカウント情報、残高、取引履歴を取得します

  • [x]市場データアクセス:情報に基づいた取引決定のために、リアルタイムの注文書と市場データにアクセスします。

  • [x]注文執行: 柔軟な数量指定でスポット市場注文を出す

  • [ ]アルゴリズム取引サポート:市場への影響を最小限に抑えるために時間加重平均価格(TWAP)注文を実装します

  • [ ]自動取引:事前に定義された戦略に基づいてプログラムで取引を実行する

  • [ ]安全な認証:APIキーを管理し、Binanceサービスへの安全な接続を実現します。

  • [ ]包括的なエラー処理:トランザクションの失敗やAPIの問題に関する詳細なエラーレポート

要件

Binance MCP サーバーをセットアップする前に、以下がインストールされていることを確認してください。

  • Node.js (v16以降)

  • npmまたはyarn

  • Binance APIキーとシークレット(Binance取引所との統合用)

  • 有効なBinance Smart Chain(BSC)ウォレットの秘密鍵(ブロックチェーン取引用)

インストール

リポジトリをクローンし、依存関係をインストールします。

git clone https://github.com/your-repo/binance-mcp-server.git
cd binance-mcp-server
npm install  # or yarn install

構成

サーバーを構成するには、ルート ディレクトリに.envファイルを作成し、次の変数を指定します。

# Binance API Configuration
BINANCE_API_KEY=your_binance_api_key_here
BINANCE_API_SECRET=your_binance_api_secret_here

Binance APIキーの作成

Binance API統合を使用する前に、APIキーを作成する必要があります。これにより、複数のプログラミング言語を使用してBinanceのサーバーに接続し、Binanceからデータを取得し、外部アプリケーションとやり取りできるようになります。ウォレットと取引データの確認、取引の実行、サードパーティ製プログラムでの資金の入出金が可能になります。

前提条件:

  • アカウントを有効にするには、Spot Walletに任意の金額を入金する必要があります。

  • 本人確認を完了する

  • アカウントで2要素認証(2FA)を有効にする

Binance APIキーを作成する手順:

  1. Binanceアカウントにログインし、プロフィールアイコンをクリックしてから[アカウント]をクリックします。Binanceホームページ

  2. [API 管理] に移動し、[API の作成] をクリックします。API管理

  3. 希望する API キーの種類を選択してください:

    • システム生成 API キー (HMAC 対称暗号化) - API キーと秘密キーを取得します。

    • 自己生成 API キー (Ed25519 または RSA 非対称暗号化) - API キーを受け取りますが、独自の公開キーと秘密キーのペアを作成する必要があります。APIキーの種類

  4. API キーのラベル/名前を入力します。APIキーを作成する

  5. 2FA デバイスとパスキーで認証します。セキュリティ管理

  6. API キーが作成されました。

Binance API の詳細については、 Binance API ドキュメントを参照してください。

Claude Desktopとの統合

この MCP サーバーを Claude Desktop と統合する前に、以下がインストールされていることを確認してください。

  • クロードデスクトップ

次に、次のコマンドを使用してサーバーを構築します。

npm run build  

この MCP サーバーを Claude Desktop に追加するには:

次の場所で Claude Desktop 構成ファイルを作成または編集します。

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

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

  • Linux: ~/.config/Claude/claude_desktop_config.json

次の構成を追加します。

{
    "mcpServers": {
        "binance-mcp": {
            "command": "node",
            "args": [
                "/Users/Username/Desktop/binance-mcp/build/index.js"
            ],
            "env": {
                "BINANCE_API_KEY": "BINANCE_API_KEY",
                "BINANCE_API_SECRET": "BINANCE_API_SECRET"
            },
            "disabled": false,
            "autoApprove": []
        }
    }
}

argsフィールドにindex.jsファイルの正しい場所を渡すようにしてください。

変更を有効にするには、Claude Desktop を再起動してください。

使用方法(Claude以外のMCP HOSTに接続する場合)

サーバーを起動する

MCP サーバーを起動するには、次のコマンドを実行します。

npm start  # or node index.js

機能

Binance API関数

  1. Binanceアカウント情報を取得する - binanceAccountInfo

    残高、取引権限、アカウントステータスなど、Binance アカウントに関する包括的な情報を取得します。

  2. Binanceアカウントスナップショットを取得 - binanceAccountSnapshot

    Binanceアカウントのステータス(現在のBTC価格情報を含む)のスナップショットを取得します。過去30日間の履歴も含まれます。

  3. Binanceの注文書を確認する - binanceOrderBook

    {
        "symbol": "BTCUSDT"
    }

    指定された取引ペアの現在の注文書を取得し、最大 50 レベルの深さまでの利用可能な売買注文を表示します。

  4. スポット市場注文の発注 - binanceSpotPlaceOrder

    {
        "symbol": "BTCUSDT",
        "side": "BUY",
        "quantity": 0.001,
        // OR
        "quoteOrderQty": 100
    }

    最良価格で即時執行する成行注文を発注します。 quantityでベース資産の数量を指定するか、 quoteOrderQtyで建値通貨での数量を指定します。小口注文に適しています。

  5. TWAP注文を出す - binanceTimeWeightedAveragePriceFutureAlgo

    {
        "symbol": "BTCUSDT",
        "side": "BUY",
        "quantity": 1.0,
        "duration": 3600
    }

    市場への影響を最小限に抑えるため、指定された期間にわたって段階的に執行される時間加重平均価格(TWAP)注文を発注します。大幅な価格変動を引き起こす可能性のある大口注文に適しています。

モデルコンテキストプロトコル(MCP)

**モデルコンテキストプロトコル(MCP)は、**アプリケーションとAIモデルおよびブロックチェーンベースの計算システムとの連携を強化するために設計されたオープンスタンダードです。MCPは、自動トランザクションと分散型アプリケーションの効率を向上させる構造化されたコンテキストを確立します。

MCP の利点:

  • 標準化: アプリケーションの相互作用に対する統一されたアプローチを定義します。

  • 効率: 計算オーバーヘッドが削減され、トランザクション速度が向上します。

  • 相互運用性: 複数のプラットフォームとブロックチェーン エコシステム間の統合をサポートします。

エラー処理

トランザクションが失敗すると、サーバーは詳細を含むエラーメッセージを返します。詳細なデバッグ情報については、コンソールログを確認してください。一般的なエラーシナリオには以下が含まれます。

  • ウォレットの残高が不足しています

  • 受信者のアドレスが無効です

  • ネットワークの輻輳またはRPCの問題

  • Binance API認証エラー

  • 取引制限

ライセンス

このプロジェクトは MIT ライセンスに基づくオープンソースです。

貢献、バグ報告、機能リクエストについては、 GitHubで問題を送信してください。

Available Tools

1 tool
crypto-priceC

Get the current price of a cryptocurrency

ParametersJSON Schema
NameRequiredDescriptionDefault
symbolYes

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden for behavioral disclosure. While 'Get' implies a read-only operation, the description doesn't address important behavioral aspects like rate limits, data freshness (how current is 'current'), error conditions, or authentication requirements. For a tool with zero annotation coverage, this represents a significant gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly concise - a single sentence that states exactly what the tool does without any wasted words. It's front-loaded with the core functionality and contains no redundant information. Every word earns its place in this minimal but complete statement of purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations, no output schema, and 0% schema description coverage, the description is inadequate. While concise, it doesn't provide enough information about behavior, parameter usage, or return values. The agent would need to guess about important aspects like response format, error handling, and parameter constraints.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, with one undocumented parameter 'symbol'. The description mentions 'cryptocurrency' which provides some context for what 'symbol' might represent, but doesn't specify format (e.g., 'BTC', 'bitcoin', ticker symbols), valid values, or examples. This minimal compensation for the complete lack of schema documentation is insufficient.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get') and resource ('current price of a cryptocurrency'), making the purpose immediately understandable. It's specific enough to distinguish this tool from potential alternatives like historical price tools or exchange rate calculators. However, it doesn't explicitly differentiate from non-existent siblings, so it doesn't reach the highest score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or limitations. It simply states what the tool does without context about appropriate use cases or constraints. Since there are no sibling tools mentioned, this omission is less critical but still leaves the agent without usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 1 tool update
    • First observedcrypto-price

TDQS

B3/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as fetching cryptocurrency prices, making it impossible for an agent to confuse it with another tool.

Naming Consistency5/5

Since there is only one tool, naming consistency is inherently perfect. The tool name 'crypto-price' follows a clear noun-noun pattern that is straightforward and descriptive for its single function.

Tool Count2/5

A single tool is too few for a server named 'Binance MCP Server', which implies broader cryptocurrency exchange functionality. This minimal set feels thin and inadequate for the expected scope, such as trading, account management, or market data beyond just price.

Completeness2/5

The tool surface is severely incomplete for a Binance server, covering only price retrieval. Obvious gaps include trading operations, balance checks, order management, and other exchange features, which will likely cause agent failures in typical cryptocurrency tasks.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    This server provides a robust interface for Binance spot trading operations, including secure management of API credentials, execution and management of spot orders, and monitoring of account balances and open orders.
    5 npm
    14
    MIT
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    A backend service that executes transactions across multiple blockchains, enabling users to manage wallets, transfer tokens, and interact with smart contracts using the Model Context Protocol framework.
    1
    -
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Backend service that enables users to connect with Binance exchange for viewing portfolio data, converting tokens, and executing trades with minimal market impact through the Model Context Protocol framework.
    30 npm
    -