solana-agent-mcp
Real-time Solana pump.fun token scanner with MCP stdio transport and HTTP API. Enables AI agents to monitor and trade pump.fun tokens via natural language.
README
Solana Agent MCP
<p align="center"> <img src="https://img.shields.io/badge/license-AGPL--3.0-blue.svg" alt="License: AGPL-3.0"> <img src="https://img.shields.io/badge/version-10.0.0-green.svg" alt="Version 10.0.0"> <img src="https://img.shields.io/badge/MCP-stdio-orange.svg" alt="MCP stdio"> <img src="https://img.shields.io/badge/Solana-mainnet-blueviolet.svg" alt="Solana Mainnet"> <img src="https://img.shields.io/badge/tools-14-brightgreen.svg" alt="14 MCP Tools"> </p>
<p align="center"> <img src="demo.gif" alt="Solana Agent MCP Demo" width="720"> <br><sub><a href="./demo.mp4">Watch in HD (1080p, 45s)</a></sub> </p>
<p align="center"> <a href="./PAPER.md"><img src="https://img.shields.io/badge/paper-read%20now-blue.svg" alt="Read the Paper"></a> <a href="./DEMO.md"><img src="https://img.shields.io/badge/demo-script-green.svg" alt="Demo Script"></a> </p>
Your on-chain copilot. An MCP (Model Context Protocol) server that gives AI agents full read/write access to the Solana blockchain — check balances, send SOL, swap tokens via Jupiter, scan pump.fun tokens in real-time, and trade memecoins. All through natural conversation. No API keys shared with the agent.
Architecture
┌──────────────┐ MCP stdio (local) ┌──────────────────────┐
│ AI Agent │◄─────────────────────────►│ solana-agent-mcp │
│ (Claude) │ No network, no auth │ (your machine) │
└──────────────┘ └────────┬─────────────┘
│
Helius WS + RPC
Jupiter API
Pump.fun API
│
┌─────▼──────┐
│ Solana │
│ Blockchain│
└────────────┘
The MCP server runs as a local process. AI agents connect via stdin/stdout (standard MCP protocol). Your private key signs transactions locally — it never leaves your machine. The agent never sees your key.
Installation
git clone https://github.com/KorroAi/solana-agent-mcp.git
cd solana-agent-mcp
npm install
cp .env.example .env
Edit .env:
HELIUS_API_KEYS=your-key-1,your-key-2 # Free at helius.dev
PRIVATE_KEY=your-phantom-base58-key # Optional — for live transactions
SOLANA_MCP_PORT=8791 # Default
npm run dev
Then type /solana in Claude Code. The wizard guides you.
MCP Tools (14 total)
Read — Query blockchain state
| Tool | Parameters | Returns |
|---|---|---|
solana_get_balance |
address |
SOL balance + lamports |
solana_get_token_balance |
address, mint |
SPL token balance |
solana_get_token_info |
mint |
Decimals, supply, authorities |
solana_get_price |
— | SOL/USD price |
solana_scan_tokens |
— | Recent pump.fun tokens |
solana_get_transaction |
signature |
Tx details + status |
solana_get_wallet |
— | Server wallet address + balance |
solana_health |
— | RPC status, scanner, wallet |
Write — Execute transactions (requires PRIVATE_KEY)
| Tool | Parameters | Returns |
|---|---|---|
solana_send_sol |
to, amount |
Tx signature + Solscan link |
solana_send_token |
to, mint, amount |
Tx signature + Solscan link |
solana_swap |
inputMint, outputMint, amount, slippageBps? |
Tx signature + route |
solana_buy_pump |
mint, amountSOL, slippageBps? |
Tx signature + pump.fun link |
solana_sell_pump |
mint, amountSOL?, slippageBps? |
Tx signature + Solscan link |
solana_request_airdrop |
address, amount? |
Tx signature (devnet only) |
Resources
| URI | Content |
|---|---|
solana://price |
Current SOL/USD price |
solana://tokens/recent |
Last 20 pump.fun tokens |
Safety
- Local signing: Private key never leaves your machine
- Confirmation gate: Transactions >0.01 SOL require explicit confirmation
- Solscan links: Every transaction returns an explorer link
- Read-only by default: No wallet = no write access, everything still works
- No API keys shared: The agent communicates via local stdio, not over the network
- Balance guard: Won't trade below 0.01 SOL reserve
/solana — Slash Command
/solana
> check my balance → "You have 0.112 SOL (~$8.90)"
> send 0.01 SOL to 7bN2... → "Sending... confirmed! tx: 2PFCa..."
> scan pump.fun tokens → "4 new tokens detected"
> swap 0.05 SOL to USDC → "Best route: SOL→USDC via Jupiter"
> buy B1bN... for 0.02 SOL → "Buy executed! pump.fun/coin/B1bN..."
License
GNU Affero General Public License v3.0 (AGPL-3.0)
This is strong copyleft. You can use, modify, and distribute this software freely. If you run a modified version as a network service, you MUST release your modifications to the community. Companies cannot take this code, improve it privately, and sell it as a proprietary service.
See LICENSE for the full text.
<p align="center"> <b>Built by <a href="https://github.com/KorroAi">KORROCORP</a></b><br> <sub>AGPL-3.0 — Free as in freedom. Share your improvements.</sub> </p>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。