Skip to main content
Glama

liquidity-pools-mcp

by kukapay

Liquidity Pools MCP Server

An MCP server that tracks and analyzes DEX liquidity pools to power intelligent DeFi agents and automated strategies.

GitHub License Python Version Status

Features

  • Liquidity Pool Data Retrieval: Fetches liquidity pool details for a specified chain ID and token address using the DexScreener API.
  • Markdown Table Output: Presents pool data in a clear markdown table with columns for Dex ID, Pair Address, Base/Quote Token Symbols, Price USD, 24h Buy/Sell Transactions, 24h Volume, Liquidity USD, and Market Cap.
  • Total Liquidity Calculation: Computes and displays the total liquidity in USD across all pools.
  • Prompt Guidance: Includes a prompt to guide users on analyzing liquidity pool data, including pool count, table output, total liquidity, and notable metrics.

Prerequisites

  • Python 3.10 or higher.
  • uv: Recommended for managing dependencies (documentation).

Installation

  1. Clone the Repository:
    git clone https://github.com/kukapay/liquidity-pools-mcp.git cd liquidity-pools-mcp
  2. Install Dependencies:Using uv (recommended for faster dependency management):
    uv sync
    Or using pip:
    pip install mcp[cli]
  3. Installing to Claude Desktop: Install the server as a Claude Desktop application:
    uv run mcp install main.py --name "Liquidity Pools"
    Configuration file as a reference:
    { "mcpServers": { "Liquidity Pools": { "command": "uv", "args": [ "--directory", "/path/to/liquidity-pools-mcp", "run", "main.py" ] } } }
    Replace /path/to/liquidity-pools-mcp with your actual installation path.

Usage

Use the MCP Inspector or integrate with a client (e.g., Claude Desktop) to call the get_liquidity_pools tool.

Example Prompt:

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

Example Output:

| 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

License

This project is licensed under the MIT License. See the LICENSE file for details.

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

An MCP server that tracks and analyzes DEX liquidity pools to power intelligent DeFi agents and automated strategies.

  1. Features
    1. Prerequisites
      1. Installation
        1. Usage
          1. License

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              An MCP server implementation that enables access to DexScreener API data, providing real-time information on DEX pairs, token profiles, and market statistics across multiple blockchains.
              Last updated -
              7
              6
              JavaScript
              The Unlicense
            • -
              security
              A
              license
              -
              quality
              An MCP server that tracks newly created liquidity pools on Uniswap across nine blockchain networks.
              Last updated -
              1
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
              Last updated -
              7
              12
              JavaScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              An MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.
              Last updated -
              20
              141
              Python
              GPL 3.0
              • Apple
              • Linux

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/kukapay/liquidity-pools-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server