DexScreener MCP server

Integrates with DexScreener API to track and analyze DEX liquidity pools across blockchain networks, providing real-time pool data including prices, volumes, liquidity amounts, and market capitalizations for DeFi trading strategies and automated trading bots.
Back to servers
Setup instructions
Provider
kukapay
Release date
Aug 20, 2025
Stats
2 stars

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.

Features

  • Liquidity Pool Data Retrieval: Fetches pool details for specified chain IDs and token addresses using DexScreener API
  • Formatted Data Output: Presents pool data in clear markdown tables with key metrics
  • Total Liquidity Calculation: Computes the aggregate liquidity in USD across all pools
  • Analytical Guidance: Provides structured analysis of liquidity distribution

Prerequisites

  • Python 3.10 or higher
  • uv: Recommended for dependency management

Installation

Clone and Set Up

git clone https://github.com/kukapay/liquidity-pools-mcp.git
cd liquidity-pools-mcp

Install Dependencies

Using uv (recommended method):

uv sync

Alternatively, using pip:

pip install mcp[cli]

Installing to Claude Desktop

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.

Usage

The MCP server can be used through the MCP Inspector or integrated with clients like Claude Desktop to call the get_liquidity_pools tool.

Example Query

To fetch liquidity pools for a specific token, use a prompt like:

Fetch the liquidity pools for token 0xe6DF05CE8C8301223373CF5B969AFCb1498c5528 on chain bsc.

Example Response

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.

How to install this MCP server

For Claude Code

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.

For Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.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

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later