Solana MCP Server offers comprehensive blockchain data access via Cline with 21 RPC methods for queries and analysis
The Solana MCP Server is an advanced infrastructure implementation that leverages Model Context Protocol (MCP) to provide AI applications like Claude Desktop, Continue, Cursor, and others with seamless access to real-time blockchain data. By integrating the Solana network's rich features into a standardized MCP framework, this server facilitates efficient and accurate querying of Solana blockchain information using natural language queries.
The Solana MCP Server supports 21 essential Solana RPC methods across multiple categories:
get_sol_balance
: Provides the current SOL balance for an address.get_token_balance
: Retrieves the SPL token balance associated with a given account.get_account_info
: Fetches detailed information about an account, such as its data and executable flags.get_largest_accounts
: Lists the largest accounts on the network based on their balance.get_slot
: Returns the current slot number of the Solana blockchain.get_block
: Retrieves block information by specifying a slot or block hash.get_block_time
: Obtains the timestamp at which a particular block was produced.get_transaction
: Fetches transaction details, including execution status and log messages.get_recent_blockhash
: Returns the most recent valid blockhash for transactions.get_token_accounts_by_owner
: Lists all tokens owned by a specific account.get_token_accounts_by_delegate
: Displays delegated token accounts by their owner.get_token_supply
: Provides information about the total circulating supply of an SPL token.get_epoch_info
: Offers insights into the current epoch, including its start and end slots.get_version
: Returns details about the node version running on the Solana network.get_health
: Checks the health status of the node.get_supply
: Reports the total supply of SOL tokens.get_inflation_rate
: Calculates the current inflation rate based on economic parameters.get_cluster_nodes
: Returns a list of nodes in the Solana network, useful for topology exploration.get_minimum_balance_for_rent_exemption
: Determines the minimum balance required to keep an account active.get_vote_accounts
: Exposes stake accounts participating in block production.get_leader_schedule
: Provides insights into the voting leader schedule, critical for governance stakeholders.The Solana MCP Server is architected to seamlessly integrate with AI applications by adhering closely to MCP standards. The protocol flow involves communication between the AI application, the MCP client, and finally, the Solana MCP server itself. This architecture ensures that data requests from AI queries can be efficiently processed and returned in a standardized format.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
To set up the Solana MCP Server, follow these detailed steps:
git clone https://github.com/solana-labs/solana-mcp-server.git
.cd solana-mcp-server
.cargo build
.cargo run
.Using the Solana MCP Server, you can easily track token movements by issuing natural language queries like:
The server enables automated governance analytics by allowing nodes to report on vote accounts and leader schedules with commands such as get_vote_accounts
and get_leader_schedule
.
The Solana MCP Server is designed to be compatible with several leading AI applications:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
The Solana MCP Server has been rigorously tested for performance and compatibility, ensuring seamless operation with both small and large-scale AI applications. The server's API supports a wide range of queries and provides consistent and accurate responses.
You can customize the server's behavior by setting environment variables:
SOLANA_RPC_URL
: Optional; sets the Solana RPC endpoint URL (default: https://api.mainnet-beta.solana.com
).{
"mcpServers": {
"solana": {
"command": "cargo",
"args": ["run"],
"cwd": "/path/to/solana-mcp-server",
"env": {
"SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com" // Specify your preferred RPC endpoint
}
}
}
}
make
if configured appropriately.Contributions are welcome! Whether you're fixing bugs or adding new features, follow these guidelines:
For developers looking to build on the Solana MCP framework, we provide extensive documentation and support:
By leveraging this comprehensive MCP-based infrastructure, developers can accelerate the development of AI solutions that interact seamlessly with Solana blockchain data.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods