onchain-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SOLANA_RPC_URL | No | Custom Solana RPC URL (default: https://api.mainnet-beta.solana.com) | |
| JUPITER_PRICE_API | No | Custom Jupiter price API URL (optional) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_sol_balanceA | Get the native SOL balance of a Solana account. Args: address: Base58-encoded account/wallet address. Returns a dict with the raw |
| get_token_holdingsA | List the non-zero SPL token balances held by a Solana wallet. Args: address: Base58-encoded wallet address. Returns a dict with a |
| get_token_priceB | Get the USD price of an SPL token by its mint address (via Jupiter). Args: mint: Base58-encoded token mint (e.g. the USDC or SOL mint). Returns {mint, price_usd, found}. |
| get_transactionA | Summarize a Solana transaction by its signature. Args: signature: Base58-encoded transaction signature. Returns slot, block_time, fee, error status, and log messages. |
| get_account_infoA | Get basic on-chain info for an account: owner program, lamports, executable flag. |
| get_token_supplyA | Get the total on-chain supply of an SPL token mint. Args: mint: Base58-encoded token mint address. Returns {mint, amount (raw), decimals, ui_amount}. |
| get_recent_signaturesA | List the most recent transaction signatures touching an account. Args: address: Base58-encoded account/wallet address. limit: Max number of signatures (1-100, default 10). Returns {address, count, signatures: [{signature, slot, block_time, succeeded}]}. |
| get_epoch_infoA | Get current Solana network epoch/slot info (epoch, slot, block height, progress). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Most tools have distinct purposes, but get_account_info and get_sol_balance overlap because the former already returns lamports, which is the SOL balance. This could cause confusion for agents.
All tools follow a consistent 'get_noun' pattern in snake_case, making it easy to predict tool names and understand their actions.
With 8 read-only tools covering key Solana on-chain data (accounts, tokens, transactions, network info), the count is well-scoped and not excessive.
Covers essential read operations, but missing tools for querying program accounts or arbitrary account data, leaving minor gaps for advanced use cases.