Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

solana-mcp-server

MCP.Pizza Chef: aldrin-labs

The Solana MCP Server is a Model Context Protocol server that provides extensive access to Solana blockchain data through a natural language interface. It implements over 21 essential Solana RPC methods covering account balances, token balances, account info, largest accounts, block details, transaction data, and more. This server allows developers and applications to query Solana blockchain information seamlessly within conversational AI workflows, enabling real-time blockchain insights and interactions. It supports key blockchain operations such as retrieving SOL and SPL token balances, fetching block and transaction details, and monitoring network slots, making it a powerful tool for integrating Solana data into AI-driven environments.

Use This MCP server To

Query SOL and SPL token balances via natural language Retrieve detailed Solana account information instantly Fetch block data and production times on demand Access transaction details for auditing or analysis Monitor current network slot and blockchain state Integrate Solana blockchain data into AI workflows Enable conversational agents to answer Solana queries Support blockchain explorers with real-time data access

README

Solana MCP Server

A Model Context Protocol (MCP) server that provides comprehensive access to Solana blockchain data through Cline. This server implements a wide range of Solana RPC methods, making it easy to query blockchain information directly through natural language conversations.

solana-mcp-server MCP server

Features

The server provides 21 essential Solana RPC methods across different categories:

Account & Balance Operations

  • get_sol_balance: Get SOL balance for an address
  • get_token_balance: Get SPL token balance
  • get_account_info: Get account information
  • get_largest_accounts: Get largest accounts on network

Block & Transaction Information

  • get_slot: Get current slot
  • get_block: Get block information
  • get_block_time: Get block production time
  • get_transaction: Get transaction details
  • get_recent_blockhash: Get recent blockhash

Token Operations

  • get_token_accounts_by_owner: Get token accounts by owner
  • get_token_accounts_by_delegate: Get delegated token accounts
  • get_token_supply: Get token supply information

System Information

  • get_epoch_info: Get current epoch information
  • get_version: Get node version
  • get_health: Get node health status
  • get_supply: Get current supply
  • get_inflation_rate: Get inflation rate
  • get_cluster_nodes: Get cluster node information
  • get_minimum_balance_for_rent_exemption: Get minimum rent-exempt balance

Staking & Governance

  • get_vote_accounts: Get vote accounts
  • get_leader_schedule: Get leader schedule

Setup in Cline

  1. Add the following configuration to your Cline MCP settings file (~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json on macOS):
{
  "mcpServers": {
    "solana": {
      "command": "cargo",
      "args": ["run"],
      "cwd": "/path/to/solana-mcp-server",
      "env": {
        "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"  // Or your preferred RPC endpoint
      }
    }
  }
}
  1. Restart Cline to load the new MCP server.

Usage Examples

Once configured, you can interact with the Solana blockchain through natural language in Cline. Here are some example queries:

  • "What's the SOL balance of address Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr?"
  • "Show me the current slot number"
  • "Get information about the latest block"
  • "What's the current inflation rate?"
  • "Show me the token accounts owned by address ..."

Environment Variables

Development

Prerequisites

  • Rust and Cargo
  • Solana CLI tools (optional, for testing)

Building

cargo build

Running

cargo run

License

MIT License

solana-mcp-server FAQ

How do I install the solana-mcp-server?
You can install the solana-mcp-server by cloning its GitHub repository and following the setup instructions provided in the README. It requires a running Solana node or access to a Solana RPC endpoint.
Can the solana-mcp-server handle multiple simultaneous requests?
Yes, the solana-mcp-server is designed to handle concurrent requests efficiently, making it suitable for integration in high-demand AI applications.
Does the solana-mcp-server support custom Solana RPC methods?
Currently, the server supports 21 core Solana RPC methods. Extending support for additional or custom methods may require modifying the server codebase.
How does the solana-mcp-server ensure data accuracy?
The server queries live Solana RPC endpoints directly, ensuring up-to-date and accurate blockchain data. It relies on the underlying Solana network's integrity.
Is the solana-mcp-server compatible with different LLM providers?
Yes, it is provider-agnostic and can be integrated with LLMs like OpenAI, Anthropic Claude, and Google Gemini for natural language querying.
What security considerations are there when using solana-mcp-server?
Secure access to Solana RPC endpoints and proper authentication should be implemented. The server itself does not store sensitive data but acts as a proxy to blockchain data.
Can I use solana-mcp-server for real-time blockchain monitoring?
Yes, by querying slots, blocks, and transactions, you can build real-time monitoring tools using this server.
How do I update the solana-mcp-server to the latest version?
Pull the latest changes from the GitHub repository and redeploy the server following the update instructions in the README.