uniswap-poolspy-mcp
Uniswap PoolSpy MCP 服务器
MCP 服务器可跟踪 Uniswap 上九个区块链网络(以太坊、Base、Optimism、Arbitrum、Polygon、BNB 智能链 (BSC)、Avalanche、Celo 和 Blast)中新创建的流动性池,为 DeFi 分析师、交易员和开发人员提供实时数据。
特征
监控 9 个区块链网络中的 Uniswap V3 池创建。
可定制查询新池的时间范围和结果限制。
支持按时间戳、交易数量、交易量或 TVL 排序。
Related MCP server: uniswap-trader-mcp
先决条件
Python 3.10 或更高版本
uv用于包管理
MCP 兼容环境(例如 Claude Desktop)可实现全部功能
安装
克隆存储库:
git clone https://github.com/yourusername/uniswap-poolspy-mcp.git cd uniswap-poolspy-mcp设置环境:如果尚未安装
uv,请安装:curl -LsSf https://astral.sh/uv/install.sh | sh安装依赖项:使用
uv从pyproject.toml同步依赖项:uv sync配置 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 分钟内以太坊上的新矿池”
“按容量排序列出基地上的池,限制为 50 个”
“过去一小时内,Polygon 上创建了哪些矿池,按 TVL 排序?”
该工具接受以下参数:
chain:区块链网络(例如“以太坊”、“基础”、“乐观”)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 toolget_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
Scored across 1 tool
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.
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.
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.
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.
Maintenance
Related MCP Connectors
Crypto market intelligence, token rug-checks, and wallet verification in one MCP server.
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
23-in-1 MCP server: EVM tx simulator, funding rate arb, macro radar, swap calldata & security.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that tracks newly created liquidity pools on Pancake Swap.110MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.40MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that delivers real-time token prices from Uniswap V3 across multiple chains.3MIT
- AlicenseAqualityDmaintenanceAn MCP server that tracks and analyzes DEX liquidity pools to power intelligent DeFi agents and automated strategies.12MIT