Solana MCP Server logo

Solana MCP Server

by MCP-Mirror

A Model-Context-Protocol server for interacting with the Solana blockchain. This server provides simple RPC endpoints for common Solana operations.

View on GitHub

Last updated: N/A

What is Solana MCP Server?

The Solana MCP Server is a server that provides simple RPC endpoints for interacting with the Solana blockchain, allowing users to easily perform common operations.

How to use Solana MCP Server?

First, clone the repository and install dependencies using npm install. Then, build the tool with npm run build. Finally, add the tool to your claude_desktop_config.json file with the correct path to the built index.js file. You can then interact with the server through Claude by asking questions or providing commands.

Key features of Solana MCP Server

  • Get current slot number

  • Check account balances

  • Get detailed account information

  • Display keypair information

  • Transfer SOL between accounts

Use cases of Solana MCP Server

  • Checking the latest Solana slot

  • Retrieving account balances

  • Inspecting account details

  • Transferring SOL between test accounts

  • Integrating Solana functionality into applications

FAQ from Solana MCP Server

What network does the server connect to by default?

The server connects to Solana's mainnet at https://api.mainnet-beta.solana.com.

Can I use a different Solana network?

Yes, you can modify the SOLANA_RPC constant in src/index.ts to use a different network like devnet or testnet.

Is it safe to use this with my main Solana wallet?

No, the README explicitly states to only use this with a test wallet with a small amount of funds.

What kind of questions can I ask Claude?

You can ask questions like 'whats the latest slot on solana?', 'whats the balance of [address]?', or give commands like 'transfer 0.001 SOL to [address]'.

Where can I find the claude_desktop_config.json file?

The location of this file depends on your Claude installation. Please refer to Claude's documentation for the exact path.