agentis-dev/Pump-Fun-MCP
If you are the rightful owner of Pump-Fun-MCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that provides live Pump.fun data and analytics, offering real-time information about tokens, trading activity, market metrics, and more from the Solana-based Pump.fun platform.
get-top-tokens
Get the top Pump.fun tokens by market capitalization.
get-king-of-hill
Get King of the Hill tokens currently competing in the 30-35k market cap range.
get-token-metrics
Get detailed metrics for a specific token.
get-new-tokens
Get recently created Pump.fun tokens.
get-token-holders
Get top holders for a specific token.
get-trade-analytics
Get trading analytics for a specific token.
search-tokens
Search for tokens by name or symbol.
Pump.fun MCP Server
A Model Context Protocol (MCP) server that provides live Pump.fun data and analytics. Get real-time information about tokens, trading activity, market metrics, and more from the Solana-based Pump.fun platform.
๐ Features
- Live Token Data: Get real-time information about Pump.fun tokens
- Market Analytics: Trading volume, price changes, and market metrics
- King of the Hill: Track tokens in the competitive 30-35k market cap range
- Token Discovery: Find new tokens and search by name/symbol
- Holder Analysis: View top token holders and distribution
- Trading Analytics: Comprehensive trade data with time periods
- No Mock Data: Built to use live APIs (currently using demo data structure)
๐ ๏ธ Installation
Prerequisites
- Node.js 18+
- npm or yarn
Install Dependencies
cd pump-fun-mcp
npm install
Build the Project
npm run build
๐โโ๏ธ Usage
Running with Claude Desktop
Add the following configuration to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"pump-fun-mcp": {
"command": "node",
"args": ["path/to/pump-fun-mcp/dist/index.js"],
"env": {
"PUMPPORTAL_API_KEY": "your-api-key-here",
"BITQUERY_API_KEY": "your-bitquery-key-here"
}
}
}
}
Running with npx
npx @agentis/pump-fun-mcp
Development Mode
npm run dev
๐ง Available Tools
get-top-tokens
Get the top Pump.fun tokens by market capitalization.
- Parameters:
limit
(optional, default: 10, max: 50)
get-king-of-hill
Get King of the Hill tokens currently competing in the 30-35k market cap range.
get-token-metrics
Get detailed metrics for a specific token.
- Parameters:
tokenAddress
(required) - The token mint address
get-new-tokens
Get recently created Pump.fun tokens.
- Parameters:
limit
(optional, default: 20, max: 100)
get-token-holders
Get top holders for a specific token.
- Parameters:
tokenAddress
(required) - The token mint addresslimit
(optional, default: 10, max: 50)
get-trade-analytics
Get trading analytics for a specific token.
- Parameters:
tokenAddress
(required) - The token mint addressperiod
(optional) - Time period: "5m", "1h", "24h" (default: "1h")
search-tokens
Search for tokens by name or symbol.
- Parameters:
query
(required) - Search termlimit
(optional, default: 10, max: 50)
๐ Example Queries
Ask Claude Desktop:
- "Show me the top 10 Pump.fun tokens by market cap"
- "What are the King of the Hill tokens right now?"
- "Get metrics for token address ABC123..."
- "Show me the latest 20 new tokens on Pump.fun"
- "Who are the top holders of token XYZ456?"
- "Get 24h trading analytics for token DEF789"
- "Search for tokens containing 'DOGE'"
๐๏ธ Architecture
src/
โโโ types/ # TypeScript type definitions
โโโ api/ # API clients (PumpPortal, Bitquery)
โโโ services/ # Business logic and data processing
โโโ utils/ # Helper functions and utilities
โโโ index.ts # Main MCP server entry point
Key Components
- PumpFunService: Main service layer handling data aggregation and caching
- API Clients: Interfaces for external data sources
- Type System: Comprehensive TypeScript types for all data structures
- Utilities: Formatting, validation, and helper functions
๐ Data Sources
This MCP server is designed to work with multiple live data sources:
- PumpPortal API: Real-time WebSocket data and REST endpoints
- Bitquery API: GraphQL-based blockchain data queries
- Direct Solana RPC: For on-chain data verification
Note: Current implementation includes demo data structure. Live API integration requires proper API keys and endpoints.
๐ API Keys
The server supports multiple API providers:
PUMPPORTAL_API_KEY
: For PumpPortal real-time dataBITQUERY_API_KEY
: For Bitquery blockchain analytics
Add these to your environment or MCP configuration.
๐ฆ Rate Limiting & Caching
- Smart Caching: 30-second cache for frequently requested data
- Rate Limiting: Respects API provider limits
- Error Handling: Robust retry mechanisms with exponential backoff
๐งช Development
Project Structure
Following the architecture pattern from the referenced CoinCap MCP project but adapted for Pump.fun:
- Clean separation of concerns
- Modular API clients
- Comprehensive type system
- Utility-first helper functions
- Robust error handling
Adding New Features
- Define types in
src/types/
- Add API methods in
src/api/
- Implement business logic in
src/services/
- Add MCP tools in
src/index.ts
Testing
npm test
๐ Sample Prompts
Use these with Claude Desktop once the MCP server is configured:
"What are the hottest Pump.fun tokens right now?"
"Show me King of the Hill tokens competing for the crown"
"Get detailed metrics for this token: [address]"
"What new tokens were just created on Pump.fun?"
"Who holds the most of token [address]?"
"Show me 24h trading data for [token]"
"Search for meme tokens on Pump.fun"
๐ค Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
๐ License
MIT License - see LICENSE file for details.
๐ Acknowledgments
- Inspired by the CoinCap MCP project architecture
- Built for the Model Context Protocol ecosystem
- Uses live Pump.fun and Solana blockchain data
๐ Support
For issues and questions:
- Check the page
- Review the documentation
- Join our community discussions
Built with โค๏ธ for the Pump.fun and MCP communities