Sponsored by Deepsite.site

💊 MCPill – Pumpfun MCP Server

Created By
xaspx7 months ago
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.
Content

💊 MCPill – Pumpfun MCP Server

MCPill is a Model Context Protocol (MCP) server for interacting with the Pump.fun platform on Solana. This server enables AI assistants to autonomously create, buy, and sell tokens — unleashing fully automated crypto experiences powered by artificial intelligence.

MCPill bridges the gap between AI autonomy and onchain memecoin deployment.


MCPill Demo
X

CA Soon..


🧠 What Can It Do?

The MCPill server acts as a backend bridge that enables language models (like Claude or GPT) to:

  • Launch new tokens on Pump.fun
  • Purchase and sell tokens
  • Query token metadata
  • Manage accounts and balances

Think of it as the Solana engine for AI-driven crypto interactions.


🎬 Demo Video

Watch how it works:

https://github.com/user-attachments/assets/2854a2f1-8ce4-4767-a1c9-fb555d7cce00


🚀 Usage

To use this server with Claude or another MCP-compatible assistant, add this configuration to your MCP client:

If you're on MacOS and using Claude Desktop, edit this file:
~/Library/Application\ Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "pumpfun": {
      "command": "node",
      "args": ["/Users/YOUR_USERNAME/Desktop/mcpill/build/index.js"],
      "env": {
        "HELIUS_RPC_URL": "https://your-helius-rpc-url.com"
      }
    }
  }
}

👉 Replace the path and HELIUS_RPC_URL with your actual setup details.


⚙️ Installation

  1. Clone the repository:

    git clone https://github.com/xaspx/mcpill.git
    cd mcpill
    
  2. Install dependencies:

    npm install
    
  3. Set up .env:

    HELIUS_RPC_URL=https://your-helius-rpc-url.com
    PRIVATE_KEY=your-base58-encoded-private-key
    
  4. Convert your key:

    node convert-key.js
    
  5. Build the server:

    npm run build
    
  6. Run the MCPill server:

    node build/index.js
    

🔧 Components

Available Tools

  • get-token-info: Fetch token metadata
  • create-token: Mint new token on Pump.fun
  • buy-token: Buy token with adjustable slippage
  • sell-token: Sell token by amount or total
  • list-accounts: List keypairs
  • get-account-balance: Check balances

Each of these tools is accessible from your AI assistant or CLI.


👤 Account Management

Keypairs are stored as JSON files in the .keys/ folder. The server:

  • Uses .env for loading a default private key
  • Saves new mint keypairs as mint-<symbol>.json
  • Supports multiple named accounts

Ensure your wallet has SOL before launching or trading tokens.


🛠 Standalone Scripts

You can also run core functionality directly from the terminal:

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> [account_name] [slippage]
node build/sell-token.js <token_address> <sell_amount> [account_name] [slippage]
node build/list-accounts.js
node build/get-token-balance.js <account_name> [token_address]

⚠️ Notes

  • Keypairs are unencrypted. Secure .keys/ if you're in production.
  • Pump.fun transactions require SOL — keep wallets funded.
  • Slippage default is 1% (100 basis points). Customize as needed.
  • Images must be local paths when minting new tokens.

🧱 Project Structure

FilePurpose
src/index.tsEntry point for the MCPill server
src/create-token.tsToken minting logic
src/buy-token.tsBuying logic
src/sell-token.tsSelling logic
src/get-token-info.tsToken metadata
src/get-token-balance.tsSOL/token balance lookup
src/list-accounts.tsList accounts
src/utils.tsShared utilities
convert-key.jsPrivate key to keypair JSON tool

📘 License

MIT – Feel free to fork and customize MCPill for your own agent stacks or AI token launch tools.


🧬 Powered by $MCPILL

This repo is built for agents who take the green pill.
Let your AI mint the next viral coin.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
DeepChatYour AI Partner on Desktop
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Amap Maps高德地图官方 MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Playwright McpPlaywright MCP server
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
ChatWiseThe second fastest AI chatbot™
Tavily Mcp