Skip to main content
Glama

Uniswap PoolSpy MCP サーバー

Ethereum、Base、Optimism、Arbitrum、Polygon、BNB Smart Chain (BSC)、Avalanche、Celo、Blast の 9 つのブロックチェーン ネットワークにわたって Uniswap 上に新しく作成された流動性プールを追跡し、DeFi アナリスト、トレーダー、開発者にリアルタイム データを提供する MCP サーバーです。

パイソンライセンス状態

特徴

  • 9 つのブロックチェーン ネットワークにわたる Uniswap V3 プールの作成を監視します。

  • 新しいプールをクエリするためのカスタマイズ可能な時間範囲と結果の制限。

  • タイムスタンプ、トランザクション数、ボリューム、または TVL による並べ替えをサポートします。

Related MCP server: uniswap-trader-mcp

前提条件

  • Python 3.10以上

  • パッケージ管理のためのuv

  • 有効なThe Graph APIキー

  • 完全な機能を実現するMCP互換環境(例:Claude Desktop)

インストール

  1. リポジトリのクローンを作成します:

    git clone https://github.com/yourusername/uniswap-poolspy-mcp.git
    cd uniswap-poolspy-mcp
  2. 環境の設定: まだインストールしていない場合は、 uvをインストールします。

    curl -LsSf https://astral.sh/uv/install.sh | sh
  3. 依存関係のインストール: uvを使用してpyproject.tomlから依存関係を同期します。

    uv sync
  4. API キーの設定: プロジェクト ルートに.envファイルを作成します。

    echo "THEGRAPH_API_KEY=your-api-key-here" > .env

    your-api-key-here実際の The Graph API キーに置き換えます。

使用法

サーバーの実行

MCP サーバーを起動します。

uv run main.py

MCP Inspector を使用した開発の場合:

uv run mcp dev main.py

Claude Desktopとの統合

サーバーを MCP プラグインとしてインストールします。

uv run mcp install main.py --name "UniswapPoolSpy"

構成

サーバーを MCP クライアント (例: Claude Desktop) が検出できるようにするには、 mcpServersファイルで次のように構成します。

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

新しいプールのクエリ

次のような自然言語クエリで、Claude Desktop のget_new_poolsツールを使用します。

  • 「過去10分間のイーサリアムの新しいプールを表示してください」

  • 「Base 上のプールをボリューム順に一覧表示します。最大 50 個まで」

  • 「過去 1 時間に Polygon で作成されたプールは TVL 順に何ですか?」

このツールは次のパラメータを受け入れます:

  • chain : ブロックチェーンネットワーク(例:「ethereum」、「base」、「optimism」)

  • order_by : 並べ替えフィールド ("timestamp", "txcount", "volume", "tvl")

  • time_range_seconds : ルックバック期間(秒)(デフォルト: 300)

  • limit : 返されるプールの最大数(デフォルト: 100)

出力例

Newly Created Trading Pools (Last 5 Minutes, Limit: 100):
Pool Address: 0x1234...abcd
Tokens: WETH/USDC
Created At: 2025-03-18 12:34:56
Block Number: 12345678
Transaction Count: 5
Volume (USD): 15000.25
Total Value Locked (USD): 50000.75

Pool Address: 0x5678...efgh
Tokens: DAI/USDT
Created At: 2025-03-18 12:33:45
Block Number: 12345670
Transaction Count: 3
Volume (USD): 8000.50
Total Value Locked (USD): 25000.00

サポートされているチェーン

  • イーサリアム

  • ベース

  • 楽観

  • 仲裁

  • ポリゴン

  • BNBスマートチェーン(BSC)

  • 雪崩

  • セロ

  • ブラスト

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

Available Tools

1 tool
get_new_poolsB

Returns a list of trading pools created in the specified time range on Uniswap V3.

Parameters: chain (str): The blockchain on which Uniswap is deployed. Default is 'ethereum'. Supported options include: 'ethereum', 'base', 'optimism', 'arbitrum', 'polygon', 'bsc', 'avalanche', 'celo' and 'blast'. order_by (str): The field to sort data in descending order before returning to the user. Default is 'timestamp'. Supported options include: - timestamp: Sort by Timestamp - txcount: Sort by Transaction Count - tvl: Sort by Total Value Locked - volume: Sort by Volume 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.

Inputs: chain, limit, order_by, time_range_seconds.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'get_new_pools' has a single, clearly defined purpose: retrieving newly created Uniswap V3 pools within a specified time range.

    Naming Consistency5/5

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

    Tool Count2/5

    A single tool is too few for a server named 'uniswap-poolspy-mcp', which suggests broader monitoring or analysis of Uniswap pools. This minimal toolset limits functionality to only retrieving new pools, lacking operations like querying existing pools, analyzing pool metrics, or tracking pool changes over time.

    Completeness2/5

    The tool surface is severely incomplete for the implied domain of Uniswap pool monitoring. While 'get_new_pools' covers discovery of new pools, there are significant gaps: no tools for getting pool details, tracking liquidity or volume trends, analyzing historical data, or performing CRUD-like operations on pool information, which agents would need for comprehensive analysis.

    Related MCP Connectors

    Related MCP Servers