pancakeswap-poolspy-mcp

by kukapay
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows cloning of the PancakeSwap PoolSpy repository from GitHub to set up the MCP server.

  • Serves as the runtime environment for the MCP server, requiring Python 3.10+ for operation.

PancakeSwap PoolSpy MCP サーバー

Pancake Swap で新しく作成された流動性プールを追跡し、DeFi アナリスト、トレーダー、開発者にリアルタイム データを提供する MCP サーバー。

特徴

  • リアルタイム プール トラッキング: 指定された時間範囲 (デフォルト: 5 分) 内に作成されたプールを取得します。
  • カスタマイズ可能なクエリ: 時間範囲 (秒単位) と返されるプールの数 (デフォルト: 100) を調整します。
  • 詳細なメトリクス: プール アドレス、トークン、作成タイムスタンプ、ブロック番号、トランザクション数、ボリューム (USD)、およびロックされた合計値 (USD) が含まれます。

前提条件

  • Python 3.10+ : システムに Python がインストールされていることを確認してください。
  • The Graph API キー: PancakeSwap サブグラフにアクセスするには、 The Graphから API キーを取得します。

インストール

  1. リポジトリのクローンを作成します:
    git clone https://github.com/kukapay/pancakeswap-poolspy-mcp.git cd pancakeswap-poolspy-mcp
  2. 依存関係のインストール: uv を使用して必要な Python パッケージをインストールします。
    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 インスペクターが起動し、 get_new_pools_bscツールを操作できるようになります。

利用可能なツール

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

BNB Smart Chain 上に新しく作成された PancakeSwap プールのリストを取得します。

  • パラメータ:
    • 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...]

プロンプトの例:

  • 「過去 1 時間以内に新しく作成された PancakeSwap プールを一覧表示します。」
  • 「過去 2 分以内に作成された PancakeSwap プールを表示します。」

ライセンス

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

-
security - not tested
A
license - permissive license
-
quality - not tested

Pancake Swap で新しく作成された流動性プールを追跡する MCP サーバー。

  1. Features
    1. Prerequisites
      1. Installation
        1. Usage
          1. Running the Server
          2. Available Tool
          3. Example Prompts:
        2. License
          ID: xsr0ogarc5