Enables interaction with the Solana blockchain using a private key, providing capabilities to check wallet addresses, get wallet balances in multiple denominations, retrieve the latest blockchain slot, and transfer SOL between wallets.
Solana MCP Server 🌱
A MCP server to interact with the Solana blockchain with your own private key.
📖 Table of Contents
Related MCP server: Model Context Protocol Server for Solana Client
✨ Features
Get latest slot
Get wallet address
Get wallet balance
Transfer SOL
⚙️ Setup
Installing via Smithery
To install Solana MCP for Claude Desktop automatically via Smithery:
Manual Setup
Clone the repository
Install dependencies
Build the project
Create a keypair file Create a file named
keypair.jsonanywhere you want and copy your private key into it. Check the example-keypair.json file for an example.
NB: RPC endpoint is set to api.devnet.solana.com by default. If you want to use a different endpoint, you can set it in the run.sh file.
Integration with Cursor
To integrate with Cursor, follow these steps:
In the Cursor settings, go to MCP
Click "Add new MCP server"
Enter the following information:
Name: Solana MCP
Type: command
Command:
/path/to/your/solana-mcp/run.sh /path/to/your/keypair.json
Example command: /Users/username/projects/solana-mcp/run.sh /Users/username/Documents/keypair.json
🛠️ Available Tools
1. get-latest-slot
Returns the latest slot number:
2. get-wallet-address
Returns the wallet address:
3. get-wallet-balance
Returns the wallet balance in SOL, Lamports, and USD:
4. transfer
Transfers SOL to a recipient address:
🧑💻 Contributing
Contributions are welcome! Please open an issue or submit a pull request.