PancakeSwap PoolSpy MCP Server

PancakeSwap PoolSpy MCP Server

Real-time tracking of new PancakeSwap pools for DeFi analytics.

6
Stars
4
Forks
6
Watchers
3
Issues
PancakeSwap PoolSpy MCP Server provides a Model Context Protocol-compatible service for monitoring newly created liquidity pools on PancakeSwap. It offers real-time analytics including pool address, tokens, creation timestamp, volume, and total value locked. Users can customize queries for time range and results count, making it valuable for traders, analysts, and developers seeking up-to-date DeFi insights. The server is designed for easy deployment and integration via Smithery or manual setup.

Key Features

Tracks newly created PancakeSwap liquidity pools in real-time
Customizable query parameters for time range and pool count
Detailed pool metrics: address, tokens, creation time, block number, transaction count, volume, TVL
Integration with The Graph API
MCP (Model Context Protocol) server implementation
Easy installation via Smithery or manual setup
Supports command-line interface
CLI tool for querying pools
Environment variable support for API keys
Comprehensive usage examples and prompts

Use Cases

Monitoring DeFi markets for new liquidity pool opportunities
Supporting real-time trading strategies based on new pool creation
Enabling automated alerts for newly listed tokens on PancakeSwap
Providing data for analytics dashboards and DeFi research
Assisting developers building DeFi tracking tools
Enhancing AI models with live DeFi context inputs
Early detection of potentially high-yield pools
Auditing new liquidity pools for security or compliance
Generating custom DeFi reports
Facilitating market intelligence for liquidity providers

README

PancakeSwap PoolSpy MCP Server

An MCP server that tracks newly created liquidity pools on Pancake Swap, providing real-time data for DeFi analysts, traders, and developers.

License Python smithery badge

Features

  • Real-Time Pool Tracking: Fetches pools created within a specified time range (default: 5 minutes).
  • Customizable Queries: Adjust the time range (in seconds) and the number of pools returned (default: 100).
  • Detailed Metrics: Includes pool address, tokens, creation timestamp, block number, transaction count, volume (USD), and total value locked (USD).

Prerequisites

  • Python 3.10+: Ensure Python is installed on your system.
  • The Graph API Key: Obtain an API key from The Graph to access the PancakeSwap subgraph.

Installation

Installing via Smithery

To install PancakeSwap PoolSpy for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @kukapay/pancakeswap-poolspy-mcp --client claude
  1. Clone the Repository:

    bash
    git clone https://github.com/kukapay/pancakeswap-poolspy-mcp.git
    cd pancakeswap-poolspy-mcp
    
  2. Install Dependencies: Install the required Python packages using uv:

    bash
    uv add mcp[cli] httpx dotenv
    
  3. Client Configuration

    json
    {
      "mcpServers": {
        "PancakeSwap-PoolSpy": {
          "command": "uv",
          "args": ["--directory", "path/to/pancakeswap-poolspy-mcp", "run", "main.py"],
          "env": {
            "THEGRAPH_API_KEY": "your api key from The Graph"
          }
        }
      }
    }
    

Usage

Running the Server

Run the server in development mode to test it locally:

bash
mcp dev main.py

This launches the MCP Inspector, where you can interact with the get_new_pools_bsc tool.

Available Tool

get_new_pools_bsc(time_range_seconds: int = 300, limit: int = 100)

Fetches a list of newly created PancakeSwap pools on BNB Smart Chain.

  • Parameters:

    • time_range_seconds (int): Time range in seconds to look back for new pools. Default is 300 seconds (5 minutes).
    • limit (int): Maximum number of pools to return. Default is 100 pools.
  • Returns: A formatted string listing pool details or an error message if the query fails.

  • Example Outputs:

    • Default (last 5 minutes, up to 100 pools):

      bash
      get_new_pools_bsc()
      
      Newly Created Trading Pools (Last 5 Minutes, Limit: 100):
      Pool Address: 0x1234...5678
      Tokens: WETH/USDC
      Created At: 2025-03-16 12:00:00 UTC
      Block Number: 12345678
      Transaction Count: 10
      Volume (USD): 1234.56
      Total Value Locked (USD): 5678.90
      
      Pool Address: 0x9abc...def0
      Tokens: CAKE/BNB
      Created At: 2025-03-16 12:01:00 UTC
      Block Number: 12345679
      Transaction Count: 5
      Volume (USD): 789.12
      Total Value Locked (USD): 3456.78
      
    • Custom (last 10 minutes, up to 50 pools):

      bash
      get_new_pools(600, 50)
      
      Newly Created Trading Pools (Last 10 Minutes, Limit: 50):
      [pool details...]
      

