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

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理在自架的 Midaz 帳本上建立帳戶、讀取餘額並送出借貸平衡的複式記帳交易。

可以做什麼
在帳本內建立帳戶並分頁列出帳戶。依資產讀取帳戶的可用餘額與凍結餘額。送出借貸平衡的複式記帳交易,並取得交易及其操作明細。工具明確接收組織與帳本識別碼,因此一個連線可跨多個帳本操作。
適用情境
當你執行自架的 Midaz 帳本,並希望助理查詢餘額或在帳戶之間記錄平衡轉帳時使用,例如從資金帳戶轉給供應商帳戶並核對雙方餘額。
執行需求
透過 npx 從 npm 套件在本機執行,僅限桌面端。需要 MIDAZ_BASE_URL 指向你的 onboarding 服務;MIDAZ_TRANSACTION_URL 為選用,指向交易服務,預設使用基礎 URL。僅當部署啟用驗證時才需要 MIDAZ_API_KEY。需要能連線到你的 Midaz 部署。
安裝前請注意
此伺服器可建立帳戶並送出會移動帳本資金的交易,核准前請先檢視寫入操作。MIDAZ_API_KEY 是作為 Bearer 權杖送出的密鑰;未設定時請求不帶驗證,僅適合隔離的內部網路。資料只送往你自己的 Midaz 部署,不涉及第三方。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Midaz,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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.

[npm] [License: MIT]

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 to MIDAZ_BASE_URL when 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:

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

bash
claude mcp add midaz -- npx @codespar/mcp-midaz

Tools (5)

ToolWhat it does
create_accountCreate an account in a ledger (POST .../accounts)
list_accountsList a ledger's accounts, paginated
get_balanceRead available / on-hold balances per asset
create_transactionPost a balanced double-entry transaction (POST .../transactions/json)
get_transactionFetch 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.

來源:packages/banking/midaz/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分