Skip to main content
Glama
kukapay

pancakeswap-poolspy-mcp

by kukapay

Сервер PancakeSwap PoolSpy MCP

Сервер MCP, который отслеживает вновь созданные пулы ликвидности на Pancake Swap, предоставляя данные в режиме реального времени для аналитиков, трейдеров и разработчиков DeFi.

Лицензия Питон значок кузнеца

Функции

  • Отслеживание пулов в реальном времени : извлекает пулы, созданные в указанном диапазоне времени (по умолчанию: 5 минут).

  • Настраиваемые запросы : настройте временной диапазон (в секундах) и количество возвращаемых пулов (по умолчанию: 100).

  • Подробные метрики : включают адрес пула, токены, метку времени создания, номер блока, количество транзакций, объем (USD) и общую заблокированную стоимость (USD).

Related MCP server: hyperliquid-whalealert-mcp

Предпосылки

  • Python 3.10+ : убедитесь, что в вашей системе установлен Python.

  • Ключ API Graph : получите ключ API от The Graph для доступа к подграфу PancakeSwap.

Установка

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

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

npx -y @smithery/cli install @kukapay/pancakeswap-poolspy-mcp --client claude
  1. Клонировать репозиторий :

    git clone https://github.com/kukapay/pancakeswap-poolspy-mcp.git
    cd pancakeswap-poolspy-mcp
  2. Установка зависимостей : Установите необходимые пакеты Python с помощью uv:

    uv add mcp[cli] httpx dotenv
  3. Конфигурация клиента

    {
      "mcpServers": {
        "PancakeSwap-PoolSpy": {
          "command": "uv",
          "args": ["--directory", "path/to/pancakeswap-poolspy-mcp", "run", "main.py"],
          "env": {
            "THEGRAPH_API_KEY": "your api key from The Graph"
          }
        }
      }
    }

Использование

Запуск сервера

Запустите сервер в режиме разработки, чтобы протестировать его локально:

mcp dev main.py

Это запустит MCP Inspector, где вы сможете взаимодействовать с инструментом get_new_pools_bsc .

Доступный инструмент

get_new_pools_bsc(time_range_seconds: int = 300, limit: int = 100)

Получает список недавно созданных пулов PancakeSwap в BNB Smart Chain.

  • Параметры :

    • time_range_seconds (int): Временной диапазон в секундах для поиска новых пулов. По умолчанию 300 секунд (5 минут).

    • limit (int): Максимальное количество возвращаемых пулов. По умолчанию 100 пулов.

  • Возвращает : отформатированную строку со списком сведений о пуле или сообщение об ошибке, если запрос не выполнен.

  • Примеры выходных данных :

    • По умолчанию (последние 5 минут, до 100 пулов):

      get_new_pools_bsc()
      Newly Created Trading Pools (Last 5 Minutes, Limit: 100):
      Pool Address: 0x1234...5678
      Tokens: WETH/USDC
      Created At: 2025-03-16 12:00:00 UTC
      Block Number: 12345678
      Transaction Count: 10
      Volume (USD): 1234.56
      Total Value Locked (USD): 5678.90
      
      Pool Address: 0x9abc...def0
      Tokens: CAKE/BNB
      Created At: 2025-03-16 12:01:00 UTC
      Block Number: 12345679
      Transaction Count: 5
      Volume (USD): 789.12
      Total Value Locked (USD): 3456.78
    • Пользовательский (последние 10 минут, до 50 пулов):

      get_new_pools(600, 50)
      Newly Created Trading Pools (Last 10 Minutes, Limit: 50):
      [pool details...]

Примеры подсказок :

  • "список недавно созданных пулов PancakeSwap за последний 1 час."

  • «Отобразить пулы PancakeSwap, созданные за последние 2 минуты».

Лицензия

Этот проект лицензирован по лицензии MIT. Подробности см. в файле LICENSE .

Available Tools

1 tool
get_new_pools_bscA

Returns a list of trading pools created in the specified time range on Pancake Swap V3 BNB Smart Chain.

Parameters: time_range_seconds (int): The time range in seconds to look back for new pools. Default is 300 seconds (5 minutes). limit (int): The maximum number of pools to return. Default is 100 pools.

ParametersJSON Schema
NameRequiredDescriptionDefault
time_range_secondsNo
limitNo

TDQS

A3.7/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 the full burden. It describes the retrieval behavior but lacks details on potential side effects (e.g., rate limits, authentication needs, data freshness, or error handling). While it specifies the scope (new pools in a time range), it does not disclose behavioral traits like pagination, sorting, or what happens if no pools are found, leaving gaps for a read operation.

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 appropriately sized and front-loaded: the first sentence states the core purpose, followed by a structured parameter list with clear explanations and defaults. Every sentence adds value without redundancy, making it efficient and easy to scan.

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

Completeness3/5

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

Given the complexity (a read operation with two parameters), no annotations, and no output schema, the description is moderately complete. It covers the purpose and parameters well but lacks details on return values (e.g., pool structure, fields) and behavioral aspects like error handling or performance. This leaves some gaps for an agent to use the tool effectively without additional context.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It adds meaningful semantics by explaining that 'time_range_seconds' is 'the time range in seconds to look back for new pools' with a default, and 'limit' is 'the maximum number of pools to return' with a default. This clarifies the purpose and usage of both parameters beyond what the schema provides, though it could include more on constraints (e.g., min/max values).

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 ('Returns a list'), resource ('trading pools'), and scope ('created in the specified time range on Pancake Swap V3 BNB Smart Chain'). It distinguishes this as a retrieval operation for newly created pools with temporal filtering, making the purpose immediately understandable without redundancy.

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

Usage Guidelines3/5

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

The description implies usage by specifying the time range for new pools, but it does not provide explicit guidance on when to use this tool versus alternatives (e.g., for historical vs. real-time data, or other filtering criteria). Since no sibling tools are listed, the lack of comparative guidance is less critical, but it still lacks explicit when/when-not directives.

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_new_pools_bsc

TDQS

A3.9/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly defined and distinct.

Naming Consistency5/5

A single tool inherently has perfect naming consistency, as there are no other tools to compare against. The name follows a clear verb_noun pattern.

Tool Count2/5

One tool is too few for a server focused on monitoring PancakeSwap pools, as it lacks essential operations like retrieving pool details, tracking updates, or analyzing liquidity. This severely limits functionality.

Completeness2/5

The tool surface is severely incomplete for monitoring pools; it only fetches new pools without supporting queries for existing pools, pool metadata, or historical data, leaving significant gaps in coverage.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers