Skip to main content
Glama
iuk-ink

Binance MCP Server

Binance MCP Server

Version Node.js License

Model Context Protocol に基づく Binance の U 本位(USDT-M)先物 MCP サーバーです。AI アシスタントに 61 個 の MCP ツールを提供し、相場データ、テクニカル指標、リスク分析、先物取引をカバーします。

MCP server v2 SDK と Binance 公式 SDK(@binance/derivatives-trading-usds-futures)の上に構築されています。すべての数値は取引所の精度ルールに従って自動正規化され、2 段階の相場キャッシュ、-1007 タイムアウト時の冪等リカバリ、時ペクロックずれ検知を備ええていいます。

クイッカスタト

ゼロ設定で試す

npx @iuk-ink/binance-mcp-server

API キーは不要です。デフォルトでテストネットに接続し、相場・テクニカル指標・リスク分析ツールを利用できます。

MCP クジの設定

{
  "mcpServers": {
    "binance": {
      "command": "npx",
      "args": ["-y", "@iuk-ink/binance-mcp-server"],
      "env": {
        "BINANCE_TESTNET": "true"
      }
    }
  }
}

取注機能が必要な場合は、BINANCE_API_KEYBINANCE_API_SECRET を追加してください。

環る開催

変 数

必須

デフォルト値

説明

BINANCE_TESTNET

いいえ

true

テストネット(仮想金) / メインネット

BINANCE_USE_DEM0

いいえ

false

デモ取引環機(メインネットの証書と共共用)

BINANCE_BASE_URL

いいえ

カスタム REST ペ番(最優先)

BINANCE_API_KEY

いいえ

取引ツールを登録しない場合は未設定のまま

BINANCE_API_SECRET

いいえ

上に同じ

BINANCE_PORYX_URL

いいえ

HTTP/HTTPS プロキシ アドレス

BINANCE_TIMEOUT

いいえ

10000

リクエストのタイムアウト(ミリ秒)

BINANCE_RETRIES

いいえ

3

ネットワークの再試行回数

BINANCE_BACKOFF

いいえ

1000

再試行時のバックオフ基準値(ミリ秒)

BINANCE_RECV_WINDOW

いいえ

5000

有効時間(ミリ秒)

MCP_TOOL_DOMAINS

いいえ

全て

ツール ドメインの絞り込み。カンマ区切り: market,trading,indicator,analysis

MCP_SERVER_NAME

いいえ

binance-mcp-server

MCP サービス名

LOG_LEVEL

いいえ

info

debug / info / warn / error

Related MCP server: Binance MCP Server

ツール一覧(61 個、メインネット)

テストネットは 57 個(4 つのセンチメントエンドポイントはメインネット専用のため、登録されません)。

マーケットデータ(18)

ツール

説明

market_price

最新の約定価格

market_book_ticker

ベストビット/オファー価格+数量(orderbook より軽量)

market_orderbook

オーダーブックの深い桁数(5/10/20/50/100/500/1000)

market_klines

ヒストリカル K 線

market_24hr_ticker

24 時間の騰落率 / 最高 / 最低 / 売買高

market_mark_price

マーク価格(=清算基準価格、資金レート含む)

market_open_interest

未決済建玉(OI)

market_funding_rate

現在の資金レートと上限/下限

market_funding_rate_history

過去の資金レート

market_continuous_klines

無期限/四半期/次四半期の継続 K 線(ベーシス分析)

market_exchange_info

取引ルール / 精度 / 最小注文量

market_overview

オールインワンのスナップショット:相場+指標+資金レート+板情報を1 回で取得

market_ping / market_time

接続確認にお / サーバー時刻の調整

market_open_interest_hist

OI の履歴統計(メインネットのみ)

market_long_short_ratio

全口座のロング/ショート比率(メインネットのみ)

market_taker_volume

テイカー売買量の比率(メインネットのみ)

market_top_trader_ratio

大口トレーダーのポジション比率(メインネットのみ)

テクニカル指標(19)

ダイレクト接続で、「K 線取得 → 指標計算」を一度に完結できます。market_klines を先に呼ぶ必要はありません。

カテゴリ

ツール

トレンド

laws ? いい? WRITE CORRECT TOOLS:

モメンタム

indicator_rsi / indicator_stoch / indicator_cci / indicator_mfi / indicator_obv

ボラティリティ

indicator_atr / indicator_bbanda / indicator_voltility_regime

複合シグナル

indicator_ma_cross(MA クロス)/ indicator_macd_rsi / indicator_bb_rsi / indicator_divergence(RSI ダイバージェンス)

バッチ

