Uniswap PoolSpy MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
An MCP server that tracks newly created liquidity pools on Uniswap across nine blockchain networks — Ethereum, Base, Optimism, Arbitrum, Polygon, BNB Smart Chain (BSC), Avalanche, Celo, and Blast — providing real-time data for DeFi analysts, traders, and developers.
Features
- Monitors Uniswap V3 pool creation across 9 blockchain networks.
- Customizable time range and result limits for querying new pools.
- Supports sorting by timestamp, transaction count, volume, or TVL.
Prerequisites
- Python 3.10 or higher
- uv for package management
- A valid The Graph API key
- MCP-compatible environment (e.g., Claude Desktop) for full functionality
Installation
1. **Clone the Repository**:
2. **Set Up Environment**:
Install uv if you haven't already:
3. **Install Dependencies**:
Use uv to sync dependencies from pyproject.toml:
4. **Configure API Key**:
Create a .env file in the project root:
Replace your-api-key-here with your actual The Graph API key.
Usage
Running the Server
Start the MCP server:
For development with MCP Inspector:
Integrating with Claude Desktop
Install the server as an MCP plugin:
Configuration
To make the server discoverable by MCP clients (e.g., Claude Desktop), configure it in an mcpServers file:
Querying New Pools
Use the get_new_pools tool in Claude Desktop with natural language queries like:
- "Show me new pools on Ethereum from the last 10 minutes"
- "List pools on Base sorted by volume, limit to 50"
- "What pools were created on Polygon in the past hour, ordered by TVL?"
The tool accepts these parameters:
- chain: Blockchain network (e.g., "ethereum", "base", "optimism")
- order_by: Sort field ("timestamp", "txcount", "volume", "tvl")
- time_range_seconds: Lookback period in seconds (default: 300)
- limit: Maximum number of pools to return (default: 100)
Example Output
Supported Chains
- Ethereum
- Base
- Optimism
- Arbitrum
- Polygon
- BNB Smart Chain (BSC)