Solana MCP server for wallet, transactions & programs
Full Solana blockchain MCP server. 25 tools for wallet management, SPL token operations, DeFi, staking, and network queries. Built on @solana/web3.js and @solana/spl-token with Anchor support.
The most actively maintained Solana MCP. Covers the complete SPL token lifecycle (create, mint, burn, freeze, thaw, delegate, authority management) that competitors skip.
npx solana-mcp-server
Or install globally:
npm install -g solana-mcp-server
solana-mcp-server
Add to your MCP config (claude_desktop_config.json or ~/.mcp.json):
{
"mcpServers": {
"solana": {
"command": "npx",
"args": ["-y", "solana-mcp-server"],
"env": {
"SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
}
}
}
}
| Tool | Description | Key Params |
|---|---|---|
create_wallet | Create a new Solana keypair (in-memory only) | -- |
import_wallet | Import from a base58-encoded private key | privateKey |
list_wallets | List all wallets in the current session | -- |
get_balance | Get SOL balance for any address | address |
| Tool | Description | Key Params |
|---|---|---|
create_spl_token | Create a new SPL token with custom decimals | walletName, decimals |
mint_tokens | Mint tokens to any address | walletName, tokenMint, amount |
burn_tokens | Burn tokens from an account | walletName, tokenMint, amount |
freeze_account | Freeze a token account | walletName, tokenMint, accountAddress |
thaw_account | Unfreeze a token account | walletName, tokenMint, accountAddress |
set_token_authority | Change token authority (mint, freeze, owner, close) | walletName, tokenMint, authorityType |
get_token_supply | Total supply and metadata for a token | tokenMint |
close_token_account | Close an account and reclaim rent | walletName, tokenAccount |
approve_delegate | Approve a delegate for token transfers | walletName, tokenAccount, delegate, amount |
revoke_delegate | Revoke delegate approval | walletName, tokenAccount |
| Tool | Description | Key Params |
|---|---|---|
transfer_sol | Transfer SOL between wallets | from, to, amount |
transfer_tokens | Transfer SPL tokens | from, to, tokenMint, amount |
airdrop_sol | Request SOL airdrop (devnet/testnet only) | address, amount |
| Tool | Description | Key Params |
|---|---|---|
get_account_info | Detailed account information | address |
get_transaction | Transaction details by signature | signature |
create_token_account | Create an associated token account | walletName, tokenMint |
get_token_accounts | List all token accounts for a wallet | address |
| Tool | Description | Key Params |
|---|---|---|
get_token_balance | SPL token balance for a specific account | address, tokenMint |
| Tool | Description | Key Params |
|---|---|---|
switch_network | Switch between mainnet, devnet, testnet, localhost | network |
get_network_info | Current network status and info | -- |
get_recent_blockhash | Recent blockhash for transaction building | -- |
@coral-xyz/anchor support for interacting with Anchor programs alongside raw SPL token operations.| Network | Endpoint |
|---|---|
mainnet | https://api.mainnet-beta.solana.com |
devnet | https://api.devnet.solana.com |
testnet | https://api.testnet.solana.com |
localhost | http://127.0.0.1:8899 |
| Variable | Required | Description |
|---|---|---|
SOLANA_RPC_URL | No | Solana RPC endpoint (default: mainnet) |
git clone https://github.com/ExpertVagabond/solana-mcp-server.git
cd solana-mcp-server
npm install
npm run build
npm start
npm test # Basic functionality tests
npm run type-check # TypeScript type checking
npm run lint # ESLint
npm run quality # Full quality check (lint + types + tests)
MIT -- Purple Squirrel Media
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y solana-mcp-serverMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-expertvagabond-solana": {
"command": "npx",
"args": [
"-y",
"solana-mcp-server"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencesolana-mcp-servernpmio.github.ExpertVagabond/solana works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.