npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pump-fun-mcp

v1.1.2

Published

Model Context Protocol server for the Pump SDK — 53 tools for token creation, trading, fees, analytics, and wallet management on Solana

Downloads

971

Readme

Pump Fun MCP Server

Model Context Protocol server for the Pump SDK — 55 tools for token creation, trading, fees, analytics, and wallet management on Solana.

Overview

The MCP server exposes the full Pump Fun SDK as an AI-agent-compatible service using the Model Context Protocol (v2024-11-05). Any MCP-compatible client (Claude Desktop, Cursor, VS Code Copilot, custom agents) can call these tools to interact with the Pump protocol on Solana.

Architecture

Client (Claude, Cursor, etc.)
    │ JSON-RPC over stdio
    ▼
┌─────────────────────────────┐
│   MCP Server (this package) │
│                             │
│  ┌─────────────────┐        │
│  │ Tool Handlers   │ 55 tools│
│  │ Resource Handlers│ 4 URIs │
│  │ Prompt Handlers  │ 5 flows│
│  └─────────────────┘        │
│           │                 │
│  ┌─────────────────┐        │
│  │  OnlinePumpSdk  │ lazy   │
│  └─────────────────┘        │
└──────────────┬──────────────┘
               │ RPC
               ▼
         Solana Mainnet

Tool Categories

| Category | Tools | Description | |----------|-------|-------------| | Wallet | 7 | Generate keypairs, vanity addresses, sign/verify messages, validate addresses | | Quoting | 8 | Buy/sell quotes, price impact, market cap, bonding curve summary, graduation progress | | Trading | 6 | Build buy/sell/create/migrate instructions, AMM swaps | | Fees | 8 | Fee tiers, breakdowns, creator vault, distribution, shareholder management | | Analytics | 7 | Bonding curve analysis, token info, creator profiles, graduation status | | AMM | 5 | Pool info, reserves, pricing, deposit/withdraw liquidity | | Social Fees | 6 | Fee sharing configuration, shareholder management, vault operations | | Metadata | 4 | Token metadata, off-chain URI resolution, mint details | | Token Incentives | 4 | Unclaimed tokens, current day earnings, volume stats, claim instructions |

Resources

| URI | Description | |-----|-------------| | solana://programs | Pump protocol program IDs | | solana://config | SDK version and configuration | | solana://keypair/{id} | Generated keypair (public info only) | | solana://address/{pubkey} | Address validation and type info |

Prompts

| Name | Description | |------|-------------| | create_token | Step-by-step token creation workflow | | buy_token | Buy tokens on bonding curve or AMM | | setup_fee_sharing | Configure fee sharing with shareholders | | check_portfolio | Analyze wallet's PumpFun portfolio | | graduation_check | Check token graduation status and progress |

Quick Start

Install

cd mcp-server
npm install
npm run build

Configure in Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "pump-fun": {
      "command": "node",
      "args": ["/path/to/pump-fun-sdk/mcp-server/dist/index.js"],
      "env": {
        "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
      }
    }
  }
}

Configure in VS Code / Cursor

{
  "mcp": {
    "servers": {
      "pump-fun": {
        "command": "node",
        "args": ["./mcp-server/dist/index.js"],
        "env": {
          "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
        }
      }
    }
  }
}

Development

npm run dev    # Run with tsx (hot reload)
npm run lint   # Type-check without emitting
npm test       # Run vitest

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | SOLANA_RPC_URL | https://api.mainnet-beta.solana.com | Solana RPC endpoint |

Security

  • Key zeroization: All keypair material is zeroized on server shutdown and after each operation
  • Private keys never exposed: Resource reads for keypairs only return public keys
  • Ed25519 signing: Uses @noble/curves/ed25519 (audited, pure JS)
  • Input validation: All tool inputs validated with Zod schemas
  • Lazy SDK: RPC connection only created when an SDK tool is actually called
  • No persistent storage: Keypairs exist only in server memory for the session duration

Project Structure

mcp-server/
├── src/
│   ├── index.ts              # Entry point (#!/usr/bin/env node)
│   ├── server.ts             # SolanaWalletMCPServer class
│   ├── types.ts              # ToolResult, ResourceResult, PromptResult, ServerState
│   ├── handlers/
│   │   ├── tools.ts          # ListTools + CallTool handlers
│   │   ├── resources.ts      # ListResources + ReadResource handlers
│   │   └── prompts.ts        # ListPrompts + GetPrompt handlers
│   ├── tools/
│   │   ├── index.ts          # ALL_TOOLS registry (55 tools)
│   │   ├── quoting.ts        # Buy/sell quotes, price impact
│   │   ├── trading.ts        # Instruction builders
│   │   ├── fees.ts           # Fee tiers, distribution
│   │   ├── analytics.ts      # Bonding curve, graduation
│   │   ├── wallet.ts         # Keypair generation, signing
│   │   ├── amm.ts            # AMM pool operations
│   │   ├── social-fees.ts    # Fee sharing
│   │   ├── token-incentives.ts
│   │   └── metadata.ts       # Token metadata
│   ├── resources/
│   │   ├── index.ts          # Resource router
│   │   └── keypair.ts        # Keypair resources
│   ├── prompts/
│   │   └── index.ts          # 5 prompt templates
│   └── utils/
│       ├── validation.ts     # Zod schemas
│       └── formatting.ts     # BN/SOL formatters
├── package.json
└── tsconfig.json

License

MIT