Skip to main content
Glama
stellar-mcp

stellar-mcp

by ijele-don

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoerror, warn, info, or debug (writes strictly to stderr).info
HORIZON_URLNoCustom Horizon URL (required for custom if SOROBAN_RPC_URL is unset).
SOROBAN_RPC_URLNoCustom Soroban RPC URL.
STELLAR_NETWORKNoDefault network: mainnet, testnet, futurenet, local, or custom.testnet
NETWORK_PASSPHRASENoCustom network passphrase.
STELLAR_SECRET_KEYNoOptional S... secret key for in-process signing when sign: true.
ALLOW_MAINNET_WRITESNoMust 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

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription
debug-failed-txStep-by-step workflow to diagnose a failed Stellar/Soroban transaction using get_transaction, diagnose_soroban_error, and simulate_transaction.
audit-contract-storageAudit a Soroban contract instance storage, TTL health, and rent optimization opportunities.
review-xdr-safetyInspect an unsigned or signed TransactionEnvelope XDR for security risks and simulate it before signing/submitting.

Resources

Contextual data attached and managed by the client

NameDescription
Stellar Network StatusCurrent Soroban RPC health, latest ledger sequence, protocol version, and write-policy status for the active network.

TDQS

A3.7/5.0

Scored across 12 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues