Reconcile Mcp

io.github.sebastienrousseau由 GitHub 账号 sebastienrousseau 发布v0.0.7更新于 Oct 24, 2026

Reconcile camt.053 statements vs expected pain.001 payments with explainable matching.

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

本地 MCP 服务器,将预期的 pain.001 付款与实际的 camt.053 银行对账单条目进行对账,并给出带评分和解释的匹配结果。

可以做什么
  • 对预期付款与实际对账单条目进行对账,返回含评分与理由的完整报告
  • 对单组预期/实际记录逐项打分,便于调参
  • 将解析后的 pain.001 与 camt.053 文档转换为规范的预期记录与实际记录
  • 列出、加载并运行内置沙箱场景,无需真实数据即可首次试用
  • 按相似度比较交易对手名称、通过给定汇率比较不同币种金额,并将一笔入账匹配到多张发票的组合
适用场景
适用于财务或资金团队需要确认预期转账是否到账、每笔入账对应哪张发票的场景,包括少付、分期结算和批量付款。也适合需要每个匹配都有可解释依据而非简单结论的场合。
运行要求
以本地 Python 包形式运行(需 Python 3.10+),可用 pip 安装或通过 uvx 运行;默认 stdio,也可选用绑定 127.0.0.1:8000 的 streamable HTTP 或 SSE 传输。多对多匹配工具需要 ilp 附加依赖。未声明任何账号、密钥或环境变量。
安装前请注意
HTTP 传输本身不带身份验证,应仅绑定回环地址或置于可信网关之后。它会读取你提供的付款与对账单数据,请按敏感资料处理。匹配结果仅供参考,进行账务处理前应人工复核。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Reconcile Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

reconcile-mcp: An MCP Server for ISO 20022 Cash Reconciliation

[Build Status] [PyPI version] [Glama MCP server score] [OpenSSF Scorecard] [License] [Python Version]

[reconcile-mcp Demo]

A Model Context Protocol server that matches expected payments (from pain.001 credit transfers) against observed booked entries (from a camt.053 statement) and returns an explainable reconciliation — exact matches, short/over payments, split settlements (one-to-many), batch credits (many-to-one), and the residual unmatched items on each side, every match carrying a score and the reasons it was made.

Latest release: v0.0.7: 10 MCP tools over stdio, streamable HTTP or SSE, pure-Python matching engine, deterministic sandbox test-mode, for Python 3.10+. Part of the ISO 20022 MCP suite: you own both sides of the match.

Why this exists

Reconciliation is the treasury team's daily pain: did the money we expected actually arrive, and which invoice does each credit belong to? It is rarely one-to-one — customers underpay, settle an invoice in instalments, or a payout aggregator sends one lump covering a dozen receivables. reconcile-mcp does this matching as an agent tool, and — critically for finance — shows its work: every pairing comes with a numeric score and a plain list of the signals (reference, amount, date, counterparty) that drove it.

The ISO 20022 MCP Suite

reconcile-mcp is the reconciliation workflow of eight coordinated, vendor-neutral MCP servers that together cover the ISO 20022 bank-statement workflow and the November 2026 structured-address cutover, plus a high-level orchestration layer — readiness scoring, clearing-profile linting, and audit evidence — statement depth, whole-catalogue routing, reconciliation, multi-format ingestion, and address remediation. Dependency ranges are kept aligned across the suite, so the servers co-install cleanly in a single Python environment: start with one, add the rest as your workflow grows.

