MCP Server

A Model Context Protocol server that exposes Solana wallet operations to AI assistants like Claude.

Installation

cd mcp-server
npm install
npm run build

Claude Desktop Setup

Add this to your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or equivalent:

{
  "mcpServers": {
    "solana-wallet": {
      "command": "node",
      "args": ["/path/to/mcp-server/dist/index.js"]
    }
  }
}

Available Tools

ToolDescription
generate_keypairGenerate a new Solana keypair
generate_vanityGenerate a vanity address with prefix/suffix
sign_messageSign a message with a keypair
verify_signatureVerify a message signature
validate_addressValidate a Solana address format
estimate_vanity_timeEstimate time to find a vanity address
restore_keypairRestore keypair from seed phrase or private key

Resources

URIDescription
solana://configServer configuration
solana://keypair/{id}Access generated keypairs (public key only)
solana://address/{pubkey}Address information

Prompts

PromptDescription
create_walletGuided wallet creation workflow
security_auditSecurity best practices checklist
batch_generateGenerate multiple keypairs at once

Security

⚠ CRITICAL: This server handles cryptocurrency private keys.

  • Private keys are never logged or persisted to disk
  • Keys are zeroized from memory on shutdown
  • All inputs are strictly validated
  • Uses official Solana libraries only

Protocol version: 2024-11-05

View source on GitHub ↗