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

pumpfun-climcp

v1.0.0

Published

Pump.fun MCP server and CLI - Trade tokens on Pump.fun directly from terminal or Claude

Readme

Pump.fun MCP Server

An MCP (Model Context Protocol) server that enables Claude to trade tokens on Pump.fun directly. Built with Hono and the official @pump-fun/pump-sdk.

Live Server: https://pumpfun-mcp.com

Features

  • Create tokens - Launch new tokens on Pump.fun with custom metadata
  • Buy tokens - Purchase tokens using SOL with configurable slippage
  • Sell tokens - Sell tokens for SOL (full balance or partial)
  • Token info - Get bonding curve data + DexScreener market data
  • Search tokens - Find tokens by name, symbol, or address via DexScreener
  • Account balance - Check SOL and token balances

Quick Start

Terminal CLI (Recommended)

Install and use the CLI directly from your terminal:

npm install -g pumpfun-climcp
pumpfun-cli

Or use locally:

npm install pumpfun-climcp
npx pumpfun-cli

See CLI_INSTALL.md for detailed instructions.

Connect via Claude

  1. Open Claude Settings → MCP Servers → Add Server
  2. Enter: https://pumpfun-mcp.com/mcp
  3. Authenticate with your Solana wallet address and private key

Self-Host MCP Server

git clone https://github.com/angrymouse/pumpfun-mcp
cd pumpfun-mcp
npm install

Create .env:

HELIUS_RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_KEY
PORT=9241
BASE_URL=http://localhost:9241

Run:

npm run build
npm start

API Reference

MCP Tools

| Tool | Description | |------|-------------| | get-token-info | Get token info with bonding curve + DexScreener data | | create-token | Create a new Pump.fun token | | buy-token | Buy tokens with SOL | | sell-token | Sell tokens for SOL | | get-account-balance | Check SOL and token balances | | search-tokens | Search tokens via DexScreener |

HTTP Endpoints

| Method | Path | Description | |--------|------|-------------| | POST | /mcp | MCP protocol endpoint | | GET | /authorize | OAuth authorization page | | POST | /authorize | Process authorization | | POST | /token | OAuth token exchange | | GET | /.well-known/oauth-authorization-server | OAuth discovery |

Authentication

  • Client ID: Your Solana wallet address
  • Client Secret: Your private key (base58 encoded)

The server validates that the private key derives to the provided wallet address.

Architecture

src/
├── index.ts          # Hono server + MCP setup
├── sdk.ts            # Pump.fun SDK initialization
├── utils.ts          # Solana utilities
├── pages.ts          # HTML pages
├── dexscreener.ts    # DexScreener API client
└── operations/
    ├── get-info.ts   # Token info + DexScreener
    ├── buy.ts        # Buy operations
    ├── sell.ts       # Sell operations
    └── create.ts     # Token creation

Security

  • Private keys are never stored to disk
  • Keys exist only in memory during active sessions
  • Rate limiting on auth endpoints (10 req/min)
  • Automatic cleanup of expired tokens
  • Generic error messages prevent credential enumeration

Dependencies

License

MIT

Links