
Pump SDK MCP Server
io.github.nirholas由 GitHub 账号 nirholas 发布v1.0.2更新于 Oct 24, 2026
Build extend and maintain pump - Token creation buying selling migration fee collection
概览
本地 MCP 服务器,封装 Solana 上的 Pump SDK:构建、报价并查询 Pump.fun 代币发行、联合曲线交易、AMM 池与创作者费用。
- 可以做什么
- 读取 Pump 协议状态:联合曲线、价格、市值、毕业进度、AMM 池与全局配置
- 离线报价买入与卖出,含手续费、有效价格与价格冲击
- 构建代币创建、联合曲线与 AMM 交易、费用分成与费用划转的指令
- 查询与领取创作者费用和交易量激励,并推导 Pump 程序地址
- 解码交易中的 Pump 事件,并生成靓号 mint 地址
- 适用场景
- 适合需要查看或准备 Pump.fun / Solana 代币操作的场景:查询某代币的曲线与毕业状态、在下单前估算交易成本,或为开发流程组装发行与费用分成指令。
- 运行要求
- 通过 npx 以 stdio 在本地运行(npm 包 pump-fun-mcp);使用 SDK 需 Node.js 及 Solana 相关依赖包。未声明任何环境变量或 API 密钥。读取链上状态需要 Solana RPC 连接;发送交易需要用户自行提供有余额的钱包与签名方式。
安装
在 SourceWeft 中
- 打开 控制台中的 Pump SDK MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Pump SDK
TypeScript SDK for the Pump protocol on Solana — token creation, bonding curves, AMM pools, fee sharing, and volume rewards.
[npm version] [license] [downloads] [TypeScript] [Solana]
What is Pump SDK?
Pump SDK is the community TypeScript SDK for the Pump.fun protocol on Solana. It provides offline-first instruction builders for every on-chain operation — token creation, bonding curve trading, AMM pool management, tiered fee configuration, creator fee sharing, volume-based token incentives, and social referral fees.
The SDK never sends transactions itself. It returns TransactionInstruction[] that you compose into transactions with your preferred signing and sending strategy.
📋 Table of Contents
- Quick Start
- The
pumpCLI - 50 Runnable Examples
- Usage Examples
- API Reference
- On-Chain Programs
- Configuration
- Error Handling
- FAQ
- Architecture
- Contributing
- License
- Acknowledgments
🚀 Live Demos & Resources
- Token Launchpad: launch and trade real Pump tokens from your browser, built entirely on this SDK
- SDK Docs & Live Dashboards (trades, launches, vanity: sdk.pumpk.it/live)
- pump.fun UI Template
- DeFi Agents API
- PumpKit
- PumpKit Site
- Telegram PumpFun Github Claim Tracker Bot
- Pump.fun GitHub Claims — dedicated repository · Product and notification rules
A GitHub social-fee withdrawal is real on-chain activity, not automatic proof that a developer created or endorses a coin. Claim cards distinguish verified repository/creator-wallet relationships, identity mismatches, unverified links, and unresolved pooled withdrawals. See the notification rules above.
- Telegram PumpFun Graduation/Migration Tracker Bot
- Pumpfun Claim Tracker (best bot — currently offline while building)
📈 Proof & Virality
Proof the GitHub Claim Tracker bot is profitable to monitor
→ View tweet
Went mega viral
→ View tweet
just shipped a real-time PumpFun intelligence bot on Telegram
17 commands. zero cost. fully on-chain.
/price→ instant token price & bonding curve
/monitor→ live token launch feed
/cto→ creator takeover alerts
/watch→ wallet fee claim tracking
/quote→ buy/sell estimates
/graduated→ AMM graduation status
/alerts→ customize your notificationsall powered by the open-source pump-fun-sdk
The post that started it all
→ View tweet
Looking for more? Check out PumpKit 💊💚
Open-source framework for building PumpFun Telegram bots on Solana. Claim monitors, channel feeds, group trackers, whale alerts — build your own or use ours.
🚀 Quick Start
Installation
Peer Dependencies
The SDK requires these Solana packages (install them if not already present):
Minimal Example
💻 The pump CLI
The SDK ships with a binary. No wallet, no API key, and no configuration are needed for anything that reads the chain.
Or without installing anything: npx -p @nirholas/pump-sdk pump curve <mint>.
Safe by construction. Reads never load a keypair. Every trade is simulated before anything is sent, prints exactly what is about to happen, and waits for an explicit yes. --simulate sends nothing; --yes is the scripting escape hatch; a piped command with neither refuses rather than spending funds unattended.
Scriptable. Every command takes --json and writes nothing else to stdout in that mode:
Full reference: docs/cli.md. Ten-minute walkthrough: tutorial 45.
🧪 50 Runnable Examples
The repo ships fifty tested, runnable examples covering the entire SDK surface. Each one runs with a single command, exports its logic for offline testing, and has a matching step-by-step tutorial.
Full catalog: docs/examples.md · Browse: examples/ · Tutorials: tutorials/examples/
📖 Usage Examples
Create a Token
Warning: Do NOT use
createInstruction— it is deprecated (v1). Always usecreateV2Instruction.
Create a Holder-Reward Token
Set holderReward: true to direct creator fees to the protocol-derived holder
rewards PDA. Pump.fun distributes those fees to holders automatically; holders
do not need to submit claims.
For an atomic launch and initial buy, pass the same flag to
createV2AndBuyInstructions; the SDK routes the buy through
creatorVaultPda(holderRewardsPda(mint)). Run the complete broadcast-free demo
with npm run example 51.
New cashback launches are deprecated and rejected. Existing cashback coins remain tradeable and accrued cashback remains claimable.
Create a Token With a ...pump Vanity Mint
Mint addresses ending in pump (like the ones on pump.fun) are produced by
grinding keypairs off-chain. The SDK exposes this as a first-class helper —
swap Keypair.generate() for generateVanityMint() and the rest of the
flow is unchanged.
Supports prefix, suffix, caseInsensitive, maxAttempts, onProgress,
and AbortSignal. For patterns longer than 4 characters, use the
multi-threaded Rust generator at rust/. See
Tutorial 13: Vanity Mints for the full
end-to-end flow and a runnable devnet example.
Buy Tokens on the Bonding Curve
Note:
fetchBuyStateauto-detects whether the token uses SPL Token or Token-2022 and returnstokenProgramaccordingly. Always spread...buyStateintobuyInstructionsto ensure the correct program is used.
Sell Tokens
Note:
fetchSellStatereturnstokenProgram(auto-detected from the mint). Always spread...sellStateintosellInstructions.
Check Graduation Progress
Set Up Fee Sharing
Warning: Shares must total exactly 10,000 BPS. The SDK throws
InvalidShareTotalErrorotherwise. Maximum 10 shareholders.
📚 API Reference
See docs/api-reference.md for the complete API documentation with full TypeScript signatures, parameters, and examples.
Core Classes
Bonding Curve Functions
Analytics Functions
Fee Functions
October 2026 Program Upgrade (3.0.0)
Program guides for each are in docs/pump-official/docs/instructions; the SDK side is in docs/api-reference.md, docs/amm-trading.md and docs/bonding-curve-math.md. Upgrading from 2.x: see the 3.0.0 entry in CHANGELOG.md.
Token Incentive Functions
🔗 On-Chain Programs
🔧 Configuration
Constructor
The SDK has no required environment variables. You configure it via the constructor:
Key Constants
⚠️ Error Handling
The SDK defines typed errors for fee sharing validation:
Common Pitfalls
Warning: Never use JavaScript
numberfor token or lamport amounts. Always useBNfrom bn.js. JavaScript numbers lose precision above 2^53.
Warning: Check
bondingCurve.completebefore trading. Iftrue, the token has graduated to AMM — useammBuyInstruction/ammSellInstructioninstead.
Warning:
createInstructionis deprecated. UsecreateV2Instructionfor all new token creation.
❓ FAQ
Q: Do I need an RPC connection to use the SDK?
No. PumpSdk (and the PUMP_SDK singleton) builds instructions offline. Only use OnlinePumpSdk when you need to fetch on-chain state.
Q: How do I know if a token has graduated to AMM?
Check bondingCurve.complete === true or use sdk.isGraduated(mint). Graduated tokens trade on PumpAMM, not the bonding curve.
Q: What is slippage in buy/sell instructions?
A decimal fraction (e.g., 0.05 = 5%). The SDK adjusts maxSolCost (buy) or minSolOutput (sell) to protect against price movement.
Q: Why do amounts use BN instead of number?
Solana token amounts (lamports, token units) regularly exceed JavaScript's safe integer limit (2^53). BN provides arbitrary-precision arithmetic.
Q: What's the difference between Pump and PumpAMM programs? Pump handles the bonding curve phase (creation → graduation). PumpAMM handles post-graduation trading with constant-product AMM pools.
Q: How does fee sharing work? Token creators can split their creator fees among up to 10 shareholders. Each shareholder gets a share in basis points (1/10,000). The total must equal exactly 10,000 BPS (100%).
Q: What is Mayhem Mode?
A special token creation mode with randomized bonding curve parameters. Tokens created with mayhemMode: true have unpredictable pricing dynamics.
Q: Can I use the SDK in the browser? Yes. The SDK has no Node.js-specific dependencies. The ESM build works in modern browsers with a bundler.
🏗️ Architecture
See docs/architecture.md for detailed system design, data flow diagrams, and module explanations.
🤝 Contributing
We welcome contributions! See CONTRIBUTING.md for:
- Development setup
- Branch naming and commit conventions
- Testing requirements
- PR process
📄 License
🙏 Acknowledgments
- Pump.fun — The protocol this SDK interfaces with
- Solana Labs — Blockchain infrastructure and
@solana/web3.js - Coral (Anchor) — IDL-based program interaction via
@coral-xyz/anchor - bn.js — Arbitrary-precision arithmetic for financial math
- @pump-fun/pump-swap-sdk — AMM swap integration
Documentation
Full documentation site: https://sdk.pumpk.it
- Getting started covers install and first run.
- Examples has copy-paste snippets.
Star History
Support the project
If pump-fun-sdk saves you time, star it on GitHub. Stars are how other developers and AI agents find the repositories worth trusting, and they cost you one click.
Know someone who would use it? Post on X · Share on Bluesky · Share on LinkedIn · Submit to Hacker News · Share on Reddit
Built for AI agents too
Coding agents and LLM tooling can read this repo directly: AGENTS.md, llms.txt, llms-full.txt. Point an agent at https://github.com/nirholas/pump-fun-sdk and it has the context it needs.
More from the same author
- All repositories by nirholas: the full catalog, grouped by topic
- three.ws: the platform for 3D AI agents with Solana wallets, a skill marketplace and x402 payments
- Questions or ideas: open an issue or start a discussion
Contributors
来源:README.md,提交 f5bf85b
工具
0版本历史
1- v1.0.2最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。