Uniswap PoolSpy MCP Server
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
-
Clone the Repository:
git clone https://github.com/yourusername/uniswap-poolspy-mcp.git cd uniswap-poolspy-mcp
-
Set Up Environment: Install
uvif you haven't already:curl -LsSf https://astral.sh/uv/install.sh | sh
-
Install Dependencies: Use
uvto sync dependencies frompyproject.toml:uv sync -
Configure API Key: Create a
.envfile in the project root:echo "THEGRAPH_API_KEY=your-api-key-here" > .env
Replace
your-api-key-herewith your actual The Graph API key.
Usage
Running the Server
Start the MCP server:
uv run main.py
For development with MCP Inspector:
uv run mcp dev main.py
Integrating with Claude Desktop
Install the server as an MCP plugin:
uv run mcp install main.py --name "UniswapPoolSpy"
Configuration
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"
}
}
}
}
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
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
Supported Chains
- Ethereum
- Base
- Optimism
- Arbitrum
- Polygon
- BNB Smart Chain (BSC)
- Avalanche
- Celo
- Blast
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for uniswap-poolspy-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| uniswap_poolspy_mcp-0.1.0.tar.gz | 5.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uniswap_poolspy_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / uniswap_poolspy_mcp-0.1.0.tar.gz
| Download URL | uniswap_poolspy_mcp-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50573d94f5508f8e3115d923298ee3dc4e53b416cee826305ec337f4d928673c
|
|
BLAKE2b-256 checksum How to use checksums |
27731cede9846f6a32f271fdcc70905406747c61eec569b67e01028f5c07c59e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Release files / uniswap_poolspy_mcp-0.1.0-py3-none-any.whl
| Download URL | uniswap_poolspy_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74a5a3c6efd183223294b35d889b76168c6a8f1f932963ec516134b93d48defd
|
|
BLAKE2b-256 checksum How to use checksums |
63fc3b7931314f3d44c7571db14609b801ac07c98d8656f08418254b58f2bdd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Security for uniswap-poolspy-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.