mcp-midaz
v0.1.0MCP server for Midaz by Lerian — self-hosted double-entry ledger: accounts, balances, transactions
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_account
Create an account in a ledger (POST /v1/organizations/{org}/ledgers/{ledger}/accounts). Accounts hold balances per asset code (e.g. BRL, USD, USDC).
| Parameter | Type | Description |
|---|---|---|
asset_code * | string | Asset the account holds (e.g. BRL, USD) |
ledger_id * | string | Ledger id inside the organization |
name * | string | Account display name |
organization_id * | string | Midaz organization id |
type * | string | Account type (e.g. deposit, savings, creditCard, expense) |
alias | string | Optional unique alias (used as @alias in transaction operations) |
extra | object | Any additional Midaz account fields, merged into the payload |
list_accounts
List a ledger's accounts (GET /v1/organizations/{org}/ledgers/{ledger}/accounts). Paginated via limit/page.
| Parameter | Type | Description |
|---|---|---|
ledger_id * | string | Ledger id |
organization_id * | string | Midaz organization id |
limit | number | Page size |
page | number | Page number (1-based) |
get_balance
Read an account's balances (GET /v1/organizations/{org}/ledgers/{ledger}/accounts/{account}/balances). Returns available and on-hold amounts per asset.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | Account id |
ledger_id * | string | Ledger id |
organization_id * | string | Midaz organization id |
create_transaction
Post a balanced double-entry transaction (POST /v1/organizations/{org}/ledgers/{ledger}/transactions/json). The send block debits source accounts and credits distribute targets; amounts must balance. Accounts are referenced by id or @alias.
| Parameter | Type | Description |
|---|---|---|
ledger_id * | string | Ledger id |
organization_id * | string | Midaz organization id |
send * | object | Midaz send shape: { asset, value, scale, source: { from: [{ account, amount: { asset, value, scale } }] }, distribute: { to: [{ account, amount: {...} }] } } |
description | string | Human-readable transaction description |
metadata | object | Optional key-value metadata stored on the transaction |
get_transaction
Fetch a transaction with its operations (GET /v1/organizations/{org}/ledgers/{ledger}/transactions/{id}).
| Parameter | Type | Description |
|---|---|---|
ledger_id * | string | Ledger id |
organization_id * | string | Midaz organization id |
transaction_id * | string | Transaction id |