NP

noahgsolomon/pumpfun-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

21 stars 7 forks 质量 55 趋势 0

一个用于与 Solana Pump.fun 平台交互的模型上下文协议(MCP)服务器。该服务器使 AI 助手能够在 Pump.fun 平台上创建、买卖代币。

概览

一个用于与 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 文件中,请写以下内容: 将https://your-helius-rpc-url.com替换为你的Helius RPC URL。 3. 创建一个带有你 Solana RPC URL 的 .env 文件: 要使用现有的Solana钱包,请将你的私钥添加到.env文件中: 然后运行转换脚本创建一个密钥对文件:

概述(AI 翻译)

一个用于与 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 文件中,请写以下内容:

将https://your-helius-rpc-url.com替换为你的Helius RPC URL。

安装

  1. 克隆此仓库:

  2. 安装依赖:

  3. 创建一个包含你的Solana RPC URL的.env文件:

你可以从Helius获得免费的RPC网址。

要使用现有的Solana钱包,请将你的私钥添加到.env文件中:

然后运行转换脚本创建一个密钥对文件:

这会在 .keys 文件夹里创建一个包含你的密钥对的文件。

  1. 建设项目:

  2. 运行MCP服务器:

组成部分

工具

  • 获取令牌信息

  • 获取关于 Pump.fun 令牌的信息

  • 输入参数:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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.

Installation

  1. Clone this repository:

    git clone https://github.com/noahgsolomon/pumpfun-mcp.git
    cd pumpfun-mcp
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file with your Solana RPC URL:

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

    You can get a free RPC URL from Helius.

    To use an existing Solana wallet, add your private key to the .env file:

    PRIVATE_KEY=your-base58-encoded-private-key
    

    Then run the conversion script to create a keypair file:

    node convert-key.js
    

    This will create a default.json file in the .keys folder with your keypair.

  4. Build the project:

    npm run build
    
  5. Run 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 name
      • symbol (string, required): Token symbol
      • description (string, required): Token description
      • imageUrl (string, optional): Path to local image file
      • initialBuyAmount (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 address
      • buyAmount (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
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "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" } } } }