Skip to main content
Glama

Model Context Protocol Server for Solana Client

by tywenk

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_balance

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}"

get_transaction

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}"

get_block

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}"

get_block_height

Returns the current block height of the node.

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

get_block_time

Fetch the estimated production time of a block.

Args: slot (int): Block slot number

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

get_blocks

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}"

get_cluster_nodes

Returns information about all the nodes participating in the cluster.

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

get_epoch_info

Returns information about the current epoch.

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

get_epoch_schedule

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

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

get_genesis_hash

Returns the genesis hash.

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

get_identity

Returns the identity pubkey for the current node.

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

get_inflation_governor

Returns the current inflation governor.

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

get_inflation_rate

Returns the specific inflation values for the current epoch.

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

get_largest_accounts

Returns the 20 largest accounts, by lamport balance.

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

get_latest_blockhash

Returns the latest block hash from the ledger.

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

get_minimum_balance_for_rent_exemption

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}"

get_program_accounts

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}"

get_recent_performance_samples

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}"

get_signature_statuses

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}"

get_slot

Returns the current slot the node is processing.

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

get_slot_leader

Returns the current slot leader.

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

get_supply

Returns information about the current supply.

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

get_token_account_balance

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}"

get_token_largest_accounts

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}"

get_transaction_count

Returns the current Transaction count from the ledger.

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

get_version

Returns the current solana versions running on the node.

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

get_vote_accounts

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}"

is_connected

Health check to verify if the client is connected.

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

get_block_commitment

Fetch the commitment for particular block.

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

Returns: str: Block commitment information

confirm_transaction

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

get_account_info

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

get_fee_for_message

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

get_first_available_block

Returns the slot of the lowest confirmed block available.

Returns: str: First available block information

get_inflation_reward

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

get_leader_schedule

Returns the leader schedule for an epoch.

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

Returns: str: Leader schedule information

get_minimum_ledger_slot

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

Returns: str: Minimum ledger slot information

get_multiple_accounts

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

get_signatures_for_address

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

get_token_accounts_by_delegate

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

get_token_accounts_by_owner

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

get_token_supply

Returns the total supply of an SPL Token type.

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

Returns: str: Token supply information

request_airdrop

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

send_transaction

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

validator_exit

Request to have the validator exit.

Returns: str: Validator exit request result

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tywenk/mcp-sol'

If you have feedback or need assistance with the MCP directory API, please join our Discord server