Skip to main content
Glama
Model Context Protocol Server for Solana Client

Model Context Protocol Server for Solana Client

by tywenk

Model Context Protocol Server for Solana Client

Installing via Smithery

To install mcp-solana for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @tywenk/mcp-solana --client claude

Installation of server:

git clone git@github.com:tywenk/mcp-sol.git
cd mcp-sol
uv sync
mcp install src/server.py

Ensure the Claude desktop JSON config at /Users/{user}/Library/Application Support/Claude (on a Mac) looks something like this. Note that the uv binary and paths are all absolute.

{
  "globalShortcut": "Alt+Space",
  "mcpServers": {
    "Solana Client": {
      "command": "/Users/tywen/.local/bin/uv",
      "args": [
        "--directory",
        "/Users/tywen/Developer/mcp-sol",
        "run",
        "--with",
        "mcp",
        "mcp",
        "run",
        "/Users/tywen/Developer/mcp-sol/src/server.py"
      ]
    }
  }
}

List of tools:

get_balance
get_transaction
get_block
get_block_height
get_block_time
get_blocks
get_cluster_nodes
get_epoch_info
get_epoch_schedule
get_genesis_hash
get_identity
get_inflation_governor
get_inflation_rate
get_largest_accounts
get_latest_blockhash
get_minimum_balance_for_rent_exemption
get_program_accounts
get_recent_performance_samples
get_signature_statuses
get_slot
get_slot_leader
get_supply
get_token_account_balance
get_token_largest_accounts
get_transaction_count
get_version
get_vote_accounts
is_connected
get_block_commitment
confirm_transaction
get_account_info
get_fee_for_message
get_first_available_block
get_inflation_reward
get_leader_schedule
get_minimum_ledger_slot
get_multiple_accounts
get_signatures_for_address
get_token_accounts_by_delegate
get_token_accounts_by_owner
get_token_supply
request_airdrop
send_transaction
validator_exit

Available Tools

44 tools
confirm_transactionB

Confirm the transaction identified by the specified signature.

Args: tx_sig (str): Transaction signature to confirm commitment (Optional[str]): Bank state to query ("finalized", "confirmed" or "processed")

Returns: str: Transaction confirmation status

Inputs: tx_sig (required), commitment.

get_account_infoB

Returns all account info for the specified public key.

Args: pubkey (str): Pubkey of account to query encoding (str): Encoding for Account data ("base58", "base64", or "jsonParsed")

Returns: str: Account information

Inputs: pubkey (required), encoding.

get_balanceB

Returns the balance of the account of provided Pubkey.

Args: address (str): Pubkey of account to query

Returns: str: Account balance response in the format "Balance of {address}: {balance}"

Inputs: address (required).

get_blockA

Returns identity and transaction information about a confirmed block in the ledger.

Args: slot (int): Slot number as u64 integer

Returns: str: Block information in the format "Block: {block}"

Inputs: slot (required).

get_block_commitmentB

Fetch the commitment for particular block.

Args: slot (int): Block slot number to query

Returns: str: Block commitment information

Inputs: slot (required).

get_block_heightB

Returns the current block height of the node.

Returns: str: Current block height in the format "Block height: {height}"

Inputs: no named parameters.

get_blocksB

Returns a list of confirmed blocks between two slots.

Args: start_slot (int): Start slot as u64 integer end_slot (Optional[int], optional): End slot as u64 integer. Defaults to None.

Returns: str: List of blocks in the format "Blocks: {blocks}"

Inputs: start_slot (required), end_slot.

get_block_timeC

Fetch the estimated production time of a block.

Args: slot (int): Block slot number

Returns: str: Block time in the format "Block time: {time}"

Inputs: slot (required).

get_cluster_nodesB

Returns information about all the nodes participating in the cluster.

Returns: str: Cluster nodes information in the format "Cluster nodes: {nodes}"

Inputs: no named parameters.

get_epoch_infoB

Returns information about the current epoch.

Returns: str: Epoch information in the format "Epoch info: {info}"

