stellar-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | error, warn, info, or debug (writes strictly to stderr). | info |
| HORIZON_URL | No | Custom Horizon URL (required for custom if SOROBAN_RPC_URL is unset). | |
| SOROBAN_RPC_URL | No | Custom Soroban RPC URL. | |
| STELLAR_NETWORK | No | Default network: mainnet, testnet, futurenet, local, or custom. | testnet |
| NETWORK_PASSPHRASE | No | Custom network passphrase. | |
| STELLAR_SECRET_KEY | No | Optional S... secret key for in-process signing when sign: true. | |
| ALLOW_MAINNET_WRITES | No | Must be "true" to allow submit_transaction on mainnet. | false |
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 | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_network_statusA | Check Soroban RPC health, latest ledger sequence, protocol version, endpoints, and mainnet write-policy status. |
| get_accountB | Fetch Stellar account balances (XLM & issued assets), sequence number, thresholds, and signers. |
| get_transactionA | Fetch a transaction by 64-char hex hash via Soroban RPC (with Horizon fallback) and decode its envelope, return value, and events. |
| fetch_contract_specA | Fetch and decode the ABI/spec (functions, structs, enums, unions, #[contracterror] codes) directly from a deployed Soroban contract WASM. |
| simulate_transactionA | Simulate a base64 TransactionEnvelope XDR on Soroban RPC. Returns decoded return value, CPU/memory cost, min resource fee, decoded ledger footprint, events, restore preamble, or structured error diagnosis. |
| diagnose_soroban_errorA | Decode a Soroban host error string (e.g. "HostError: Error(Contract, #4)" or "Error(Storage, MissingValue)") into root cause, explanation, and suggested fix. Optionally resolves custom contract error names. |
| inspect_xdrA | Decode a TransactionEnvelope XDR and run a security/safety audit (detecting account merges, signer/threshold changes, clawbacks, excessive fees, and Soroban host invocations). |
| decode_xdrB | Decode base64-encoded Stellar XDR (TransactionEnvelope, ScVal, LedgerKey, LedgerEntryData, DiagnosticEvent, or SorobanTransactionData) into readable JSON. |
| analyze_contract_storageB | Inspect a Soroban contract instance storage (and optional extra LedgerKey XDRs), compute remaining TTL in ledgers/days, and flag oversized or expiring/archived entries. |
| get_contract_eventsB | Query recent Soroban contract events for a contract ID and decode their topics and values. |
| build_transactionB | Build an unsigned Stellar/Soroban TransactionEnvelope XDR (payment, change_trust, or invoke_contract) with automatic sequence lookup and safety inspection. |
| submit_transactionA | Submit a transaction XDR to Soroban RPC (with Horizon fallback). Mainnet writes are BLOCKED by default unless ALLOW_MAINNET_WRITES=true. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| debug-failed-tx | Step-by-step workflow to diagnose a failed Stellar/Soroban transaction using get_transaction, diagnose_soroban_error, and simulate_transaction. |
| audit-contract-storage | Audit a Soroban contract instance storage, TTL health, and rent optimization opportunities. |
| review-xdr-safety | Inspect an unsigned or signed TransactionEnvelope XDR for security risks and simulate it before signing/submitting. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Stellar Network Status | Current Soroban RPC health, latest ledger sequence, protocol version, and write-policy status for the active network. |
TDQS
Scored across 12 tools
Most tools have clearly distinct purposes tied to a specific resource or pipeline stage (simulate, build, submit, diagnose). The main overlap is between decode_xdr and inspect_xdr, both of which decode a TransactionEnvelope, but descriptions clarify that inspect_xdr adds a security audit while decode_xdr handles broader XDR types.
Names consistently follow snake_case verb_noun form (get_account, simulate_transaction, build_transaction, submit_transaction). Minor deviation: retrieval verbs alternate between get_ (get_account, get_transaction, get_contract_events) and fetch_ (fetch_contract_spec), plus a couple of verb_xdr forms, but overall it is predictable.
Twelve tools is well within the ideal range and each maps to a distinct stage of the Soroban workflow (inspect, decode, simulate, build, submit, diagnose). No filler or redundant tools are present.
The surface covers the core lifecycle well: network status, account/transaction lookup, contract spec, simulation, error diagnosis, XDR decode/audit, storage, events, and build/submit. Gaps remain around contract deployment (upload WASM, create contract) and richer transaction building (only payment, change_trust, invoke_contract), which agents may need to work around.