Solana MCP Server
local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
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
✨ Features
- Get latest slot
- Get wallet address
- Get wallet balance
- Transfer SOL
⚙️ Setup
- Clone the repository
- Install dependencies
- Build the project
- Create a keypair file
Create a file named
keypair.json
anywhere 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.
🔖 License
This server cannot be installed
A server that enables interaction with the Solana blockchain using your own private key, supporting operations like getting wallet information, checking balances, and transferring SOL.
- 📖 Table of Contents
- ✨ Features
- ⚙️ Setup
- Integration with Cursor
- 🛠️ Available Tools
- 🧑💻 Contributing
- 🔖 License