Inputs: no named parameters.

get_epoch_scheduleB

Returns epoch schedule information from this cluster's genesis config.

Returns: str: Epoch schedule in the format "Epoch schedule: {schedule}"

Inputs: no named parameters.

get_fee_for_messageC

Returns the fee for a message.

Args: from_pubkey (str): Sender's public key to_pubkey (str): Recipient's public key lamports (int): Amount of lamports to transfer

Returns: str: Fee information

Inputs: from_pubkey (required), lamports (required), to_pubkey (required).

get_first_available_blockB

Returns the slot of the lowest confirmed block available.

Returns: str: First available block information

Inputs: no named parameters.

get_genesis_hashB

Returns the genesis hash.

Returns: str: Genesis hash in the format "Genesis hash: {hash}"

Inputs: no named parameters.

get_identityA

Returns the identity pubkey for the current node.

Returns: str: Node identity in the format "Node identity: {identity}"

Inputs: no named parameters.

get_inflation_governorB

Returns the current inflation governor.

Returns: str: Inflation governor info in the format "Inflation governor: {governor}"

Inputs: no named parameters.

get_inflation_rateB

Returns the specific inflation values for the current epoch.

Returns: str: Inflation rate info in the format "Inflation rate: {rate}"

Inputs: no named parameters.

get_inflation_rewardB

Returns the inflation/staking reward for a list of addresses for an epoch.

Args: pubkeys (list[str]): List of account addresses epoch (Optional[int]): Epoch for which to calculate rewards

Returns: str: Inflation reward information

Inputs: pubkeys (required), epoch.

get_largest_accountsB

Returns the 20 largest accounts, by lamport balance.

Returns: str: Largest accounts info in the format "Largest accounts: {accounts}"

Inputs: no named parameters.

get_latest_blockhashA

Returns the latest block hash from the ledger.

Returns: str: Latest blockhash in the format "Latest blockhash: {blockhash}"

Inputs: no named parameters.

get_leader_scheduleC

Returns the leader schedule for an epoch.

Args: epoch (Optional[int]): Epoch to get schedule for

Returns: str: Leader schedule information

Inputs: epoch.

get_minimum_balance_for_rent_exemptionB

Returns minimum balance required to make account rent exempt.

Args: size (int): Account data length

Returns: str: Minimum balance in the format "Minimum balance for rent exemption: {balance}"

Inputs: size (required).

get_minimum_ledger_slotB

Returns the lowest slot that the node has information about in its ledger.

Returns: str: Minimum ledger slot information

Inputs: no named parameters.

get_multiple_accountsC

Returns the account information for a list of public keys.

Args: pubkeys (list[str]): List of account public keys encoding (str): Encoding for the account data

Returns: str: Multiple accounts information

Inputs: pubkeys (required), encoding.

get_program_accountsB

Returns all accounts owned by the provided program Pubkey.

Args: program_id (str): Pubkey of program to query

Returns: str: Program accounts in the format "Program accounts: {accounts}"

Inputs: program_id (required).

get_recent_performance_samplesB

Returns a list of recent performance samples, in reverse slot order.

Args: limit (Optional[int], optional): Number of samples to return (maximum 720). Defaults to None.

Returns: str: Performance samples in the format "Performance samples: {samples}"

Inputs: limit.

get_signatures_for_addressB

Returns confirmed signatures for transactions involving an address.

Args: account (str): Account address to query before (Optional[str]): Start searching backwards from this signature until (Optional[str]): Search until this signature limit (Optional[int]): Maximum number of signatures to return

Returns: str: Signatures information

Inputs: account (required), before, limit, until.

get_signature_statusesC

Returns the statuses of a list of signatures.

Args: signatures (list[str]): List of transaction signatures to confirm

Returns: str: Signature statuses in the format "Signature statuses: {statuses}"

Inputs: signatures (required).

get_slotB

Returns the current slot the node is processing.

Returns: str: Current slot in the format "Current slot: {slot}"

Inputs: no named parameters.

