XSD-valid ISO 20022 Exceptions & Investigations (E&I) generation -- camt.056 FI-to-FI Payment Cancellation Request -- with an MCP server.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add camt-exceptions -- uvx camt-exceptions{
"mcpServers": {
"camt-exceptions": {
"command": "uvx",
"args": ["camt-exceptions"]
}
}
}MCP Servers overview
<!-- SPDX-FileCopyrightText: 2026 Sebastien Rousseau <sebastian.rousseau@gmail.com> -->
<!-- SPDX-License-Identifier: Apache-2.0 OR MIT -->
# camt-exceptions: ISO 20022 Exceptions & Investigations, generated + XSD-valid
[](https://github.com/sebastienrousseau/camt-exceptions/actions)
[](https://pypi.org/project/camt-exceptions/)
[](https://glama.ai/mcp/servers/sebastienrousseau/camt-exceptions)
[](https://scorecard.dev/viewer/?push_pull=true&repo=github.com/sebastienrousseau/camt-exceptions)
[](LICENSE)
[](https://pypi.org/project/camt-exceptions/)
<p align="center">
<img src=".github/demo.gif" alt="camt-exceptions Demo" width="100%" />
</p>
**Generate and validate ISO 20022 Exceptions & Investigations (E&I) `camt`
messages — with an [MCP][mcp] server.** Starts with **`camt.056`** (FI-to-FI
Payment Cancellation Request): the message a bank sends to *recall or cancel* a
payment it already dispatched — a duplicate, an erroneous amount, a fraud
recall. Output is validated against the **official bundled XSD** before it's
returned.
> **Latest release: v0.0.20**: `camt.056` + `camt.029` generation + validation, 4 MCP
> tools over stdio, streamable HTTP or SSE, 100% branch coverage, for Python 3.10+. Part of the
> [ISO 20022 MCP suite](#the-suite). Additional E&I messages (camt.029, camt.026,
> camt.027, camt.087) plug into the same engine.
## Why E&I
When a payment goes wrong, the fix is an Exceptions & Investigations message —
and these are the *least* tooled corner of ISO 20022. `camt.056` alone covers
the single most common need: **"I need to cancel/recall that payment."** This
library makes it a one-call, schema-valid operation for an agent, with the same
depth as the credit-transfer generators elsewhere in the suite.
## Install
```sh
pip install camt-exceptions
# or run the MCP server without installing:
uvx camt-exceptions
```
MCP client config (e.g. Claude Desktop):
```json
{
"mcpServers": {
"camt-exceptions": {
"command": "camt-exceptions-mcp"
}
}
}
```
## Quick start — cancel a payment
```python
from camt_exceptions import generator as g
xml = g.generate_message("camt.056.001.12", {
"assignment_id": "CXL-001",
"assigner_agent_bic": "DEUTDEFF",
"assignee_agent_bic": "COBADEFF",
"creation_date_time": "2026-03-02T10:00:00",
"original_msg_id": "MSG-ORIG-001",
"original_msg_nm_id": "pacs.008.001.08",
"transactions": [{
"original_end_to_end_id": "E2E-001",
"original_interbank_settlement_amount": "1000.00",
"original_interbank_settlement_currency": "EUR",
"cancellation_reason_cd": "DUPL", # duplicate payment
}],
})
assert g.validate_xml("camt.056.001.12", xml)["is_valid"] # True
```
## Transports
One command line, three transports:
| Command | Transport | Endpoint | Protocol revisions |
| :--- | :--- | :--- | :--- |
| `camt-exceptions-mcp` | stdio | the client spawns the process | 2026-07-28, 2025-11-25 |
| `camt-exceptions-mcp --transport streamable-http` | Streamable HTTP | `http://127.0.0.1:8000/mcp` | 2026-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 |
| `camt-exceptions-mcp --transport sse` | HTTP+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
[scout](https://github.com/sebastienrousseau/scout) in both protocol
eras and over SSE with the MCP SDK client; see
[ADR 0001](docs/adr/0001-three-transports-one-command-line.md).
```json
{
"mcpServers": {
"camt-exceptions": { "url": "http://127.0.0.1:8000/mcp" }
}
}
```
## Tools
- `list_message_types` — List supported E&I message types and names.
- `get_required_fields` — Required top-level fields for a message type.
- `generate_message` — Generate a validated E&I XML message from a record (validated against the bundled XSD before return).
- `validate_xml` — Validate raw XML against a message type's bundled XSD.
## Supported messages
| Message | Name | Status |
| --- | --- | --- |
| `camt.056.001.12` | FI to FI Payment Cancellation Request | ✅ |
| `camt.029.001.14` | Resolution of Investigation | ✅ |
| `camt.026` | Unable to Apply | planned |
| `camt.027` | Claim Non-Receipt | planned |
| `camt.087` | Request to Modify Payment | planned |
Each new message plugs into the same engine: bundle its official XSD +
`template.xml` and register it in `MESSAGE_TYPES`. Generated output is always
XSD-validated before return, so correctness is machine-checked, not asserted.
> Note: the payment-status and return messages of the E&I family —
> **`pacs.002`** (Payment Status Report) and **`pacs.004`** (Payment Return) —
> are already generated, XSD-valid, by [`pacs008-mcp`][pacs008-mcp].
## The suite
Part of a family of vendor-neutral, Python-native ISO 20022 MCP servers:
- [`iso20022-mcp`][iso20022-mcp] — unified gateway across the families.
- [`pain001-mcp`][pain001-mcp] · [`pacs008-mcp`][pacs008-mcp] ·
[`camt053-mcp`][camt053-mcp] · [`acmt001-mcp`][acmt001-mcp] — per-family servers.
- [`reconcile-mcp`][reconcile-mcp] — statement/payment reconciliation.
## Documentation
- **Rendered docs:** [sebastienrousseau.github.io/camt-exceptions](https://sebastienrousseau.github.io/camt-exceptions/) — API reference, ADRs, roadmap, changelog
- **Runnable examples:** [`examples/`](https://github.com/sebastienrousseau/camt-exceptions/tree/main/examples)
- **Release history:** [CHANGELOG.md](https://github.com/sebastienrousseau/camt-exceptions/blob/main/CHANGELOG.md)
## Development
```sh
git clone https://github.com/sebastienrousseau/camt-exceptions
cd camt-exceptions
python -m venv .venv && . .venv/bin/activate
pip install -e . && pip install pytest pytest-cov hypothesis ruff black mypy interrogate "mutmut>=3.7,<4"
pytest # 100% branch coverage gate; output is XSD-validated
ruff check camt_exceptions tests && black --check camt_exceptions tests && mypy camt_exceptions
interrogate -c pyproject.toml camt_exceptions # 100% docstring gate
mutmut run && mutmut export-cicd-stats && python scripts/mutation_gate.py --floor 90
```
## License
Licensed under the [Apache License, Version 2.0](LICENSE-APACHE) or the
[MIT License](LICENSE-MIT), at your option. Bundled ISO 20022 message schemas
(`*.xsd`) are © ISO 20022 and redistributed under the ISO 20022 terms; they
are the same schemas published at [iso20022.org](https://www.iso20022.org).
---
`mcp-name: io.github.sebastienrousseau/camt-exceptions`
[mcp]: https://modelcontextprotocol.io
[iso20022-mcp]: https://github.com/sebastienrousseau/iso20022-mcp
[pain001-mcp]: https://github.com/sebastienrousseau/pain001-mcp
[pacs008-mcp]: https://github.com/sebastienrousseau/pacs008-mcp
[camt053-mcp]: https://github.com/sebastienrousseau/camt053-mcp
[acmt001-mcp]: https://github.com/sebastienrousseau/acmt001-mcp
[reconcile-mcp]: https://github.com/sebastienrousseau/reconcile-mcp
What people ask about camt-exceptions
What is sebastienrousseau/camt-exceptions?
+
sebastienrousseau/camt-exceptions is mcp servers for the Claude AI ecosystem. XSD-valid ISO 20022 Exceptions & Investigations (E&I) generation -- camt.056 FI-to-FI Payment Cancellation Request -- with an MCP server. It has 1 GitHub stars and its last recorded update is dated 2026-10-04.
How do I install camt-exceptions?
+
You can install camt-exceptions by cloning the repository (https://github.com/sebastienrousseau/camt-exceptions) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is sebastienrousseau/camt-exceptions safe to use?
+
Our security agent has analyzed sebastienrousseau/camt-exceptions and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains sebastienrousseau/camt-exceptions?
+
sebastienrousseau/camt-exceptions is maintained by sebastienrousseau. The last recorded GitHub activity is dated 2026-10-04, with 0 open issues.
Are there alternatives to camt-exceptions?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy camt-exceptions to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/sebastienrousseau-camt-exceptions)<a href="https://claudewave.com/repo/sebastienrousseau-camt-exceptions"><img src="https://claudewave.com/api/badge/sebastienrousseau-camt-exceptions" alt="Featured on ClaudeWave: sebastienrousseau/camt-exceptions" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ 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/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.