← 返回
AI智能 中文

Pump MCP Server

Model Context Protocol server exposing 7 tools, 3 resource types, and 3 prompts for AI agent consumption — Solana wallet operations, vanity address generatio...
模型上下文协议服务器暴露7个工具、3种资源类型和3个提示,供AI代理使用——包括Solana钱包操作、虚荣地址生成...
speraxos
AI智能 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 811
下载
💾 14
安装
1
版本
#latest

概述

MCP Server — Model Context Protocol for Solana Wallet Operations

Model Context Protocol server exposing tools, resources, and prompts for AI agent consumption over stdio transport with session keypair management.

Architecture

AI Agent (Claude, etc.)
        │
    stdio transport
        │
   SolanaWalletMCPServer
        │
   ┌────┼────────┬──────────┐
   │    │        │          │
  Tools Resources Prompts  Session
   │    │        │        State
   7    3        3         │
  tools types   prompts  Keypair

Tools (7)

ToolDescription
-------------------
generate_keypairGenerate a new random Solana keypair
generate_vanityGenerate vanity address with prefix/suffix
estimate_vanity_timeEstimate time for vanity pattern
validate_addressValidate a Solana Base58 address
sign_messageSign a message with session keypair
verify_signatureVerify a signed message
restore_keypairRestore keypair from secret key bytes

Resources (3)

URI PatternDescription
--------------------------
solana://keypair/currentCurrent session keypair info
solana://keypair/{id}Specific keypair by ID
solana://address/{address}Address validation details

Prompts (3)

PromptDescription
---------------------
generate-walletGuide user through wallet generation
vanity-addressGuide vanity address generation with difficulty estimate
security-reviewReview security of wallet operations

Session State Management

class SolanaWalletMCPServer {
    private sessionKeypair: Keypair | null = null;

    generateKeypair(): KeypairInfo {
        if (this.sessionKeypair) {
            this.sessionKeypair.secretKey.fill(0); // zeroize old
        }
        this.sessionKeypair = Keypair.generate();
        return this.getKeypairInfo();
    }
}

Security Model

  • Session keypair is zeroized when replaced or server shuts down
  • No network calls for key generation
  • All crypto uses @solana/web3.js only
  • Zod schemas validate all tool inputs
  • Secret key bytes are never logged or exposed in resources

Patterns to Follow

  • Validate all inputs with Zod schemas before processing
  • Zeroize secret keys when replaced or on shutdown
  • Return structured JSON for all tool responses
  • Use descriptive error messages for validation failures
  • Keep session state minimal — one active keypair at a time

Common Pitfalls

  • Session keypair is ephemeral — lost when server restarts
  • generate_vanity is single-threaded — long prefixes will be slow
  • sign_message requires an active session keypair — generate_keypair first
  • Resource URIs are case-sensitive

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 22:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,370
developer-tools

Pump Sdk Core

speraxos
构建并扩展核心 Pump SDK — 一个离线优先的 TypeScript SDK,用于生成 Solana TransactionInstructions,涵盖代币创建、购买、出售、迁移等...
★ 0 📥 560
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,832