Solana MCP Server

by MCP-Mirror

296 downloads
Not rated
GitHub

About

A Model Context Protocol server for interacting with the Solana blockchain, providing simple RPC endpoints for common operations like checking slots, balances, and transferring SOL. It is intended for developers and users who want to query or transact on Solana through natural…

Details

Author
MCP-Mirror
Downloads
296
Categories
Other

- Get the current slot number on Solana.
- Check account balances for any address.
- Retrieve detailed account information.
- Display keypair information.
- Transfer SOL between accounts.

Clone the repository, install dependencies with npm install, build with npm run build, then add the tool to your claude_desktop_config.json using "command": "node" with the path to build/index.js. You can then ask Claude queries such as “whats the latest slot on solana?” or “transfer 0.001 SOL to [address]” using a test key.

Solana MCP Server

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

Features

- Get current slot number
- Check account balances
- Get detailed account information
- Display keypair information
- Transfer SOL between accounts

Quickstart

clone and install dependencies:

git clone https://github.com/yourusername/solana-mcp-server.git
cd solana-mcp-server
npm install

build the tool

npm run build

add the tool to your claude_desktop_config.json

"solana-rpc": {
"command": "node",
"args": [
"/PATH/TO/solana-mcp-server/build/index.js"
]
}

Usage

Ask Claude:
- whats the latest slot on solana?
- whats the balance of 62QXuWZ3WT6ws1ZFxJobVDVXn6bEsiYpLo5yG612U6u3?
- Here's my test key [REPLACE WITH SECRET KEY]. let's transfer 0.001 SOL to [REPLACE WITH PUBLIC ADDRESS]

Security Note

Only use this with a test wallet with a small amount of funds.

RPC Endpoint

The server connects to Solana's mainnet at https://api.mainnet-beta.solana.com. To use a different network (like devnet or testnet), modify the SOLANA_RPC constant in src/index.ts.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.