Allows querying Uniswap pools/pairs on the Ethereum blockchain by token address, retrieving details such as volume, liquidity, and fees for V2, V3, and V4 pools.
References GitHub for repository access and license information, with the MCP server code hosted and available at a GitHub repository.
Formats query results as markdown tables and text summaries, providing structured outputs for pool data including token pairs, addresses, fee tiers, and financial metrics.
Uniswap Pools MCP
An MCP server for querying Uniswap pools/pairs by token address, delivering clean, structured results for easy integration and analysis.
Features
- Query Uniswap Pools/Pairs:
- Fetch V2, V3, and V4 pools/pairs for a given token address.
- Retrieve specific pool/pair details by version (
v2
,v3
,v4
) and ID.
- Formatted Output:
- Returns data in markdown tables for combined pool queries.
- Provides markdown text summaries for specific pool/pair queries, including token addresses.
Installation
Prerequisites
- Python: Version 3.10 or higher.
- uv: A Python package manager (recommended for dependency management).
- The Graph API Key: Required for querying Subgraphs. Obtain one from The Graph.
Setup
- Clone the Repository:
- Install Dependencies:
- Installing to Claude Desktop: Install the server as a Claude Desktop application:Configuration file as a reference:Replace
/path/to/uniswap-pools-mcp
with your actual installation path, andthegraph-api-key
with your API key from The Graph.
Usage
The server provides several tools to query Uniswap pool/pair data.
Tools
- Get All Pools/Pairs for a Token:
- Description: Queries all Uniswap V2, V3, and V4 pools/pairs for a given token address.
- Parameters:
token_address
(str): Ethereum address of the token (e.g.,0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
for USDC).
- Output: Markdown table with columns: Version, ID, Pair, Fee Tier, Volume USD, Liquidity/ReserveUSD, Fees USD.
- Example:Prompt:Output:
- Get Specific Pool/Pair by Version and ID:
- Description: Queries a specific Uniswap pool/pair by version (
v2
,v3
, orv4
) and ID. - Parameters:
version
(str): Uniswap version (v2
,v3
, orv4
).pool_id
(str): Ethereum address of the pool or pair (e.g.,0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc
).
- Output: Markdown text with details: Version, ID, Pair, Token0 Address, Token1 Address, Fee Tier, Volume USD, Liquidity/ReserveUSD, Fees USD.
- Example:Prompt:Output:
- Description: Queries a specific Uniswap pool/pair by version (
License
This project is licensed under the MIT License. See the LICENSE file for details.
An MCP server for querying Uniswap pools/pairs by token address, delivering clean, structured results for easy integration and analysis.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Updated to use Coin Cap API v3Last updated -324TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that tracks newly created liquidity pools on Uniswap across nine blockchain networks.Last updated -1PythonMIT License
- -securityAlicense-qualityAn MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.Last updated -712JavaScriptMIT License
- -securityAlicense-qualityAn MCP server providing a range of cryptocurrency technical analysis indicators and strategies.Last updated -64JavaScriptMIT License