Solana MCP Server

Solana MCP Server

By MCP-Mirror GitHub

Mirror of

solana mcp-server
Overview

What is Solana MCP Server?

The Solana MCP Server is a Model Context Protocol (MCP) server that provides comprehensive access to Solana blockchain data through Cline, implementing a wide range of Solana RPC methods for easy querying of blockchain information via natural language.

How to use Solana MCP Server?

To use the Solana MCP Server, configure it in your Cline MCP settings file and restart Cline. You can then interact with the Solana blockchain using natural language queries.

Key features of Solana MCP Server?

  • Provides 21 essential Solana RPC methods for various operations.
  • Supports account and balance operations, block and transaction information, token operations, system information, and staking & governance.
  • Allows natural language interaction for querying blockchain data.

Use cases of Solana MCP Server?

  1. Querying SOL balance for a specific address.
  2. Retrieving information about the latest block on the Solana blockchain.
  3. Checking the current inflation rate of the Solana network.

FAQ from Solana MCP Server?

  • What RPC methods are available?

The server provides methods for account operations, block information, token operations, and more.

  • Do I need to specify an RPC URL?

You can use the default RPC URL or specify your own in the environment variables.

  • What are the prerequisites for development?

You need Rust, Cargo, and optionally Solana CLI tools for testing.

Content

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.

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

No tools information available.

Mirror of

image-generation mcp-server
View Details

Secure MCP server for analyzing Excel files with oletools

oletools mcp-server
View Details

Mirror of

bigquery mcp-server
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details
Dealx
Dealx by DealExpress

-

dealx mcp-server
View Details

Google Analytics MCP server for accessing analytics data through tools and resources

google-analytics mcp-server
View Details

A Python-based MCP server that lets Claude run boto3 code to query and manage AWS resources. Execute powerful AWS operations directly through Claude with proper sandboxing and containerization. No need for complex setups - just pass your AWS credentials and start interacting with all AWS services.

aws mcp-server
View Details