mina-mcp-server
v0.7.3Query Mina Protocol: accounts, blocks, transactions, zkApp events/actions, archive SQL, Rosetta.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_account
Get account information by public key from the live daemon (tutorial + live modes).
| Parameter | Type | Description |
|---|---|---|
publicKey * | string | Mina public key (B62...) |
token | string | Token ID (optional, defaults to MINA) |
get_block
Get a block by state hash or height. Defaults to a "lite" summary (header + transaction counts) that stays within the tool budget; use detail to pull paged transactions or the full block. In tutorial mode, queries the live daemon first and falls back to the archive DB. In live mode, a stateHash is required (use get_archive_blocks to discover one).
| Parameter | Type | Description |
|---|---|---|
detail | string | Output size. "lite" (default): block header + transaction counts only — always within budget. "transactions": header + a page of userCommands (see transactionLimit/Offset). "full": the complete daem… |
height | number | Block height |
stateHash | string | Block state hash |
transactionLimit | number | Max userCommands to return when detail="transactions". |
transactionOffset | number | Offset into the userCommands list when detail="transactions". |
get_best_chain
Get the current best chain from the live daemon. Returns per-block headers + transaction counts (always within budget) — use get_block for a specific block's transactions. detail:"full" returns complete blocks and may overflow on busy networks.
| Parameter | Type | Description |
|---|---|---|
detail | string | Output size. "lite" (default): block header + transaction counts only — always within budget. "transactions": header + a page of userCommands (see transactionLimit/Offset). "full": the complete daem… |
maxLength | number | Maximum number of blocks to return |
get_transaction_status
Check the daemon's status for a submitted transaction (PENDING / INCLUDED / UNKNOWN). Pass the id returned by send_payment as `payment` (or a zkApp tx id as `zkappTransaction`) — exactly one. Use this to poll after a send; for an already-mined tx, prefer get_transaction / search_transactions against the archive.
| Parameter | Type | Description |
|---|---|---|
payment | string | Payment transaction ID |
zkappTransaction | string | zkApp transaction ID |
get_mempool
List transactions currently pending in the daemon's mempool (not yet in a block), optionally filtered by `publicKey`. Each entry has top-level `from`/`to` (B62q… pubkeys) plus `amount`/`fee`/`nonce`/`hash`/`kind`/`memo`/`failureReason`. Empty once everything has been included — does not show mined txs.
| Parameter | Type | Description |
|---|---|---|
publicKey | string | Filter by public key |
get_sync_status
[infra] Get the sync status and daemon info. Returns the flat daemon status object directly — fields like `syncStatus`, `blockchainLength`, `stateHash`, `numAccounts`, `chainId`, `addrsAndPorts` are at the top level (not nested under `daemonStatus`). In snapshot mode returns archive DB stats instead. In tutorial and live modes returns the live daemon status.
get_genesis_constants
Get the network's genesis constants: coinbase reward, account-creation fee, slot/epoch timing, k (confirmations), and ledger depth. Use these to reason about fees, finality, and timing rather than hard-coding values.
get_network_id
Get the daemon's network identifier (e.g. 'mina:mainnet', 'mina:devnet'). Use this to confirm which network the server is actually talking to before interpreting balances or submitting transactions.
get_events
[tutorial+live] Get emitted events from a zkApp address via the Archive-Node-API. Events are state-change notifications emitted by zkApp account updates. Snapshot mode does not run an Archive-Node-API and rejects this tool.
| Parameter | Type | Description |
|---|---|---|
address * | string | zkApp public key (B62...) |
from | number | Start block height (inclusive) |
status | string | Block status filter |
to | number | End block height (exclusive) |
tokenId | string | Token ID (defaults to MINA token) |
get_actions
[tutorial+live] Get dispatched actions from a zkApp address via the Archive-Node-API. Actions are reducer inputs that modify zkApp state. Snapshot mode does not run an Archive-Node-API and rejects this tool.
| Parameter | Type | Description |
|---|---|---|
address * | string | zkApp public key (B62...) |
endActionState | string | Filter to this action state hash (inclusive) |
from | number | Start block height (inclusive) |
fromActionState | string | Filter from this action state hash (inclusive) |
status | string | Block status filter |
to | number | End block height (exclusive) |
tokenId | string | Token ID |
get_archive_blocks
[tutorial+live] Get finalized blocks from the Archive-Node-API (height, creator, timestamp, coinbase). Prefer this for live mode (the archive node holds canonical history) over `get_best_chain` (daemon's in-memory view including not-yet-canonical tip). Returns full block rows — use a small `limit` on busy chains.
| Parameter | Type | Description |
|---|---|---|
canonical | boolean | Only return canonical (finalized) blocks |
limit | number | Number of blocks to return |
sortBy | string | Sort order |
get_network_state
[tutorial+live] Get network state from the Archive-Node-API: max canonical and pending block heights. (Different from `get_sync_status` which queries the daemon, and from `describe_state` which aggregates both.)
describe_state
[infra] Snapshot of the live public network: sync, latest block, mempool size, plus suggested next-tool hints. Call this first to orient yourself.
list_examples
[infra] List curated example workflows (each is a sequence of tool calls). Filter by the current server mode by default; pass `all` to see every workflow regardless of mode.
| Parameter | Type | Description |
|---|---|---|
include | string | 'current' filters to workflows runnable in this server's mode; 'all' shows every workflow. |
get_example
[infra] Get the full step list for a single named example workflow. Use list_examples first to discover names.
| Parameter | Type | Description |
|---|---|---|
name * | string | Example name from list_examples (e.g. 'send_payment', 'verify_in_archive'). |
rosetta_status
Mina-Rosetta /network/status — current/genesis/oldest block identifiers and sync state for this network, in standardized Rosetta format.
rosetta_account
Mina-Rosetta /account/balance — balance(s) for a B62q… account, optionally at a specific block.
| Parameter | Type | Description |
|---|---|---|
address * | string | Mina public key (B62q…) |
blockHash | string | Block state hash (optional). Pass at most one of blockIndex or blockHash. |
blockIndex | number | Block height (optional). Pass at most one of blockIndex or blockHash. |
rosetta_block
Mina-Rosetta /block — a block (with operations) by index or state hash. Provide exactly one. Defaults to a "lite" summary (block identifiers + transaction/operation counts); Rosetta expands each Mina tx into several operations, so the full shape is large on busy networks — use detail:"transactions" with paging, or detail:"full" deliberately.
| Parameter | Type | Description |
|---|---|---|
detail | string | "lite" (default): counts only. "transactions": paged transactions. "full": entire response. |
hash | string | Block state hash |
index | number | Block height |
transactionLimit | number | Max transactions when detail="transactions". |
transactionOffset | number | Offset into the transactions list when detail="transactions". |
rosetta_mempool
Mina-Rosetta /mempool — pending transaction identifiers on this network.
rosetta_mempool_transaction
Mina-Rosetta /mempool/transaction — a single pending transaction with operations, by hash.
| Parameter | Type | Description |
|---|---|---|
hash * | string | Transaction hash (returned by rosetta_mempool) |