get_slot_leaderB

Returns the current slot leader.

Returns: str: Slot leader in the format "Slot leader: {leader}"

Inputs: no named parameters.

get_supplyB

Returns information about the current supply.

Returns: str: Supply information in the format "Supply info: {supply}"

Inputs: no named parameters.

get_token_account_balanceA

Returns the token balance of an SPL Token account.

Args: token_account (str): Pubkey of Token account to query

Returns: str: Token account balance in the format "Token account balance: {balance}"

Inputs: token_account (required).

get_token_accounts_by_delegateC

Returns all SPL Token accounts by approved delegate.

Args: delegate (str): Public key of delegate owner mint (str): Token mint address

Returns: str: Token accounts information

Inputs: delegate (required), mint (required).

get_token_accounts_by_ownerC

Returns all SPL Token accounts by token owner.

Args: owner (str): Public key of token owner mint (str): Token mint address

Returns: str: Token accounts information

Inputs: mint (required), owner (required).

get_token_largest_accountsB

Returns the 20 largest accounts of a particular SPL Token type.

Args: mint (str): Pubkey of token mint to query

Returns: str: Largest token accounts in the format "Largest token accounts: {accounts}"

Inputs: mint (required).

get_token_supplyC

Returns the total supply of an SPL Token type.

Args: mint (str): Public key of token mint

Returns: str: Token supply information

Inputs: mint (required).

get_transactionB

Returns transaction details for a confirmed transaction.

Args: hash (str): Transaction signature as base-58 encoded string

Returns: str: Transaction details in the format "Transaction: {transaction}"

Inputs: hash (required).

get_transaction_countA

Returns the current Transaction count from the ledger.

Returns: str: Transaction count in the format "Transaction count: {count}"

Inputs: no named parameters.

get_versionB

Returns the current solana versions running on the node.

Returns: str: Version information in the format "Version info: {version}"

Inputs: no named parameters.

get_vote_accountsB

Returns the account info and associated stake for all the voting accounts in the current bank.

Returns: str: Vote accounts information in the format "Vote accounts: {accounts}"

Inputs: no named parameters.

is_connectedB

Health check to verify if the client is connected.

Returns: str: Connection status in the format "Connected: {connected}"

Inputs: no named parameters.

request_airdropC

Request an airdrop of lamports to a Pubkey.

Args: address (str): Public key of recipient lamports (int): Amount of lamports to request

Returns: str: Airdrop request result

Inputs: address (required), lamports (required).

send_transactionC

Send a transaction that has already been signed and serialized into the wire format.

Args: txn (bytes): Signed transaction as bytes

Returns: str: Transaction send result

Inputs: txn (required).

validator_exitC

Request to have the validator exit.

Returns: str: Validator exit request result

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 44 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific Solana blockchain operations, such as account queries, block retrieval, transaction handling, and token operations. The descriptions precisely define unique functions with no overlapping responsibilities, making tool selection unambiguous for an agent.

    Naming Consistency5/5

    All tools follow a consistent verb_noun naming pattern (e.g., get_account_info, confirm_transaction, request_airdrop). The naming is uniformly snake_case throughout, with clear and predictable structures that enhance readability and predictability.

    Tool Count2/5

    With 44 tools, the count is excessive for a single server, likely overwhelming for agents and causing decision fatigue. While Solana is a complex domain, this many tools suggests poor scoping, as many could be consolidated or omitted without losing functionality.

    Completeness5/5

    The toolset provides comprehensive coverage of Solana client operations, including account management, transaction processing, block queries, token functions, network info, and administrative actions. There are no obvious gaps; it supports full CRUD and lifecycle workflows for the domain.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      Not graded
      maintenance
      A server that provides simple RPC endpoints for common Solana blockchain operations, allowing users to check balances, get account information, and transfer SOL between accounts.
      5
      1
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Solana blockchain interaction server that allows AI tools to query blockchain data using natural language, access structured token information, and generate human-readable explanations of complex blockchain concepts.
      6
      MIT