Pump.fun MCP Server
Enables AI assistants to interact with the Pump.fun platform on Solana, providing tools for creating, buying, and selling tokens, managing Solana keypairs, and checking account balances.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pump.fun MCP Servercreate a meme token called DogeMoon with symbol DOGEM and description "To the moon!" with 0.01 SOL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pumpfun-mcp
A Model Context Protocol (MCP) server for interacting with the Pump.fun platform on Solana. This server enables AI assistants to create, buy, and sell tokens on the Pump.fun platform.
Usage
https://github.com/user-attachments/assets/0b0f1f6f-6ea6-4ca8-92a8-b4cc895814e4
To use this server with Claude or other MCP-compatible AI assistants, add the following configuration to your MCP client:
If you're on MacOS and want to run this in Claude Desktop, in your ~/Library/Application \Support/Claude/claude_desktop_config.json file, write the following:
{
"mcpServers": {
"pumpfun": {
"command": "node",
"args": ["/Users/noahsolomon/Desktop/pumpfun-mcp/build/index.js"], // note this should be YOUR absolute path to index.js, not mine.
"env": {
"HELIUS_RPC_URL": "https://your-helius-rpc-url.com"
}
}
}
}Replace https://your-helius-rpc-url.com with your Helius RPC URL.
Related MCP server: bags-sdk-mcp
Installation
Clone this repository:
git clone https://github.com/noahgsolomon/pumpfun-mcp.git cd pumpfun-mcpInstall dependencies:
npm installCreate a
.envfile with your Solana RPC URL:HELIUS_RPC_URL=https://your-helius-rpc-url.comYou can get a free RPC URL from Helius.
To use an existing Solana wallet, add your private key to the
.envfile:PRIVATE_KEY=your-base58-encoded-private-keyThen run the conversion script to create a keypair file:
node convert-key.jsThis will create a
default.jsonfile in the.keysfolder with your keypair.Build the project:
npm run buildRun the MCP server:
node build/index.js
Components
Tools
get-token-info
Get information about a Pump.fun token
Input parameters:
tokenAddress(string, required): The token's mint address
create-token
Create a new Pump.fun token
Input parameters:
name(string, required): Token namesymbol(string, required): Token symboldescription(string, required): Token descriptionimageUrl(string, optional): Path to local image fileinitialBuyAmount(number, required): Initial buy amount in SOL (min 0.0001)accountName(string, optional): Name of the account to use (defaults to "default")
buy-token
Buy a Pump.fun token
Input parameters:
tokenAddress(string, required): The token's mint addressbuyAmount(number, required): Amount to buy in SOL (min 0.0001)accountName(string, optional): Name of the account to use (defaults to "default")slippageBasisPoints(number, optional): Slippage tolerance in basis points (defaults to 100)
sell-token
Sell a Pump.fun token
Input parameters:
tokenAddress(string, required): The token's mint addresssellAmount(number, required): Amount of tokens to sell (use 0 to sell all)accountName(string, optional): Name of the account to use (defaults to "default")slippageBasisPoints(number, optional): Slippage tolerance in basis points (defaults to 100)
list-accounts
List all accounts in the keys folder
No input parameters required
get-account-balance
Get the SOL and token balances for an account
Input parameters:
accountName(string, optional): Name of the account to check (defaults to "default")tokenAddress(string, optional): Token address to check balance for
Account Management
The MCP automatically creates and manages Solana keypairs in the .keys folder. Each keypair is stored as a JSON file with the account name as the filename.
When creating a token, the mint keypair is also saved in the .keys folder with the prefix mint-.
To use the MCP with your own account, you need to:
Add your private key to the
.envfile and runnode convert-key.jsHave sufficient SOL in that wallet
Standalone Scripts
The project includes several standalone scripts that can be run directly:
Get Token Info:
node build/get-token-info.js <token_address>Create Token:
node build/create-token.js <name> <symbol> <description> <initial_buy_amount> [account_name] [image_url]Buy Token:
node build/buy-token.js <token_address> <buy_amount_sol> [account_name] [slippage_basis_points]Sell Token:
node build/sell-token.js <token_address> <sell_amount> [account_name] [slippage_basis_points]List Accounts:
node build/list-accounts.jsGet Account Balance:
node build/get-token-balance.js <account_name> [token_address]
Important Notes
Security: The keypairs are stored unencrypted in the
.keysfolder. Make sure to secure this folder appropriately.Fees: All transactions on Solana require SOL for transaction fees. Make sure your accounts have enough SOL.
Slippage: The default slippage tolerance is 1% (100 basis points). You can adjust this for each transaction.
Images: When creating tokens with images, you must provide a local file path to the image. Remote URLs are not supported.
Development
Project Structure
src/index.ts: Main MCP server entry pointsrc/get-token-info.ts: Token information retrievalsrc/create-token.ts: Token creation functionalitysrc/buy-token.ts: Token buying functionalitysrc/sell-token.ts: Token selling functionalitysrc/list-accounts.ts: Account listing functionalitysrc/get-token-balance.ts: Account balance checkingsrc/utils.ts: Shared utility functionsconvert-key.js: Utility to convert a base58 private key to a keypair JSON file
Building
npm run buildAvailable Tools
6 toolsbuy-tokenC
Buy a Pump.fun token
Inputs: tokenAddress (required), buyAmount (required), accountName, slippageBasisPoints.
create-tokenC
Create a new Pump.fun token
Inputs: name (required), symbol (required), description (required), initialBuyAmount (required), +2 more.
get-account-balanceC
Get the SOL and token balances for an account
Inputs: accountName, tokenAddress.
get-token-infoC
Get information about a Pump.fun token
Inputs: tokenAddress (required).
list-accountsB
List all accounts in the keys folder
Inputs: no named parameters.
sell-tokenC
Sell a Pump.fun token
Inputs: tokenAddress (required), sellAmount (required), accountName, slippageBasisPoints.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: buying, selling, and creating tokens are separate actions, while getting token info, account balances, and listing accounts are distinct read operations. The descriptions make it unambiguous which tool to use for each task.
The naming follows a consistent verb-noun pattern with hyphens (e.g., buy-token, create-token, get-token-info), except for 'list-accounts' which uses 'list' instead of 'get' like the other read operations. This minor deviation prevents a perfect score but maintains overall readability.
With 6 tools, this server is well-scoped for interacting with Pump.fun tokens and accounts. Each tool serves a clear purpose (e.g., core token lifecycle operations and account management), and none feel redundant or missing given the domain.
The toolset covers the essential token lifecycle (create, buy, sell, get info) and account management (balance, list), but lacks update or delete operations for tokens or accounts, which might be minor gaps depending on the platform's capabilities. Overall, it supports core workflows effectively.
Maintenance
Related MCP Connectors
Prepare pump.fun token launches from your AI agent. You review and sign each one in your own wallet.
Trade, launch and research higher.fun coins on Solana, from any AI agent. Unsigned or policy-signed.
Run all your Solana wallets from your AI: send, swap, split, consolidate and clean up.
Launch Solana coins from your AI. You approve each launch in your wallet and earn creator fees.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides basic Solana RPC methods and prompts for AI models to interact with the Solana blockchain. Enables developers to fetch balances, account info, and transactions through natural language.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides 46 MCP tools to interact with the Bags.fm platform, allowing AI agents to launch coins, trade, claim fees, and scout trends on Solana.4MIT
- AlicenseNot gradedqualityDmaintenanceExposes Solana meme-coin safety data as MCP tools, enabling AI assistants to check token trust scores, rug-risk flags, holder analysis, and trending tokens directly in conversation.5,687 npmISC
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to access Solana/Pump.fun tools, unsigned transaction tickets, Open Wallet Standard public wallet operations, and OpenRouter/RedPill model routing.MIT