io.github.ExpertVagabond/solana
编码与调试by expertvagabond
面向 Solana 的 MCP 服务器,支持钱包、transactions 与 programs 的查询、操作及自动化集成。
什么是 io.github.ExpertVagabond/solana?
面向 Solana 的 MCP 服务器,支持钱包、transactions 与 programs 的查询、操作及自动化集成。
README
solana-mcp-server
Full Solana blockchain MCP server. 25 tools for wallet management, SPL token operations, DeFi, staking, and network queries. Built on @solana/web3.js and @solana/spl-token with Anchor support.
The most actively maintained Solana MCP. Covers the complete SPL token lifecycle (create, mint, burn, freeze, thaw, delegate, authority management) that competitors skip.
Install
npx solana-mcp-server
Or install globally:
npm install -g solana-mcp-server
solana-mcp-server
Configure
Add to your MCP config (claude_desktop_config.json or ~/.mcp.json):
{
"mcpServers": {
"solana": {
"command": "npx",
"args": ["-y", "solana-mcp-server"],
"env": {
"SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
}
}
}
}
Tools (25)
Wallet Management (4)
| Tool | Description | Key Params |
|---|---|---|
create_wallet | Create a new Solana keypair (in-memory only) | -- |
import_wallet | Import from a base58-encoded private key | privateKey |
list_wallets | List all wallets in the current session | -- |
get_balance | Get SOL balance for any address | address |
SPL Token Operations (10)
| Tool | Description | Key Params |
|---|---|---|
create_spl_token | Create a new SPL token with custom decimals | walletName, decimals |
mint_tokens | Mint tokens to any address | walletName, tokenMint, amount |
burn_tokens | Burn tokens from an account | walletName, tokenMint, amount |
freeze_account | Freeze a token account | walletName, tokenMint, accountAddress |
thaw_account | Unfreeze a token account | walletName, tokenMint, accountAddress |
set_token_authority | Change token authority (mint, freeze, owner, close) | walletName, tokenMint, authorityType |
get_token_supply | Total supply and metadata for a token | tokenMint |
close_token_account | Close an account and reclaim rent | walletName, tokenAccount |
approve_delegate | Approve a delegate for token transfers | walletName, tokenAccount, delegate, amount |
revoke_delegate | Revoke delegate approval | walletName, tokenAccount |
Transfers (3)
| Tool | Description | Key Params |
|---|---|---|
transfer_sol | Transfer SOL between wallets | from, to, amount |
transfer_tokens | Transfer SPL tokens | from, to, tokenMint, amount |
airdrop_sol | Request SOL airdrop (devnet/testnet only) | address, amount |
Account Queries (4)
| Tool | Description | Key Params |
|---|---|---|
get_account_info | Detailed account information | address |
get_transaction | Transaction details by signature | signature |
create_token_account | Create an associated token account | walletName, tokenMint |
get_token_accounts | List all token accounts for a wallet | address |
Token Data (1)
| Tool | Description | Key Params |
|---|---|---|
get_token_balance | SPL token balance for a specific account | address, tokenMint |
Network (3)
| Tool | Description | Key Params |
|---|---|---|
switch_network | Switch between mainnet, devnet, testnet, localhost | network |
get_network_info | Current network status and info | -- |
get_recent_blockhash | Recent blockhash for transaction building | -- |
Why This One?
- Complete SPL token lifecycle. Create, mint, burn, freeze, thaw, set authority, delegate, close -- 10 token tools covering every operation. Competitors stop at create/transfer.
- Production-ready infrastructure. Lazy connection initialization (no startup timeouts), 10-second network call timeouts, comprehensive error handling, and Smithery deployment support.
- Anchor integration. Built with
@coral-xyz/anchorsupport for interacting with Anchor programs alongside raw SPL token operations.
Networks
| Network | Endpoint |
|---|---|
mainnet | https://api.mainnet-beta.solana.com |
devnet | https://api.devnet.solana.com |
testnet | https://api.testnet.solana.com |
localhost | http://127.0.0.1:8899 |
Security
- Private keys stored in memory only -- never persisted to disk
- Keys cleared on process exit
- All inputs validated with Zod schemas
Environment Variables
| Variable | Required | Description |
|---|---|---|
SOLANA_RPC_URL | No | Solana RPC endpoint (default: mainnet) |
Development
git clone https://github.com/ExpertVagabond/solana-mcp-server.git
cd solana-mcp-server
npm install
npm run build
npm start
npm test # Basic functionality tests
npm run type-check # TypeScript type checking
npm run lint # ESLint
npm run quality # Full quality check (lint + types + tests)
License
MIT -- Purple Squirrel Media
常见问题
io.github.ExpertVagabond/solana 是什么?
面向 Solana 的 MCP 服务器,支持钱包、transactions 与 programs 的查询、操作及自动化集成。
相关 Skills
网页构建器
by anthropics
面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。
✎ 在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。
前端设计
by anthropics
面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。
✎ 想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。
网页应用测试
by anthropics
用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。
✎ 借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。
相关 MCP Server
GitHub
编辑精选by GitHub
GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。
✎ 这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。
Context7 文档查询
编辑精选by Context7
Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。
✎ 它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。
by tldraw
tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。
✎ 这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。