solana.com
solana.com logo

Solana

Integrates with Solana's blockchain to enable querying account data, managing tokens, and analyzing transactions using a...

Created byApr 22, 2025

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.

Installation

Using Pre-built Binaries

  1. Go to the Releases page
  1. Download the appropriate binary for your system:
  1. Make the binary executable (Linux/macOS):
  1. Configure Claude Desktop:

Building from Source

Available RPC Methods

Account Methods

  • getAccountInfo: Returns all information associated with the account of provided Pubkey
  • getMultipleAccounts: Returns account information for a list of Pubkeys
  • getProgramAccounts: Returns all accounts owned by the provided program Pubkey
  • getBalance: Returns the SOL balance of an account
  • getLargestAccounts: Returns the 20 largest accounts by lamport balance

Block Methods

  • getBlock: Returns identity and transaction information about a confirmed block
  • getBlocks: Returns a list of confirmed blocks between two slots
  • getBlocksWithLimit: Returns a list of confirmed blocks starting at given slot
  • getBlockTime: Returns estimated production time of a block
  • getBlockHeight: Returns current block height
  • getBlockCommitment: Returns commitment for particular block
  • getBlockProduction: Returns recent block production information

System Methods

  • getHealth: Returns current health status of the node
  • getVersion: Returns current Solana version running on the node
  • getIdentity: Returns identity pubkey for the current node
  • getClusterNodes: Returns information about all cluster nodes
  • getVoteAccounts: Returns account info and stake for all voting accounts

Epoch and Inflation Methods

  • getEpochInfo: Returns information about the current epoch
  • getEpochSchedule: Returns epoch schedule information
  • getInflationGovernor: Returns current inflation governor
  • getInflationRate: Returns specific inflation values for current epoch
  • getInflationReward: Returns inflation reward for list of addresses

Token Methods

  • getTokenAccountBalance: Returns token balance of an SPL Token account
  • getTokenAccountsByDelegate: Returns all token accounts by approved delegate
  • getTokenAccountsByOwner: Returns all token accounts by token owner
  • getTokenLargestAccounts: Returns 20 largest accounts of a token type
  • getTokenSupply: Returns total supply of an SPL Token type

Transaction Methods

  • getTransaction: Returns transaction details for confirmed transaction
  • getSignaturesForAddress: Returns signatures for address's transactions
  • getSignatureStatuses: Returns statuses of a list of signatures
  • getTransactionCount: Returns current Transaction count from ledger
  • simulateTransaction: Simulate sending a transaction
  • sendTransaction: Send a transaction

Other Methods

  • getFeeForMessage: Get the fee for a message
  • getLatestBlockhash: Returns the latest blockhash
  • isBlockhashValid: Returns whether a blockhash is still valid
  • getStakeMinimumDelegation: Returns stake minimum delegation
  • getSupply: Returns information about current supply
  • requestAirdrop: Request an airdrop of lamports to a Pubkey

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

Running

License

MIT License

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.

Installation

Using Pre-built Binaries

  1. Go to the Releases page
  1. Download the appropriate binary for your system:
  1. Make the binary executable (Linux/macOS):
  1. Configure Claude Desktop:

Building from Source

Available RPC Methods

Account Methods

  • getAccountInfo: Returns all information associated with the account of provided Pubkey
  • getMultipleAccounts: Returns account information for a list of Pubkeys
  • getProgramAccounts: Returns all accounts owned by the provided program Pubkey
  • getBalance: Returns the SOL balance of an account
  • getLargestAccounts: Returns the 20 largest accounts by lamport balance

Block Methods

  • getBlock: Returns identity and transaction information about a confirmed block
  • getBlocks: Returns a list of confirmed blocks between two slots
  • getBlocksWithLimit: Returns a list of confirmed blocks starting at given slot
  • getBlockTime: Returns estimated production time of a block
  • getBlockHeight: Returns current block height
  • getBlockCommitment: Returns commitment for particular block
  • getBlockProduction: Returns recent block production information

System Methods

  • getHealth: Returns current health status of the node
  • getVersion: Returns current Solana version running on the node
  • getIdentity: Returns identity pubkey for the current node
  • getClusterNodes: Returns information about all cluster nodes
  • getVoteAccounts: Returns account info and stake for all voting accounts

Epoch and Inflation Methods

  • getEpochInfo: Returns information about the current epoch
  • getEpochSchedule: Returns epoch schedule information
  • getInflationGovernor: Returns current inflation governor
  • getInflationRate: Returns specific inflation values for current epoch
  • getInflationReward: Returns inflation reward for list of addresses

Token Methods

  • getTokenAccountBalance: Returns token balance of an SPL Token account
  • getTokenAccountsByDelegate: Returns all token accounts by approved delegate
  • getTokenAccountsByOwner: Returns all token accounts by token owner
  • getTokenLargestAccounts: Returns 20 largest accounts of a token type
  • getTokenSupply: Returns total supply of an SPL Token type

Transaction Methods

  • getTransaction: Returns transaction details for confirmed transaction
  • getSignaturesForAddress: Returns signatures for address's transactions
  • getSignatureStatuses: Returns statuses of a list of signatures
  • getTransactionCount: Returns current Transaction count from ledger
  • simulateTransaction: Simulate sending a transaction
  • sendTransaction: Send a transaction

Other Methods

  • getFeeForMessage: Get the fee for a message
  • getLatestBlockhash: Returns the latest blockhash
  • isBlockhashValid: Returns whether a blockhash is still valid
  • getStakeMinimumDelegation: Returns stake minimum delegation
  • getSupply: Returns information about current supply
  • requestAirdrop: Request an airdrop of lamports to a Pubkey

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

Running

License

MIT License