Pump.fun MCP Server
ポンプファン-MCP
Solana上のPump.funプラットフォームと連携するためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、AIアシスタントはPump.funプラットフォーム上でトークンを作成、購入、販売できるようになります。
使用法
https://github.com/user-attachments/assets/0b0f1f6f-6ea6-4ca8-92a8-b4cc895814e4
このサーバーを Claude またはその他の MCP 互換 AI アシスタントで使用するには、MCP クライアントに次の構成を追加します。
MacOS を使用しており、Claude Desktop でこれを実行したい場合は、~/Library/Application \Support/Claude/claude_desktop_config.json ファイルに次のように記述します。
{
"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"
}
}
}
}https://your-helius-rpc-url.com Helius RPC URLに置き換えます。
Related MCP server: AMOCA Solana MCP Server
インストール
このリポジトリをクローンします:
git clone https://github.com/noahgsolomon/pumpfun-mcp.git cd pumpfun-mcp依存関係をインストールします:
npm installSolana RPC URL を含む
.envファイルを作成します。HELIUS_RPC_URL=https://your-helius-rpc-url.comHeliusから無料の RPC URL を取得できます。
既存の Solana ウォレットを使用するには、秘密鍵を
.envファイルに追加します。PRIVATE_KEY=your-base58-encoded-private-key次に、変換スクリプトを実行してキーペア ファイルを作成します。
node convert-key.jsこれにより、キー ペアを含む
default.jsonファイルが.keysフォルダーに作成されます。プロジェクトをビルドします。
npm run buildMCP サーバーを実行します。
node build/index.js
コンポーネント
ツール
トークン情報を取得する
Pump.funトークンに関する情報を取得する
入力パラメータ:
tokenAddress(文字列、必須): トークンのミントアドレス
トークン作成
新しいPump.funトークンを作成する
入力パラメータ:
name(文字列、必須): トークン名symbol(文字列、必須): トークンシンボルdescription(文字列、必須): トークンの説明imageUrl(文字列、オプション): ローカル画像ファイルへのパスinitialBuyAmount(数値、必須): SOLでの初期購入金額(最小0.0001)accountName(文字列、オプション): 使用するアカウントの名前 (デフォルトは "default")
トークン購入
Pump.funトークンを購入する
入力パラメータ:
tokenAddress(文字列、必須): トークンのミントアドレスbuyAmount(数値、必須): SOLでの購入金額(最小0.0001)accountName(文字列、オプション): 使用するアカウントの名前 (デフォルトは "default")slippageBasisPoints(数値、オプション): ベーシスポイントでのスリッページ許容値 (デフォルトは100)
トークン販売
Pump.funトークンを販売する
入力パラメータ:
tokenAddress(文字列、必須): トークンのミントアドレスsellAmount(数値、必須):販売するトークンの量(すべて販売する場合は0を使用)accountName(文字列、オプション): 使用するアカウントの名前 (デフォルトは "default")slippageBasisPoints(数値、オプション): ベーシスポイントでのスリッページ許容値 (デフォルトは100)
アカウントリスト
キーフォルダ内のすべてのアカウントを一覧表示する
入力パラメータは不要
アカウント残高を取得する
アカウントのSOLとトークン残高を取得する
入力パラメータ:
accountName(文字列、オプション): チェックするアカウントの名前 (デフォルトは "default")tokenAddress(文字列、オプション):残高を確認するトークンアドレス
アカウント管理
MCPは、 .keysフォルダにSolanaキーペアを自動的に作成・管理します。各キーペアは、アカウント名をファイル名とするJSONファイルとして保存されます。
トークンを作成すると、mint キー ペアも接頭辞mint-を付けて.keysフォルダーに保存されます。
自分のアカウントで MCP を使用するには、次のことが必要です。
秘密鍵を
.envファイルに追加し、node convert-key.jsを実行します。ウォレットに十分なSOLがある
スタンドアロンスクリプト
このプロジェクトには、直接実行できるスタンドアロン スクリプトがいくつか含まれています。
トークン情報の取得:
node build/get-token-info.js <token_address>トークンの作成:
node build/create-token.js <name> <symbol> <description> <initial_buy_amount> [account_name] [image_url]トークンを購入:
node build/buy-token.js <token_address> <buy_amount_sol> [account_name] [slippage_basis_points]トークンを売る:
node build/sell-token.js <token_address> <sell_amount> [account_name] [slippage_basis_points]アカウントの一覧表示:
node build/list-accounts.jsアカウント残高の取得:
node build/get-token-balance.js <account_name> [token_address]
重要な注意事項
セキュリティ:キーペアは暗号化されずに
.keysフォルダに保存されます。このフォルダを適切に保護してください。手数料:Solanaでのすべての取引には、取引手数料としてSOLが必要です。アカウントに十分なSOLがあることを確認してください。
スリッページ:デフォルトのスリッページ許容範囲は1%(100ベーシスポイント)です。この値は取引ごとに調整できます。
画像: 画像を含むトークンを作成する場合は、画像のローカルファイルパスを指定する必要があります。リモートURLはサポートされていません。
発達
プロジェクト構造
src/index.ts: メインMCPサーバーのエントリポイントsrc/get-token-info.ts: トークン情報の取得src/create-token.ts: トークン作成機能src/buy-token.ts: トークン購入機能src/sell-token.ts: トークン販売機能src/list-accounts.ts: アカウント一覧機能src/get-token-balance.ts: アカウント残高の確認src/utils.ts: 共有ユーティリティ関数convert-key.js: base58 秘密鍵をキーペア JSON ファイルに変換するユーティリティ
建物
npm run buildAvailable Tools
6 toolsbuy-tokenC
Buy a Pump.fun token
Inputs: buyAmount (required), tokenAddress (required), accountName, slippageBasisPoints.
create-tokenC
Create a new Pump.fun token
Inputs: description (required), initialBuyAmount (required), name (required), symbol (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: sellAmount (required), tokenAddress (required), accountName, slippageBasisPoints.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: buying, selling, creating tokens, getting token info, getting account balances, and listing accounts. The actions and targets are well-defined and unambiguous.
Most tools follow a consistent verb_noun pattern (e.g., buy-token, create-token, get-token-info, sell-token). However, 'list-accounts' uses 'list' instead of 'get' for consistency with 'get-account-balance', and 'get-account-balance' includes a hyphenated compound noun, causing minor deviations.
With 6 tools, this server is well-scoped for managing Pump.fun tokens and accounts. Each tool serves a clear, essential function, and the count is appropriate for the domain without being excessive or insufficient.
The toolset covers core token operations (create, buy, sell, get info) and account management (balance, listing), providing good coverage. A minor gap is the lack of update or delete operations for tokens or accounts, but agents can likely work around this for basic workflows.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
DexTrading's MCP server gives AI assistants live, read-only data on profitable on-chain traders on Solana, BNB Chain, Base and Robinhood Chain. Free, no API key. Tools: smart_money_buying_now (coins proven wallets are buying now), find_traders_to_copy (best traders, coin launchers and fake numbers left out), trader_report_card (profit, win rate, hold time, red flags, verdict), compare_traders (side by side) and build_copy_squad (a group copied only when several agree).
Pay-per-call MCP tools over x402 (USDC/Solana): LLM, utilities, x402 market and model prices.
Production-grade MCP gateway delivering 8 real-time AI tools with instant x402 micropayments settled in USDC on Base Mainnet or SPL-USDC on Solana. Features Basescan contract auditing, wallet analytics, headless browser scraping, and pre-scraped oracle data feeds.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server enabling AI agents to interact with the Solana blockchain for DeFi operations like checking balances, transferring tokens, executing swaps, and fetching price data.21MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.5MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude AI to interact with the Solana blockchain, allowing it to execute transactions, query accounts, manage wallets, get price predictions, trade tokens, and access various blockchain data sources.4-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that extends AI capabilities by providing tools to interact with the Solana blockchain, enabling operations like transactions, account queries, and wallet management.1Apache 2.0