rpc402-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_DEMO | No | `1` = demo mode: no keyfile, no payment; calls send `X-PAYMENT: demo`. Only works against a local RPC402 instance running with `DEMO_MODE=1`. | |
| RPC402_KEYFILE | No | Payer keyfile path for paid mode. Formats: `0x…` EVM private-key text file, Solana CLI keypair JSON, or base58 secret-key text file. The key never leaves your machine; it only signs the x402 payment authorization locally. | |
| SOLANA_RPC_URL | No | Custom Solana RPC used to build the payment transaction. | |
| RPC402_BASE_URL | No | API base URL. Default `https://rpc.zero-orbit.online`. | https://rpc.zero-orbit.online |
| RPC402_PAY_NETWORK | No | Settlement network preference: `base` (default), `solana`, or `polygon`. Must match the keyfile type (EVM key → base/polygon, Solana key → solana). | base |
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": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| token_balanceA | Balance of one token for one wallet, composed in a single RPC402 call ($0.002 USDC via x402): ERC-20 balanceOf+decimals+symbol (EVM) or SPL token-account sum + mint decimals (Solana). Returns balance (raw integer string), decimals, symbol (null on Solana), formatted. |
| wallet_balancesA | Whole wallet snapshot in ONE RPC402 call ($0.002 USDC via x402): native balance plus up to 20 token balances. Per-token failures degrade to marked entries (partial: true) instead of failing the call. |
| chain_statusB | Chain status bundle in one RPC402 call ($0.002 USDC via x402). EVM: block number, chain id, gas price (wei + gwei), head block timestamp/age. Solana: slot, block height, epoch, latest blockhash, health. |
| tx_lookupA | Transaction lookup composed in one RPC402 call ($0.002 USDC via x402): transaction + receipt — found, status (confirmed/pending/not_found), success, confirmations, value, gas used, effective gas price (EVM); slot, block time, fee, success (Solana). A nonexistent hash returns found:false, which is the answer, not an error. |
| event_logsA | Event logs for one contract in one RPC402 call ($0.002 USDC via x402). EVM: eth_getLogs (range cap 2,000 blocks, result cap 1,000; defaults fromBlock=toBlock-99, toBlock=head). Solana: latest transaction signatures for the account (getSignaturesForAddress) — Solana has no block-range log query; the response carries a note saying so. |
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 5 tools
Each tool targets a clearly distinct on-chain read concern: chain status, single-token balance, whole-wallet balances, transaction lookup, and event logs. The overlap between token_balance and wallet_balances is resolved by explicit scope differences in the descriptions.
All names use consistent snake_case and are concise resource-oriented identifiers. There are minor pattern variations (singular token_balance vs plural wallet_balances; noun phrases like tx_lookup/event_logs) but nothing confusing.
Five tools is well-scoped for a focused read-only RPC402 server, and each tool corresponds to a meaningful composite RPC operation. No obvious filler or missing tool-count pressure.
The surface covers the core read workflows: chain status, token balances, wallet snapshot, transaction lookup, and event logs. Some adjacent RPC capabilities such as block lookup, nonce/account metadata, or fee estimation are absent, but major workflows are covered.