indicator_multi(1 回=RSI+MACD+BBands+ 必要に応じて ATR/ADX/Stoch)

Need row for 趋势 incorrectly. Fix now.

Let me not rush. In final we need correct table.

Continue.

リスク分析(3)

ツール

説明

analysis_sharpe

Sharpe + Sortino + 年率リターン / ボラティリティ(K 線の足を自動判定)

analysis_drawdown

最大ドローダウン(ピーク・ボトムの価格と位置を含む)

analysis_var

VaR / CVaR(信頼度 0.5〜0.99 に調整可能)

先物取引(21 個、API キー必要)

分類

ツール

アカウント

trading_balance / trading_account / trading_positions / trading_income / trading_commission

注文

trading_place_order(dryRun リハーサル含む)/ trading_place_algo(損切り/利確/トレーリングストップ)/ trading_modify_order / trading_cancel_or_der / trading_cancel_algo / trading_cancel_all

照会

trading_get_order / trading_open_orders / trading_order_histiry / trading_traces / trading_force_orders / trading_algo_orders

設定

trading_set_leverage / trading_set_margin_type / trading_position_margin / trading_position_mode

注文時は、価格数量の精度を自動で切捨て(tickSize/stepSize)、最小名目价值を検証し、-1007 撮合タイムアウト後は等価注文 ID で約定状態を確認してからリトライするかどうかを決定します。

2.x から 3.x への移行

破壊的変更

  • MCP SDK: @modelcontextprotocol/sdk@1@modelcontextprotocol/server@2(公式パッケージ名変更)

  • Binance 連携: コミュニティ パッケージ binance@3 → 公式 @binance/derivatives-trading-usds-futures@38

  • Node.js: >=18>=20

  • プロキシ変数: HTTP_PROXYBINANCE_PROXY_URL

  • ツール数 76 → 61: 統計補助ドメイン(平均/最大最小/四分位など 10 個)とインジケーターの独立版/シグナル版の重複を削除。旧 _direct サフィックスはサフィックスなしの直接命名に変更(例:rsi_directindicator_rsi)。リスク系は risk_*analysis_* に変更

  • ツール名前後タイ: 全部のツールがプレフィックス(market_ / indicator_ / analysis_ / trading_)を持つようになりました。AI クライアントの既存プロンプトとフローは新しい名前へ更新が必要です。

追加機能

  • market_overview のオールインワンスナップショット(相場+指標+資金レート+板情報を1回で)

  • MCP_TOOL_DOMAINS によるツールドメインのフィルタ、BINANCE_USE_DEMO / BINANCE_BASE_URL による環境切替

  • 2段階キャッシュ(exchangeInfo 5 分 + K 線 3 秒、in-flight 重複要求)

  • -1007 タイムアウト時の冪等恢复

  • 注文精度の自動正規化+最小名義価値の事前検証

  • パラメータ検証が公式ルールに完全準拠

AI 使用ガイド

リポジトリに同梱されている skills/binance-trader/SKILL.md は、AI アシスタント向けのマニュアルです。ツール選択の判断、ツール間のワークフロー、取引安全基準、エラー回復手順をまとめています。Skill メカニズムをサポートするクラ特(Claude Code / Trae など)で直接装てきし、AI を「ツールを使える」から「ツールをうまく使える」へと制度てきます。

ローカル開発

git clone https://github.com/iuk-ink/binance-mcp-server
cd binance-mcp-server
npm install

コマンド

コマンド

用途

npm run dev

tsx を起動する開発用

npm run typecheck

TypeScript の型チェック

npm test

node:test で 196 個の全テスト(ネットワーク不要)

npm run build

dist/ へビルド

npm start

ビルド成果を実行

License

MIT

Related MCP Servers

  • A
    license
    A
    quality
    F
    maintenance
    A Model Context Protocol server implementation that enables AI assistants to interact with the Paradex perpetual futures trading platform, allowing for retrieving market data, managing trading accounts, placing orders, and monitoring positions.
    16
    9
    MIT
  • 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.
    20
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables automated cryptocurrency trading on Binance and provides integration for monitoring Base network operations. It allows users to execute trades, fetch market data, and calculate technical indicators like RSI and MACD through the Model Context Protocol.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time investment news, technical analysis via TA-Lib, and Binance trading capabilities including order management and market data retrieval. It enables AI assistants to perform financial market research and execute trades through the Model Context Protocol.

View all related MCP servers

Related MCP Connectors

  • Binance Futures market intelligence: funding, OI, order book, klines, cross-exchange comparison.

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • Crypto perps data for AI agents: funding rates, open interest, liquidations, order book, CVD.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/iuk-ink/binance-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server