
Mcp Midaz
io.github.codespar由 GitHub 账号 codespar 发布v0.1.0更新于 Oct 24, 2026
MCP server for Midaz by Lerian — self-hosted double-entry ledger: accounts, balances, transactions
概览
本地 MCP 服务器,让助手在自托管的 Midaz 账本上创建账户、读取余额并提交借贷平衡的复式记账交易。
- 可以做什么
- 在账本内创建账户并分页列出账户。按资产读取账户的可用余额和冻结余额。提交借贷平衡的复式记账交易,并获取交易及其操作明细。工具显式接收组织和账本标识,因此一个连接可跨多个账本操作。
- 适用场景
- 当你运行自托管的 Midaz 账本,并希望助手查询余额或在账户之间记录平衡转账时使用,例如从资金账户向供应商账户划转并核对双方余额。
- 运行要求
- 通过 npx 从 npm 包在本地运行,仅限桌面端。需要 MIDAZ_BASE_URL 指向你的 onboarding 服务;MIDAZ_TRANSACTION_URL 可选,指向交易服务,默认使用基础 URL。仅当部署启用鉴权时才需要 MIDAZ_API_KEY。需要能访问你的 Midaz 部署。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Midaz,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@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:
Claude Code
Tools (5)
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.
来源:packages/banking/midaz/README.md,提交 d0a519a
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分