About
MCP for Solana On-Chain activity
README
Crates.io License: MIT Changelog
MCP server for Solana blockchain operations.
Demo

Install
Method 1: Prebuilt Binary (Recommended)
Warning: make sure you understand what the bash script doing before executing it
curl -fsSL https://raw.githubusercontent.com/widnyana/solana-onchain-mcp/refs/heads/main/install.sh | bash
This downloads the latest release for your platform and installs to ~/.local/bin.
Method 2: Install from crates.io
cargo install solana-onchain-mcp
Method 3: Build from Source
cargo install --git https://github.com/widnyana/solana-onchain-mcp
Requires Rust 1.85+.
Setup
Start the server first:
SOLANA_NETWORK=devnet solana-onchain-mcp --port 3000
Claude Code
.mcp.json:
{
"mcpServers": {
"solana": {
"url": "http://localhost:3000/mcp"
}
}
}
Cursor
.cursor/mcp.json:
{
"mcpServers": {
"solana": {
"url": "http://localhost:3000/mcp"
}
}
}
VS Code
.vscode/mcp.json (see MCP Server docs):
{
"servers": {
"solana": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}
With Keypair (for transfers)
Start the server with keypair support (localhost only):
SOLANA_NETWORK=devnet SOLANA_KEYPAIR_PATH=/path/to/keypair.json \
solana-onchain-mcp --http-allow-keypair --accept-risk --host 127.0.0.1 --port 3000
Then connect your client to http://localhost:3000/mcp.
Tools (19)
Read (no keypair required)
| Tool | Description |
|---|---|
get_balance |
SOL balance for address |
get_account_info |
Account data and metadata |
get_multiple_accounts |
Batch fetch up to 100 accounts |
get_token_accounts_by_owner |
SPL token accounts for wallet |
get_program_accounts |
Accounts owned by program |
get_transaction |
Transaction by signature |
get_signatures_for_address |
Transaction history for address |
get_signature_status |
Transaction confirmation status |
get_slot |
Current slot/block height |
simulate_transaction |
Test transaction without signing |
inspect_transaction_raw |
Raw transaction with program names |
inspect_transaction_humanized |
Human-readable transaction summary |
get_server_info |
Server configuration and network info |
Write (requires keypair)
| Tool | Description |
|---|---|
transfer_sol |
Transfer SOL |
transfer_token |
Transfer SPL tokens |
create_associated_token_account |
Create token account |
approve_token |
Approve token delegate |
revoke_token |
Revoke token delegate |
close_token_account |
Close unused token account |
Mainnet Usage
⚠️ WARNING: Mainnet operations involve real assets. Always:
- Test thoroughly on devnet first
- Use a dedicated wallet with minimal funds
- Verify all transaction parameters
- Set
SOLANA_ACCEPT_RISK=trueor use--accept-riskflag
See Mainnet Usage for details.
Docs
See USAGE.md for configuration, parameters, and security.
Requirements
- Rust 1.85+ (edition 2024)
- Solana RPC access
License
MIT
Installing Solana Onchain
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/widnyana/solana-onchain-mcpFAQ
Is Solana Onchain MCP free?
Yes, Solana Onchain MCP is free — one-click install via Unyly at no cost.
Does Solana Onchain need an API key?
No, Solana Onchain runs without API keys or environment variables.
Is Solana Onchain hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Solana Onchain in Claude Desktop, Claude Code or Cursor?
Open Solana Onchain on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Solana Onchain with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
