Pump.fun MCP Server

by noahgsolomon

Integrations

  • Provides tools for creating, buying, and selling tokens on the Pump.fun platform on the Solana blockchain, with account management capabilities and balance checking

펌프펀-mcp

솔라나 기반 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 파일에 다음을 작성하세요.

지엑스피1

https://your-helius-rpc-url.com Helius RPC URL 로 바꾸세요.

설치

  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
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Solana의 Pump.fun 플랫폼에서 AI 어시스턴트가 토큰을 생성, 구매, 판매할 수 있도록 하는 모델 컨텍스트 프로토콜 서버입니다.

  1. 용법
    1. 설치
      1. 구성 요소
        1. 도구
        2. 계정 관리
      2. 독립형 스크립트
        1. 중요 참고 사항
          1. 개발
            1. 프로젝트 구조
            2. 건물

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that allows AI assistants to interact with Appwrite's API, providing tools to manage databases, users, functions, teams, and other resources within Appwrite projects.
            Last updated -
            84
            36
            Python
            MIT License
            • Linux
            • Apple
          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol server that enables AI assistants to interact with the Deriv trading API, providing access to active trading symbols and account balance information.
            Last updated -
            2
            Python
            • Apple
          • -
            security
            A
            license
            -
            quality
            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.
            Last updated -
            60
            15
            TypeScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.
            Last updated -
            JavaScript
            • Linux
            • Apple

          View all related MCP servers

          ID: llgscbccq1