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.
Clone the Repository:
shell
git clone https://github.com/yourusername/uniswap-poolspy-mcp.git
cd uniswap-poolspy-mcp
Set Up Environment: Install uv
if you haven't already:
shell
curl -LsSf https://astral.sh/uv/install.sh | sh
Install Dependencies: Use uv
to sync dependencies from pyproject.toml
:
shell
uv sync
Configure API Key: Create a .env
file in the project root:
shell
echo "THEGRAPH_API_KEY=your-api-key-here" > .env
Replace your-api-key-here
with your actual The Graph API key.
Start the MCP server:
uv run main.py
For development with MCP Inspector:
uv run mcp dev main.py
Install the server as an MCP plugin:
uv run mcp install main.py --name "UniswapPoolSpy"
To make the server discoverable by MCP clients (e.g., Claude Desktop), configure it in an mcpServers
file:
{
"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"
}
}
}
}
Use the get_new_pools
tool in Claude Desktop with natural language queries like:
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)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
This project is licensed under the MIT License - see the LICENSE file for details.
An MCP server that tracks newly created liquidity pools on Uniswap across nine blockchain networks.
No releases published
No packages published