Cover image
Try Now
2025-04-08

solana mcp sever to enable solana rpc methods

3 years

Works with Finder

1

Github Watches

6

Github Forks

18

Github Stars

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

  • SOLANA_RPC_URL: (Optional) The Solana RPC endpoint to use. Defaults to "https://api.mainnet-beta.solana.com" if not specified.

Development

Prerequisites

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

Building

cargo build

Running

cargo run

License

MIT License

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • WILLIAM JOEL FOTEPING
  • Friendly music guide for 60s-2000s songs, with links to listen online.

  • momi
  • Provides initial medical assessments and advice.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • justmywyw
  • Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.

  • KasarLabs
  • Build powerful and secure AI Agents powered by Starknet.

    Reviews

    1 (1)
    Avatar
    user_QMOdSgnF
    2025-04-15

    As a dedicated user of Documentation MCP Server with Python SDK by Shivansh12t, I am thoroughly impressed with its seamless integration and user-friendly interface. The comprehensive documentation and Python SDK facilitate efficient development and smooth server management. This tool has significantly streamlined my workflow and boosted productivity. Highly recommend it!