kukapay/pumpswap-mcp
FreeNot checkedEnabling AI agents to interact with PumpSwap for real-time token swaps and automated on-chain trading.
About
Enabling AI agents to interact with PumpSwap for real-time token swaps and automated on-chain trading.
README
An MCP server that enables AI agents to interact with PumpSwap for real-time token swaps and automated on-chain trading.
Features
- Buy Tokens: Purchase tokens using SOL with customizable slippage and priority fees.
- Sell Tokens: Sell tokens for SOL with configurable parameters.
- Token Price Query: Retrieve current token prices in SOL.
- Pool Data Retrieval: Fetch and display detailed pool information for a given token mint.
Prerequisites
- Python 3.13 or higher
- uv for dependency management and script execution
- Solana RPC endpoint (e.g.,
https://api.mainnet-beta.solana.com) - A valid Solana private key for transaction signing
Installation
Clone the Repository:
git clone https://github.com/kukapay/pumpswap-mcp.git cd pumpswap-mcpInstall uv: If
uvis not installed, follow the official uv installation guide. For example:curl -LsSf https://astral.sh/uv/install.sh | shSet Up Dependencies: Use
uvto install dependencies:uv syncConfigure Environment Variables: Create a
.env.privatefilein the project root with the following variables:HTTPS_RPC_ENDPOINT=https://api.mainnet-beta.solana.com BUY_SLIPPAGE=0.3 SELL_SLIPPAGE=0.1 SWAP_PRIORITY_FEE=1500000 PRIVATE_KEY=your-solana-private-keyReplace
your-solana-private-keywith your actual Solana private key.
Usage
Run the MCP Server
Use uv to run the server:
uv run main.py
The server will listen for MCP commands and expose the following tools:
buy_token(mint: str, sol_amount: float, user_private_key: str): Buy tokens with SOL.sell_token(mint: str, token_amount: float, user_private_key: str): Sell tokens for SOL.get_token_price(mint: str): Fetch the current token price in SOL.get_pool_data(mint: str): Retrieve formatted pool data for a token.
Buy Tokens
Prompt:
Buy 0.1 SOL worth of tokens with mint address FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump.
This triggers buy_token("FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump", 0.1).
Expected Output:
Buy successful for 0.1 SOL of token FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump
Transaction ID: <transaction-id>
Amount: <token-amount>
Token Price (SOL): <price>
Sell Tokens
Prompt:
Sell 1000 tokens of FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump.
This triggers sell_token("FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump", 1000).
Expected Output:
Sell successful for 1000 tokens of FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump
Transaction ID: <transaction-id>
Amount: <sol-amount>
Token Price (SOL): <price>
Get Token Price
Prompt:
What is the current price of the token with mint FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump?
This triggers get_token_price("FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump").
Expected Output:
The current price of token FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump is <price> SOL.
Get Pool Data
Prompt:
Show me the pool data for the token with mint FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump.
This triggers get_pool_data("FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump").
Expected Output:
PumpPool Data for mint FC988ZAKRPc26wefDAxcYWB8kgbJTH4Tg3qDvf7xpump:
Pool Bump: <bump>
Index: <index>
Creator: <creator-pubkey>
Base Mint: <base-mint>
Quote Mint: <quote-mint>
LP Mint: <lp-mint>
Pool Base Token Account: <base-account>
Pool Quote Token Account: <quote-account>
LP Supply: <supply>
Environment Variables
The server uses the following environment variables, loaded from .env.private:
| Variable | Description | Default Value |
|---|---|---|
HTTPS_RPC_ENDPOINT |
Solana RPC endpoint URL | https://api.mainnet-beta.solana.com |
BUY_SLIPPAGE |
Slippage tolerance for buy transactions | 0.3 (30%) |
SELL_SLIPPAGE |
Slippage tolerance for sell transactions | 0.1 (10%) |
SWAP_PRIORITY_FEE |
Priority fee for transactions (in lamports) | 1500000 |
PRIVATE_KEY |
Solana private key for signing transactions | None (required) |
Ensure PRIVATE_KEY is set, as the server will raise an error if it's missing.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Disclaimer
This software interacts with decentralized finance (DeFi) protocols and handles sensitive data like private keys. Use it at your own risk. Ensure your .env.private file is secure and never share your private key. The authors are not responsible for any financial losses or security issues arising from the use of this software.
Installing kukapay/pumpswap-mcp
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/kukapay/pumpswap-mcpFAQ
Is kukapay/pumpswap-mcp MCP free?
Yes, kukapay/pumpswap-mcp MCP is free — one-click install via Unyly at no cost.
Does kukapay/pumpswap-mcp need an API key?
No, kukapay/pumpswap-mcp runs without API keys or environment variables.
Is kukapay/pumpswap-mcp hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install kukapay/pumpswap-mcp in Claude Desktop, Claude Code or Cursor?
Open kukapay/pumpswap-mcp on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Stripe
Payments, customers, subscriptions
by Stripemalamutemayhem/unclick-agent-native-endpoints
110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n
by malamutemayhemwhiteknightonhorse/APIbase
Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa
by whiteknightonhorsetrackerfitness729-jpg/sitelauncher-mcp-server
Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr
embeddedlayers/mcp-analytics
Statistical analysis, forecasting, and ML for business data (Shopify, Stripe, WooCommerce, eBay, GA4, Search Console). Upload a CSV or connect live data sources
by embeddedlayerscarrierone/verilexdata-mcp
20 structured datasets (NPI healthcare, SEC filings, OFAC sanctions, crypto whales, Polymarket signals, patents, economic indicators) via x402 pay-per-query wit
by carrieronetipdotmd/tip-md-x402-mcp-server
MCP server for cryptocurrency tipping through AI interfaces using x402 payment protocol and CDP Wallet.
by tipdotmdlaundromatic/shopgraph
Structured product data from the open web — Schema.org + AI extraction for e-commerce enrichment. Pay per call via Stripe. [shopgraph.dev](https://shopgraph.dev
by laundromaticmrslbt/xendit-mcp
Xendit payment gateway for Southeast Asia. Invoices, disbursements, balance checks, and bank transfers across Indonesia, Philippines, Thailand, Vietnam, and Mal
by mrslbt@arbitova/mcp-server
Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create
by jiayuanliang0716-maxCompare kukapay/pumpswap-mcp with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All finance MCPs
