Integrations
Manages environment variables for secure storage of Solana private keys and RPC URLs.
Provides a web server framework for exposing the Solana wallet operations through RESTful API endpoints and handling HTTP requests.
Offers testing capabilities for validating the functionality of the Solana wallet operations.
Solana Vault MCP
A Model Context Protocol (MCP) implementation for secure Solana blockchain wallet operations in python.
Overview
Solana Vault MCP provides secure wallet operations for Solana blockchain through a standardized Model Context Protocol interface. It allows AI assistants to securely interact with the Solana blockchain without direct access to private keys.
Features
- Secure Solana wallet operations
- SOL balance checking
- SOL transfer capabilities
- Transaction history retrieval
- Model Context Protocol compliant API
- Support for Flask web server and WebSocket connections
- Detailed logging and error handling
Installation
Prerequisites
- Python 3.9+
- pip
Setup
- Clone the repository:Copy
- Create and activate a virtual environment:Copy
- Install dependencies:Copy
- Create a
.env
file based on.env.example
:Copy - Edit the
.env
file to add your Solana private key and RPC URL.
Usage
Starting the Server
The server will start on the port specified in your .env
file (default: 5000).
API Endpoints
GET /
- Welcome page with service informationGET /health
- Health check endpointGET /api/mcp/ping
- MCP service health checkPOST /api/mcp/query
- Main MCP query endpoint
MCP Actions
The Solana Vault MCP supports the following actions:
wallet.info
- Get wallet informationwallet.balance
- Get SOL balancewallet.transfer
- Transfer SOL to another walletwallet.transactions
- Get recent transactionswallet.token_balance
- Get token balance for a specific token
Example Query
Response:
Development
Project Structure
Running Tests
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
This server cannot be installed
A secure Model Context Protocol server that enables AI assistants to interact with the Solana blockchain without direct access to private keys, supporting operations like balance checking, SOL transfers, and transaction history retrieval.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables Claude AI to interact with the Solana blockchain through a standardized interface, providing tools for transactions, account queries, and wallet management.Last updated -5972Apache 2.0
- -securityAlicense-qualityA Model Context Protocol server enabling AI agents to interact with the Solana blockchain for DeFi operations like checking balances, transferring tokens, executing swaps, and fetching price data.Last updated -5915TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.Last updated -TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface for operations like managing assets, executing token operations, and retrieving network information.Last updated -6TypeScript