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
| Tool | Description |
|---|---|
| generate_keypair | Generate a new Solana keypair |
| generate_vanity | Generate a vanity address with prefix/suffix |
| sign_message | Sign a message with a keypair |
| verify_signature | Verify a message signature |
| validate_address | Validate a Solana address format |
| estimate_vanity_time | Estimate time to find a vanity address |
| restore_keypair | Restore keypair from seed phrase or private key |
Resources
| URI | Description |
|---|---|
| solana://config | Server configuration |
| solana://keypair/{id} | Access generated keypairs (public key only) |
| solana://address/{pubkey} | Address information |
Prompts
| Prompt | Description |
|---|---|
| create_wallet | Guided wallet creation workflow |
| security_audit | Security best practices checklist |
| batch_generate | Generate 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