ServerScopeSurfaceInstallUse it when
camt053-mcpISO 20022 camt.053/camt.052 bank statements: parse, validate, filter, reverse; MT940/MT942 migration; CBPR+ readiness; journal export24 MCP tools · 4 prompts · 3 resourcespip install camt053-mcpYou work with bank-to-customer statements end to end — the suite's flagship
iso20022-mcpUnified gateway: search / describe / validate / generate / parse meta-tools routed across the pain · pacs · camt · acmt families7 meta-toolspip install "iso20022-mcp[all]"You want one entry point to every message family
reconcile-mcpMatches expected pain.001 payments against observed camt.053 entries — exact, partial, one-to-many, many-to-one, every match scored and explained10 MCP tools · 1 prompt · 2 resourcespip install reconcile-mcpYou need explainable statement/payment reconciliation — this package
bankstatementparser-mcpMulti-format statement ingestion: ISO 20022 CAMT.053 and pain.001, SWIFT MT940, OFX/QFX, CSV5 MCP tools · 1 prompt · 1 resourcepip install bankstatementparser-mcpYour statements arrive in mixed or legacy formats
structured-address-fix-mcpISO 20022 postal-address classification, assessment & remediation for the November 2026 structured-address cutover (pacs.008 / pain.001 debtor & creditor addresses)9 MCP toolspip install structured-address-fix-mcpYou need debtor/creditor addresses cliff-ready ahead of 14 Nov 2026
iso20022-readiness-suite-mcpOrchestration gateway: detect → structurally validate → clearing-profile lint → readiness score, plus automated remediation and pacs.002 bank-response simulation — a meta-client over the foundational servers4 MCP toolspip install iso20022-readiness-suite-mcpYou want one high-level readiness / orchestration entry point over the suite
iso20022-bank-profile-mcpManages, validates and serves bank-specific clearing profiles / rule packs (CBPR+, SEPA_Instant, FedNow, Generic); premium rule-pack entitlement gating4 MCP toolspip install iso20022-bank-profile-mcpYou lint payments against your own institution's market practice
iso20022-evidence-pack-mcpCompiles readiness findings, remediation diffs and simulated responses into a sealed, Ed25519-signable audit evidence pack6 MCP toolspip install iso20022-evidence-pack-mcpYou need tamper-evident audit / certification artifacts

In one line each: camt053-mcp is the bank-statement flagship (deepest camt.05x surface, stdio + authenticated streamable HTTP); iso20022-mcp is the generic message toolkit (a handful of verbs over the whole catalogue); reconcile-mcp is the reconciliation workflow (did the money we expected actually arrive?); bankstatementparser-mcp is the ingestion layer (many formats in, one transaction shape out); and structured-address-fix-mcp is the postal-address specialist (debtor/creditor addresses cliff-ready for the Nov 2026 cutover).

The suite also includes per-family servers — pain001-mcp (credit transfer initiation), pacs008-mcp (FI-to-FI credit transfers), and acmt001-mcp (account management) — whose parsed output feeds straight into this server's normalize_* adapters.

Install

sh
pip install reconcile-mcp# or run without installing:uvx reconcile-mcp

MCP client config (e.g. Claude Desktop claude_desktop_config.json):

json
{  "mcpServers": {    "reconcile": {      "command": "reconcile-mcp"    }  }}

Quick start (zero real data)

The server ships a sandbox test-mode: deterministic scenarios so you can run the whole flow with no setup and no real cash data. One call gets you a full, explainable result:

run_sandbox_scenario(name="month_end")

returns a realistic mixed close — one clean match, one short payment, one split settlement, and an unexpected credit correctly left unmatched:

jsonc
{  "summary": {    "expected_count": 3, "observed_count": 5,    "matched_expected": 3, "unmatched_observed": 1,    "matches_by_type": {"exact": 1, "amount_mismatch": 1, "one_to_many": 1},    "fully_reconciled": false  },  "matches": [    {"type": "amount_mismatch", "expected": ["INV-6002"], "observed": ["ENT-52"],     "amount_delta": "-99.99", "confidence": "high",     "reasons": ["reference exact", "amount close (delta -99.99)", "date +/-0d", "counterparty exact"]},    {"type": "exact", "expected": ["INV-6001"], "observed": ["ENT-51"], "amount_delta": "0.00"},    {"type": "one_to_many", "expected": ["INV-6003"], "observed": ["ENT-53", "ENT-54"],     "reasons": ["amount sum of 2 entries"]}  ],  "unmatched_observed": ["ENT-55"]}

List every scenario with list_sandbox_scenarios; load one to inspect or edit its inputs with load_sandbox_scenario.

Transports

One command line, three transports:

