The Liquidity Pools MCP server is a specialized tool that tracks and analyzes DEX liquidity pools across blockchain networks. It helps power intelligent DeFi agents and automated trading strategies by retrieving and formatting detailed liquidity pool data.
git clone https://github.com/kukapay/liquidity-pools-mcp.git
cd liquidity-pools-mcp
Using uv
(recommended method):
uv sync
Alternatively, using pip
:
pip install mcp[cli]
uv run mcp install main.py --name "Liquidity Pools"
Your configuration file should look similar to this:
{
"mcpServers": {
"Liquidity Pools": {
"command": "uv",
"args": [ "--directory", "/path/to/liquidity-pools-mcp", "run", "main.py" ]
}
}
}
Make sure to replace /path/to/liquidity-pools-mcp
with your actual installation path.
The MCP server can be used through the MCP Inspector or integrated with clients like Claude Desktop to call the get_liquidity_pools
tool.
To fetch liquidity pools for a specific token, use a prompt like:
Fetch the liquidity pools for token 0xe6DF05CE8C8301223373CF5B969AFCb1498c5528 on chain bsc.
The server will return data in a markdown table format:
| Dex ID | Pair Address | Base/Quote | Price USD | 24h Buys/Sells | 24h Volume | Liquidity USD | Market Cap |
|-------------|-------------------------------------------|------------|-----------|----------------|------------|---------------|------------|
| pancakeswap | 0x123...abc | CAKE/BUSD | 2.45 | 150/100 | 500000 | 1000000 | 2000000 |
| apeswap | 0x456...def | CAKE/BNB | 2.43 | 80/50 | 300000 | 800000 | 1900000 |
**Total Liquidity USD**: 1800000
This provides a comprehensive overview of the token's liquidity across different decentralized exchanges, helping you make informed trading or investment decisions.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "Liquidity-Pools" '{"command":"uv","args":["--directory","/path/to/liquidity-pools-mcp","run","main.py"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"Liquidity Pools": {
"command": "uv",
"args": [
"--directory",
"/path/to/liquidity-pools-mcp",
"run",
"main.py"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"Liquidity Pools": {
"command": "uv",
"args": [
"--directory",
"/path/to/liquidity-pools-mcp",
"run",
"main.py"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect