6rz6/SOLANA-MCP-Server
3.2
If you are the rightful owner of SOLANA-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server for interacting with the Solana blockchain.
Tools
get_balance
Get SOL balance for an address
get_account_info
Get detailed account information
get_token_accounts
Get all token accounts for a wallet
get_transaction_history
Get transaction history
get_token_info
Get token metadata
get_network_stats
Get network statistics
SOLANA-MCP-Server
A Model Context Protocol (MCP) server for interacting with the Solana blockchain. This server provides tools to query account balances, transaction history, token information, and network statistics.
Features
- Account Operations: Get balance and account information
- Token Management: Query token accounts and token metadata
- Transaction History: Fetch transaction history for any address
- Network Statistics: Get current network status and epoch info
- Multi-Network Support: Mainnet, Devnet, and Testnet
Installation
git clone https://github.com/6rz6/SOLANA-MCP-Server.git
cd SOLANA-MCP-Server
npm install
npm run build
Usage
MCP Configuration
Add to your MCP settings:
{
"mcpServers": {
"solana": {
"command": "node",
"args": ["/path/to/SOLANA-MCP-Server/build/index.js"],
"env": {
"SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
}
}
}
}
Available Tools
- get_balance - Get SOL balance for an address
- get_account_info - Get detailed account information
- get_token_accounts - Get all token accounts for a wallet
- get_transaction_history - Get transaction history
- get_token_info - Get token metadata
- get_network_stats - Get network statistics
Examples
# Get balance
get_balance("7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU")
# Get token accounts
get_token_accounts("7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU")
# Get network stats
get_network_stats()
Environment Variables
SOLANA_RPC_URL
: Custom RPC endpoint (defaults to mainnet-beta)
Development
npm run dev # Watch mode
npm run build # Build TypeScript
License
MIT