CommandTransportEndpointProtocol revisions
reconcile-mcpstdiothe client spawns the process2026-07-28, 2025-11-25
reconcile-mcp --transport streamable-httpStreamable HTTPhttp://127.0.0.1:8000/mcp2026-07-28 (stateless, server/discover) and 2025-11-25 (initialize, Mcp-Session-Id) on the same endpoint; responses stream as server-sent events, GET opens the server-to-client stream
reconcile-mcp --transport sseHTTP+SSE (2024-11-05)http://127.0.0.1:8000/sse and /messages/for clients that still expect the older transport

--host and --port change the bind address (defaults 127.0.0.1 and 8000). The HTTP transports carry no authentication of their own: bind loopback, or put the server behind a gateway you trust before binding a routable address. Every release is verified over streamable HTTP with passmcp in both protocol eras and over SSE with the MCP SDK client; see ADR 0001.

json
{  "mcpServers": {    "reconcile": { "url": "http://127.0.0.1:8000/mcp" }  }}

Bring your own data

Records are small canonical objects — id and amount required, everything else optional and used to sharpen matching:

jsonc
{  "id": "INV-1001",            // your reference / end-to-end id  "amount": 1200.00,  "currency": "EUR",           // ISO 4217  "date": "2026-03-02",        // ISO-8601  "counterparty": "Acme Ltd",  "reference": "INV-1001"      // remittance / structured reference}

Already using the rest of the suite? Feed parsed output straight in — the adapters map it for you:

  • normalize_pain001(document) → the expected side, from pain001-mcp.
  • normalize_camt053(document) → the observed side, from camt053-mcp.

Then call reconcile(expected, observed).

Tools

  • reconcile — Match expected payments against observed entries; full explainable report.
  • explain_match — Score a single expected/observed pair with a per-signal breakdown (tuning aid).
  • normalize_pain001 — Adapt parsed pain.001 output into canonical expected records.
  • normalize_camt053 — Adapt parsed camt.053 output into canonical observed records.
  • list_sandbox_scenarios — List the built-in test-mode scenarios and magic references.
  • load_sandbox_scenario — Return one scenario's expected/observed inputs to inspect or edit.
  • run_sandbox_scenario — Load a scenario and reconcile it in one call — the fastest first run.
  • match_names_probabilistic — Score two counterparty names by Jaro-Winkler similarity and flag a match at a threshold.
  • match_amounts_with_fx_drift — Compare two amounts in different currencies through a supplied FX rate, within a percentage tolerance.
  • reconcile_many_to_many — Match each deposit to a disjoint subset of invoices whose amounts sum to it (subset-sum ILP; needs the ilp extra).

Plus one prompt and two resources:

  • Prompt reconcile_workflow — Step-by-step guidance from raw pain.001/camt.053 to an explained match report.
  • Resource reconcile://sandbox-scenarios — The built-in scenario catalogue.
  • Resource reconcile://sandbox/{scenario_id} — One scenario's expected/observed inputs.

How matching works

Each candidate pair is scored on four weighted signals, then classified:

  • Reference (0.45) — exact / partial equality of references and end-to-end ids, normalised to bare alphanumerics.
  • Amount (0.35) — exact within tolerance, or a linearly-decaying closeness with the delta reported.
  • Date (0.10) — proximity within a configurable window; neutral if unknown.
  • Counterparty (0.10) — token-set overlap of names; neutral if unknown.

Assignment is greedy, highest-score-first and fully deterministic (a total tiebreak order), so the same inputs always produce the same result. Residuals are then tested for one-to-many (a bounded subset-sum: one expected settled by several entries) and many-to-one (one entry covering several expected).

Tune any of it via the options argument: abs_tol / rel_tol, date_window_days, high_threshold, review_threshold, currency_strict, enable_one_to_many, max_combination.

Development

sh
git clone https://github.com/sebastienrousseau/reconcile-mcpcd reconcile-mcppython -m venv .venv && . .venv/bin/activatepip install -e . && pip install pytest pytest-cov ruff black mypypytest                      # 100% branch coverage gateruff check reconcile_mcp tests && black --check reconcile_mcp tests && mypy reconcile_mcp

License

Licensed under the Apache License, Version 2.0 or the MIT License, at your option.


mcp-name: io.github.sebastienrousseau/reconcile-mcp

来源:README.md,提交 e956a06

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.0.7最新Oct 4, 2026
  2. v0.0.6Oct 4, 2026
  3. v0.0.5Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分