Skip to main content
Glama
sylvainlondon136

onchain-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SOLANA_RPC_URLNoCustom Solana RPC URL (default: https://api.mainnet-beta.solana.com)
JUPITER_PRICE_APINoCustom Jupiter price API URL (optional)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 lamports and human-readable sol.

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 tokens list of {mint, amount, decimals, ui_amount}.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/sylvainlondon136/onchain-mcp'

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