Example Prompts:

  • "list newly created PancakeSwap pools from the last 1 hours."
  • "Display PancakeSwap pools created within the last 2 minutes."

License

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

Star History

Star History Chart

Repository Owner

kukapay
kukapay

User

Repository Details

Language Python
Default Branch main
Size 16 KB
Contributors 2
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

Python
89.21%
Dockerfile
10.79%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Uniswap PoolSpy MCP Server

    Uniswap PoolSpy MCP Server

    Tracks newly created Uniswap V3 liquidity pools across nine blockchain networks in real time.

    Uniswap PoolSpy MCP Server is an MCP-compliant server designed to monitor and provide real-time data on newly created liquidity pools on Uniswap V3 across nine popular blockchain networks, including Ethereum, Base, and Arbitrum. The server allows users to customize their queries by time range, sorting fields, and result limits, making it suitable for DeFi analysis, trading, and development. It integrates directly with MCP environments such as Claude Desktop, supporting seamless plugin installation and natural language queries. The tool leverages The Graph API for fetching on-chain data and offers easy configuration for discovery by client applications.

    • 6
    • MCP
    • kukapay/uniswap-poolspy-mcp
  • PumpSwap MCP Server

    PumpSwap MCP Server

    MCP server for real-time Solana token trades and pool data.

    PumpSwap MCP Server allows AI agents to interact with the PumpSwap DEX on Solana for automated, real-time token swaps and on-chain trading operations. It exposes commands for buying and selling tokens, querying token prices, and retrieving liquidity pool information. Designed for secure integration with Solana accounts, it enables customizable slippage and transaction fees while supporting context-driven, AI-issued commands. The server operates as a bridge between AI agents and the PumpSwap protocol, facilitating seamless trading and data queries.

    • 5
    • MCP
    • kukapay/pumpswap-mcp
  • TheGraph MCP Server

    TheGraph MCP Server

    Empowering AI agents with indexed blockchain data from The Graph

    TheGraph MCP Server provides AI agents with seamless access to indexed blockchain data through The Graph protocol. It offers tools for fetching subgraph schemas and executing custom GraphQL queries, making blockchain data exploration efficient for AI-powered applications. The server is tailored for easy integration as a Model Context Protocol (MCP) server, enabling intelligent context-aware data retrieval.

    • 7
    • MCP
    • kukapay/thegraph-mcp
  • Bitcoin MCP Server

    Bitcoin MCP Server

    Real-time Bitcoin blockchain data server for MCP clients.

    Provides tools to deliver real-time Bitcoin blockchain data for use with Model Context Protocol (MCP) clients. Offers specialized endpoints for querying blockchain addresses, transactions, UTXOs, and block information by interfacing with the mempool.space API. Supports easy installation and integration with popular MCP clients, enabling seamless access to blockchain analytics.

    • 0
    • MCP
    • JamesANZ/bitcoin-mcp
  • Whale Tracker MCP Server

    Whale Tracker MCP Server

    Monitor and analyze large cryptocurrency transactions using MCP and Whale Alert API integration.

    Whale Tracker MCP Server implements the Model Context Protocol to provide real-time monitoring and analysis of large-scale cryptocurrency transactions. Built in Python, it integrates seamlessly with the Whale Alert API and exposes tools, resources, and prompt templates to MCP-compatible clients such as Claude Desktop. This solution enables users to fetch recent whale transactions, retrieve detailed information, and leverage contextual data directly within their LLM-powered workflows.

    • 44
    • MCP
    • kukapay/whale-tracker-mcp
  • Yahoo Finance MCP Server

    Yahoo Finance MCP Server

    A simple MCP server to access Yahoo Finance data via standardized tools.

    Yahoo Finance MCP Server provides a Model Context Protocol (MCP) server enabling seamless access to financial data from Yahoo Finance. It offers a set of standardized tools to fetch stock information, news, historical prices, and perform advanced searches. The server can be deployed using either Docker or uv with straightforward configuration. It is designed to easily integrate with MCP-compatible AI environments and workflows.

    • 68
    • MCP
    • narumiruna/yfinance-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results