Solana MCP Skill
Interact with the Solana blockchain using AI agents through the Solana MCP Skill.
This skill teaches AI agents how to interact with the Solana blockchain using the Solana MCP Server.
Setup
Add this to your MCP client configuration (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"solana-mcp": {
"command": "npx",
"args": ["-y", "@visioneth/solana-mcp@latest"],
"env": {
"PRIVATE_KEY": "your_base58_private_key_here",
"SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
}
}
}
}
PRIVATE_KEY is only required for write operations (transfers, swaps, minting). Read-only tools work without it.
Safety Rules
CRITICAL: Network Specification for Write Operations
For ANY state-changing tool (transfer_sol, transfer_token, execute_swap, create_token, mint_tokens, burn_tokens):
- You MUST ask the user which network to use if they haven't specified one
- NEVER default to mainnet-beta for write operations
- Defaulting to mainnet risks irreversible financial loss
- Read-only tools may default to mainnet-beta
Transaction Confirmation
- Always show the user what will happen before executing a write operation
- Display: amount, destination, network, and estimated fees
- Wait for explicit user confirmation
Available Tools
Wallet (7 tools)
get_balance— Get SOL balance of any addressget_account_info— Get detailed account info (owner, data size, executable)transfer_sol— Send SOL to an address (requires PRIVATE_KEY)request_airdrop— Get test SOL on devnet/testnetget_transaction— Get transaction details by signatureget_recent_transactions— Get recent transactions for an addressget_wallet_address— Get the public key from configured PRIVATE_KEY
SPL Tokens (7 tools)
get_token_balance— Check token balance for a walletget_token_info— Get mint info (decimals, supply, authorities)get_token_accounts— List all token holdings for a walletcreate_token— Create a new SPL token mintmint_tokens— Mint tokens to an addresstransfer_token— Transfer SPL tokensburn_tokens— Burn SPL tokens
DeFi (4 tools)
get_token_price— Get USD price via Jupiterget_swap_quote— Get a Jupiter swap quote with routing infoexecute_swap— Execute a token swap on Jupiterget_stake_accounts— Get staking info for a wallet
NFT (3 tools)
get_nft_metadata— Get on-chain NFT metadataget_nfts_by_owner— List all NFTs owned by a walletget_nft_collection_info— Get collection info from a sample NFT
Programs (4 tools)
is_program— Check if an address is an executable programget_program_accounts— Get accounts owned by a programread_account_data— Read raw account dataidentify_program— Look up well-known Solana programs
Analytics (5 tools)
get_tps— Current transactions per secondget_largest_token_holders— Top holders of any SPL tokenget_token_supply— Total supply infoget_sol_price— Current SOL price in USDget_largest_accounts— Biggest SOL-holding accounts
Network (8 tools)
get_epoch_info— Current epoch, slot, progressget_slot— Current slot numberget_block_height— Current block heightget_block— Block details by slotget_cluster_nodes— Validator/node infoget_supply— Total and circulating SOL supplyget_minimum_balance_for_rent— Calculate rent exemptionget_health— RPC node health check
Prompts
analyze_wallet— Full wallet analysis (balance, activity, patterns)inspect_transaction— Transaction deep-diveanalyze_token— Token supply, authorities, rug pull riskportfolio_check— All holdings for a walletswap_analysis— Pre-swap analysis with price impactanalyze_nft— NFT metadata and collection analysisanalyze_program— Program investigationtoken_research— Full token due diligence with risk scorenetwork_health— Solana network status dashboardsolana_overview— Comprehensive network overview
Networks
| Network | Use Case |
|---|---|
| mainnet-beta | Production (real funds) |
| devnet | Development and testing |
| testnet | Validator testing |
Common Workflows
Check a wallet
get_balance→ SOL balanceget_token_accounts→ All token holdingsget_recent_transactions→ Recent activity
Research a token
get_token_info→ Supply, decimals, authoritiesget_token_price→ Current USD priceget_largest_token_holders→ Distribution- Assess risk based on concentration and authorities
Execute a swap
get_token_price→ Check current pricesget_swap_quote→ Preview the swap- Confirm with user → Show price impact
execute_swap→ Execute if approved