Skip to main content
Glama
Pump.fun MCP Server

Pump.fun MCP Server

by noahgsolomon

ポンプファン-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

インストール

  1. このリポジトリをクローンします:

    git clone https://github.com/noahgsolomon/pumpfun-mcp.git
    cd pumpfun-mcp
  2. 依存関係をインストールします:

    npm install
  3. Solana RPC URL を含む.envファイルを作成します。

    HELIUS_RPC_URL=https://your-helius-rpc-url.com

    Heliusから無料の RPC URL を取得できます。

    既存の Solana ウォレットを使用するには、秘密鍵を.envファイルに追加します。

    PRIVATE_KEY=your-base58-encoded-private-key

    次に、変換スクリプトを実行してキーペア ファイルを作成します。

    node convert-key.js

    これにより、キー ペアを含むdefault.jsonファイルが.keysフォルダーに作成されます。

  4. プロジェクトをビルドします。

    npm run build
  5. MCP サーバーを実行します。

    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 を使用するには、次のことが必要です。

  1. 秘密鍵を.envファイルに追加し、 node convert-key.jsを実行します。

  2. ウォレットに十分な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 build

Available Tools

6 tools
buy-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

    B3.4/5.0

    Scored across 6 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      21
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      5
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A 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
      -