Lerian's open-source multi-currency double-entry ledger. Self-hosted: the connection stores your deployment endpoint and agents post entries via codespar_ledger.
Midaz gives your agent 5 tools it calls directly โ pick the ones it needs, in Claude, Cursor, or any MCP client.
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).list_accounts โ List a ledger's accounts (GET /v1/organizations/{org}/ledgers/{ledger}/accounts). Paginated via limit/page.get_balance โ Read an account's balances (GET /v1/organizations/{org}/ledgers/{ledger}/accounts/{account}/balances). Returns available and on-hold amounts per asset.// Your agent calls a tool directly โ no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_account", { /* ... */ });$ npm install @codespar/mcp-midazAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"midaz": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-midaz"
],
"env": {
"MIDAZ_BASE_URL": "<your_midaz_base_url>"
}
}
}
}After restart, your agent can call any of the 5 tools below โ try create_account first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
MIDAZ_BASE_URLBase URL of your self-hosted Midaz onboarding service
MIDAZ_TRANSACTION_URLBase URL of the Midaz transaction service. Defaults to MIDAZ_BASE_URL.
MIDAZ_API_KEYBearer token when your deployment enforces auth
Each tool is independent โ your agent loads only what it needs to reduce context and response time.
create_accountlist_accountsget_balancecreate_transactionget_transactionMCP is a protocol โ any framework that speaks it can mount this server.