Skip to main content
Glama
kukapay

crypto-liquidations-mcp

by kukapay

Крипто ликвидация MCP

значок кузнеца

MCP-сервер, который транслирует события ликвидации криптовалют в режиме реального времени с Binance, позволяя агентам ИИ мгновенно реагировать на высоковолатильные движения рынка.

ЛицензияВерсия PythonСтатус

Функции

  • Потоковая передача данных о ликвидации в реальном времени : подключение к Binance WebSocket для регистрации событий ликвидации.

  • Хранилище данных о ликвидации : поддерживает в памяти список до 1000 событий ликвидации, без постоянного хранения.

  • Инструмент: get_latest_liquidations :

    • Извлекает последние события ликвидации в таблице Markdown.

    • Столбцы: Symbol , Side , Price , Quantity , Time (формат ЧЧ:ММ:СС).

    • Параметры: limit (по умолчанию 10).

  • Подсказка: analyze_liquidations :

    • Создает запрос на анализ тенденций ликвидации по всем символам, используя инструмент get_latest_liquidations .

Related MCP server: binance-alpha-mcp

Предпосылки

  • Python 3.10 : требуется для совместимости.

  • uv : Менеджер пакетов и зависимостей (инструкции по установке ниже).

  • Доступ в Интернет : для подключения к Binance WebSocket.

Установка

Установка через Smithery

Чтобы автоматически установить Crypto Liquidations для Claude Desktop через Smithery :

npx -y @smithery/cli install @kukapay/crypto-liquidations-mcp --client claude

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 для извлечения последних событий ликвидации. Вы можете указать, сколько событий нужно извлечь (до 1000), используя параметр limit . Например, вы можете спросить:

«Покажите мне 5 последних событий ликвидации от Binance».

Это вернет аккуратно отформатированную таблицу, показывающую торговую пару, сторону покупки или продажи, цену, количество и время каждой ликвидации в формате ЧЧ:ММ:СС.

Пример вывода :

| 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.
ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
ctxNo

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does reveal that results are sorted by timestamp in descending order and returned as a Markdown table, which are useful behavioral traits. However, it doesn't mention rate limits, authentication requirements, data freshness, error conditions, or whether this is a read-only operation (though 'retrieve' implies it). The description adds some value but leaves significant behavioral aspects unspecified.

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

Conciseness4/5

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

The description is well-structured with clear sections (Args, Returns) and front-loaded the core purpose. Every sentence adds value: the first states what the tool does, followed by parameter explanations and return format. It could be slightly more concise by integrating the default values more seamlessly, but overall it's efficient and well-organized.

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

Completeness4/5

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

Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description provides good contextual coverage. It explains the tool's purpose, parameters, and return format clearly. The main gap is the lack of behavioral details like rate limits or authentication, but for a data retrieval tool with well-documented parameters, this is reasonably complete. The absence of an output schema is mitigated by the clear return value description.

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

Parameters5/5

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

The description provides excellent parameter semantics beyond the input schema. While schema description coverage is 0%, the description clearly explains both parameters: 'limit' with its default (10) and maximum (1000) values, and 'ctx' as optional with its purpose ('MCP context for logging and server interaction'). This fully compensates for the lack of schema descriptions and adds meaningful context about parameter usage.

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

Purpose5/5

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

The description clearly states the specific action ('retrieve'), resource ('latest liquidation events from Binance'), and output format ('table format'). It distinguishes itself by specifying the source (Binance) and format (Markdown table), making the purpose unambiguous even without sibling tools for comparison.

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. While there are no sibling tools listed, it doesn't mention any prerequisites, constraints, or scenarios where this tool would be appropriate versus other data retrieval methods. The only implicit guidance is the focus on 'latest' events, but no explicit usage context is provided.

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 observedget_latest_liquidations

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
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers