io.github.codespar/mcp-midaz
io.github.codespar/mcp-midaz · 273 stars · TypeScript · MIT
MCP server MCP server for Midaz by Lerian — self-hosted double-entry ledger: accounts, balances, transactions
Install
The repo has no one-line install. Follow its README.
Published as
- npm
@codespar/mcp-midazstdio
From the server's entry in the official MCP Registry.
Configuration
| Name | Set as | What it is |
|---|---|---|
MIDAZ_BASE_URLRequired | Env var | Base URL of your self-hosted Midaz onboarding service |
MIDAZ_TRANSACTION_URLOptional | Env var | Base URL of the Midaz transaction service. Defaults to MIDAZ_BASE_URL. |
MIDAZ_API_KEYOptional · Secret | Env var | Bearer token when your deployment enforces auth |
Files
@codespar/mcp-midaz
MCP server for Midaz by Lerian — the open-source, multi-currency, multi-asset double-entry ledger. Your agent creates accounts, reads balances, and posts balanced transactions against your own Midaz deployment.
Self-hosted model
Midaz is not a SaaS — it runs in your infrastructure (github.com/LerianStudio/midaz). This server points at your deployment:
MIDAZ_BASE_URL→ your onboarding service (organizations / ledgers / accounts)MIDAZ_TRANSACTION_URL→ your transaction service (defaults toMIDAZ_BASE_URLwhen both sit behind one gateway)MIDAZ_API_KEY→ only if your deployment enforces auth
Midaz hierarchy: Organization → Ledger → Account → Transaction. Tools take organization_id + ledger_id explicitly, so one connection can operate across ledgers.
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"midaz": {
"command": "npx",
"args": ["-y", "@codespar/mcp-midaz"],
"env": {
"MIDAZ_BASE_URL": "https://midaz.your-company.internal",
"MIDAZ_API_KEY": "your-token-if-any"
}
}
}
}
Claude Code
claude mcp add midaz -- npx @codespar/mcp-midaz
Tools (5)
| Tool | What it does |
|---|---|
create_account |
Create an account in a ledger (POST .../accounts) |
list_accounts |
List a ledger's accounts, paginated |
get_balance |
Read available / on-hold balances per asset |
create_transaction |
Post a balanced double-entry transaction (POST .../transactions/json) |
get_transaction |
Fetch a transaction with its operations |
Example
"Move R$ 1.250,00 from the treasury account to @vendor-acme and show both balances."
The agent calls create_transaction with a send block debiting treasury and crediting @vendor-acme (amounts must balance — Midaz rejects lopsided entries), then get_balance on each account.
Authentication
Your deployment decides: when MIDAZ_API_KEY is set it is sent as a Bearer token; otherwise requests are unauthenticated (typical for network-isolated internal deployments).
Enterprise
Need governance, budget limits, and audit trails for agent-driven ledger operations on Midaz? CodeSpar Enterprise adds a policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT (this server). Midaz itself is Apache-2.0 by Lerian.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 273
- License
- MIT
- Language
- TypeScript
- Last push
- 2026-09-27
- Forks
- 50
- MCP Registry
- io.github.codespar/mcp-midaz
- Homepage
- codespar.dev/servers
- Topics
- agentic-commerce, ai-agents, brazil, claude, fintech, latin-america, llm-tools, mcp, model-context-protocol, nfe, open-finance, payments, pix
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k