Skip to main content
Glama
crypto-liquidations-mcp

crypto-liquidations-mcp

by kukapay

暗号資産清算MCP

Binance からの暗号通貨清算イベントをリアルタイムでストリーミングする MCP サーバー。これにより、AI エージェントはボラティリティの高い市場の動きに即座に対応できるようになります。

ライセンスPythonバージョン状態

特徴

  • リアルタイム清算ストリーミング: Binance WebSocketに接続して清算イベントをキャプチャします。

  • 清算データ ストレージ: 永続的なストレージなしで、最大 1000 件の清算イベントのメモリ内リストを維持します。

  • ツール: get_latest_liquidations :

    • Markdown テーブル内の最新の清算イベントを取得します。

    • 列: Symbol 、 Side 、 Price 、 Quantity 、 Time (HH:MM:SS 形式)。

    • パラメータ: limit (デフォルト 10)。

  • プロンプト: analyze_liquidations :

    • get_latest_liquidationsツールを活用して、すべてのシンボルの清算傾向を分析するためのプロンプトを生成します。

Related MCP server: binance-alpha-mcp

前提条件

  • Python 3.10 : 互換性のために必要です。

  • uv : パッケージおよび依存関係マネージャー (インストール手順は下記)。

  • インターネット アクセス: Binance WebSocket に接続するため。

インストール

1. リポジトリのクローンを作成する

git clone https://github.com/kukapay/crypto-liquidations-mcp.git
cd crypto-liquidations-mcp

2. 依存関係をインストールする

uvを使用して必要なパッケージをインストールします。

uv sync

3. MCPクライアントとの統合

MCPクライアントをサーバーに接続するための設定を行います。Claude Desktopの場合:

{
 "mcpServers": {
   "crypto-liquidations": {
     "command": "uv",
     "args": ["--directory", "/path/to/crypto-liquidations-mcp", "run", "main.py"]
   }
 }
}

使用法

まず、MCPサーバーを起動して、Binanceからの清算イベントのストリーミングを開始します。サーバーは静かに動作し、ログを生成したりデータをディスクに保存したりすることなく、最大1000件の最近のイベントをメモリに収集します。

清算イベントの取得

get_latest_liquidationsツールを使用して、最新の清算イベントを取得します。limit limitを使用して、取得するイベントの数(最大1000件)を指定できます。例えば、次のように指定します。

「Binance の最新の清算イベント 5 件を表示してください。」

これにより、取引ペア、買いまたは売り側、価格、数量、および各清算の時刻を HH:MM:SS 形式で示す、きちんとフォーマットされたテーブルが返されます。

出力例:

| Symbol   | Side | Price  | Quantity | Time     |
|----------|------|--------|----------|----------|
| BTCUSDT  | BUY  | 50000  | 1.5      | 14:30:45 |
| ETHUSDT  | SELL | 3000   | 10.0     | 14:30:40 |
| BNBUSDT  | BUY  | 500    | 20.0     | 14:30:35 |
| ADAUSDT  | SELL | 1.2    | 1000.0   | 14:30:30 |
| XRPUSDT  | BUY  | 0.8    | 5000.0   | 14:30:25 |

この表では、Binance での大規模な売買清算など、最近の市場活動を簡単に確認できます。

清算傾向の分析

analyze_liquidationsプロンプトは、データのより深い分析に役立ちます。このプロンプトは、すべての取引ペアにおける清算傾向を分析するための指示を生成します。清算の頻度、取引量、市場への影響に焦点を当てています。このプロンプトは、 get_latest_liquidationsツールを使用してデータを取得することを提案し、最新の情報を確実に利用できるようにします。

これは、清算が増加しているかどうか、または大幅な価格変動の兆候があるかどうかなど、より広範な市場の動向を理解するのに特に役立ちます。

ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。

Available Tools

1 tool
get_latest_liquidationsA

Retrieve the latest liquidation events from Binance in a table format.

Args:
    limit (int): The maximum number of liquidation events to return (default: 10, max: 1000).
    ctx (Context, optional): The MCP context for logging and server interaction. Defaults to None.

Returns:
    str: A Markdown table containing the latest liquidation events, sorted by timestamp in descending order.

Inputs: limit, ctx.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/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 retrieving liquidation events from Binance, making it distinct by default.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name 'get_latest_liquidations' follows a clear verb_noun pattern, which would be consistent if more tools were added.

    Tool Count2/5

    A single tool is too few for a server focused on crypto liquidations, as it severely limits functionality. The scope suggests a need for more operations, such as filtering by asset, time range, or exchange, making this feel incomplete and thin.

    Completeness2/5

    The tool surface is significantly incomplete for the domain of crypto liquidations. While it provides a basic retrieval function, there are obvious gaps, such as no ability to filter by parameters like asset type, exchange, or time period, which are essential for practical use.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers