crypto-liquidations-mcp
加密货币清算 MCP
MCP 服务器从币安传输实时加密货币清算事件,使 AI 代理能够立即对高波动性的市场动向做出反应。
特征
实时清算流:连接到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-mcp2.安装依赖项
使用uv安装所需的软件包:
uv sync3. 与 MCP 客户端集成
配置您的 MCP 客户端以连接到服务器。对于 Claude 桌面版:
{
"mcpServers": {
"crypto-liquidations": {
"command": "uv",
"args": ["--directory", "/path/to/crypto-liquidations-mcp", "run", "main.py"]
}
}
}用法
首先,启动 MCP 服务器,开始从币安流式传输清算事件。服务器运行安静,最多可收集 1000 条近期事件到内存中,不会生成日志或将数据保存到磁盘。
检索清算事件
使用get_latest_liquidations工具获取最新的清算事件。您可以使用limit参数指定要检索的事件数量(最多 1000 个)。例如,您可能会问:
“向我展示币安最近发生的 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 |该表格可以轻松查看最近的市场活动,例如币安上的大额买入或卖出清算。
分析清算趋势
analyze_liquidations提示符可帮助您深入研究数据。它会生成用于分析所有交易对清算趋势的指令,重点关注频率、交易量和市场影响。该提示符建议使用get_latest_liquidations工具获取数据,确保您拥有最新的信息。
这对于了解更广泛的市场动态特别有用,例如清算是否正在增加或是否预示着重大的价格变动。
执照
本项目遵循 MIT 许可证。详情请参阅LICENSE文件。
Available Tools
1 toolget_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
Scored across 1 tool
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.
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.
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.
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
Related MCP Connectors
MCP server with quote and live cryptocurrency price tools, local and cloud-deployed transports.
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
Real-time crypto market data: candles, tickers, orderbooks across 13+ exchanges via MCP.
Hosted MCP server for SEC, FRED, Polymarket, Deribit, OKX, and FMP.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that provides real-time whale alerts on Hyperliquid.113MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for tracking Binance Alpha trades, helping AI agents optimize alpha point accumulation.9MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides real-time data and insights from the Hyperliquid perp DEX for use in bots, dashboards, and analytics.1730MIT
- AlicenseBqualityDmaintenanceAn MCP server that streams the latest Binance announcements to your AI agents in real time, enabling instant analysis and action on market-moving updates.11MIT