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.
Supports WebSocket connections for real-time communications with the Solana blockchain services.
Enables secure wallet operations on the Solana blockchain, including checking SOL balances, transferring SOL, retrieving transaction history, and checking token balances, all without direct access to private keys.
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.
Related MCP server: Solana MCP Server
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:
git clone https://github.com/olaxbt/solana-vault-mcp.git cd solana-vault-mcpCreate and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtCreate a
.envfile based on.env.example:cp .env.example .envEdit the
.envfile 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.