About PumpFun MCP Server
PumpFun MCP Server is a service for PumpFun-related queries and transaction generation on Solana. It provides endpoints for SOL and SPL balance queries and for generating buy and sell transactions.
Key features
- 01Query SOL balances
- 02Query SPL token balances
- 03Generate PumpFun buy transactions
- 04Generate PumpFun sell transactions
Use cases
- 01Check a user's SOL balance
- 02Check an SPL token balance
- 03Prepare a PumpFun token purchase transaction
- 04Prepare a PumpFun token sale transaction
MCP support
The README describes HTTP POST API routes for balance queries and transaction generation, but does not specify MCP protocol tools or transport.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEPumpFun 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
主要功能
-
余额查询
/balance/sol: 查询 SOL 余额/balance/spl: 查询 SPL 代币余额
-
交易生成
/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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.