Sponsored by Deepsite.site

PumpFun MCP Server

Created By
15002567977 months ago
PumpFun MCP (Model Context Provider) Server 是一个基于大模型的上下文处理服务,用于处理和生成 PumpFun 协议相关的交易和查询请求。它作为智能中间层,能够理解用户意图并转换为相应的链上操作。
Content

PumpFun MCP Server

PumpFun MCP (Model Context Provider) Server 是一个基于大模型的上下文处理服务,用于处理和生成 PumpFun 协议相关的交易和查询请求。它作为智能中间层,能够理解用户意图并转换为相应的链上操作。

架构概览

graph TD
    Client[客户端] --> |HTTP POST| Server[MCP Server]
    Server --> |查询余额| Solana[Solana RPC]
    Server --> |生成交易| PumpFun[PumpFun SDK]

    subgraph MCP Server
        API[API 路由层] --> Handlers[处理器层]
        Handlers --> Services[服务层]
        Services --> SDK[PumpFun SDK]
    end

    subgraph 功能模块
        B1[余额查询] --> |SOL/SPL| API
        B2[交易生成] --> |Buy/Sell| API
    end

主要功能

  1. 余额查询

    • /balance/sol: 查询 SOL 余额
    • /balance/spl: 查询 SPL 代币余额
  2. 交易生成

    • /pumpfun/buy: 生成购买代币交易
    • /pumpfun/sell: 生成出售代币交易

技术栈

  • Runtime: Bun
  • Framework: Express
  • Blockchain: Solana
  • SDK: PumpFun SDK

安装依赖

bun install

运行服务

bun run index.ts

API 文档

查询 SOL 余额

POST /balance/sol
{
    "type": "balance/sol",
    "payload": {
        "userAddress": "Solana地址"
    }
}

查询 SPL 代币余额

POST /balance/spl
{
    "type": "balance/spl",
    "payload": {
        "userAddress": "Solana地址",
        "mint": "代币Mint地址"
    }
}

生成购买交易

POST /pumpfun/buy
{
    "type": "pumpfun/buy",
    "payload": {
        "userAddress": "买方地址",
        "mint": "代币Mint地址",
        "buyAmountHumanReadableSol": 数量
    }
}

生成出售交易

POST /pumpfun/sell
{
    "type": "pumpfun/sell",
    "payload": {
        "userAddress": "卖方地址",
        "mint": "代币Mint地址",
        "sellAmountHumanReadableToken": 数量,
        "slippage": 滑点百分比
    }
}

This project was created using bun init in bun v1.2.15. Bun is a fast all-in-one JavaScript runtime.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
Serper MCP ServerA Serper MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Amap Maps高德地图官方 MCP Server
CursorThe AI Code Editor
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。