SuperAPIAI Directory

pacs008-mcp

github.com · AI developer platforms

Generate, validate and parse ISO 20022 pacs.008, pacs.004 and pacs.002 messages, repair structured addresses and convert SWIFT MT103 to pacs.008.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

pacs008-mcp is a Model Context Protocol (MCP) server that exposes the pacs008 ISO 20022 FI-to-FI customer credit transfer library as callable tools for AI agents and assistants. It allows users to discover message types and scheme profiles from common MCP clients (such as Claude Desktop and Cursor), validate records against JSON Schema and rail usage guidelines, generate validated XML, validate raw XML against bundled XSDs, and parse inbound messages.

Key capabilities Latest version v0.0.14 provides 16 MCP tools over stdio, streamable HTTP, or SSE transports, all built on the pacs008 library and suitable for Python 3.10+. The tools include:

  • list_message_types: List the 20 supported ISO 20022 pacs message types
  • list_schemes: List registered scheme/usage guideline profiles
  • get_scheme: Inspect the rules of a scheme profile
  • get_required_fields: Get the required input fields for a message type
  • get_input_schema: Get the full input JSON Schema for a message type
  • validate_records: Validate flat records against a message type schema
  • validate_scheme: Validate records against scheme usage guidelines
  • generate_message: Generate a validated pacs XML message
  • validate_xml: Validate a raw XML string against bundled XSDs
  • parse_message: Parse and classify an inbound ISO 20022 message
  • convert_mt103: Convert legacy SWIFT MT103 to pacs.008-ready records (MT→MX migration)
  • classify_address: Classify a postal address as structured/hybrid/unstructured
  • validate_address: Validate a single postal address against address policies
  • repair_address: Upgrade legacy unstructured address lines to hybrid/structured form
  • validate_addresses: Batch validate all party addresses in a payment line
  • verify_bic_online: Check BIC format and look it up in the configured BIC directory (requires the online extra)

Usage pacs008-mcp runs on macOS, Linux, and Windows, and requires Python 3.10+ and pip. It automatically pulls in the core pacs008 library and the MCP SDK. Note: the core pacs008 library has not yet been published to PyPI and must be installed from source first: pip install "git+https://github.com/sebastienrousseau/pacs008.git"。 Start the server (default stdio transport): the transport can be specified via the command line, and --host and --port can change the bind address (default 127.0.0.1 and 8000). The HTTP transport itself does not carry authentication: bind to the loopback address, or place the server behind a trusted gateway before binding to a routable address. Register with an MCP client (such as Claude Desktop): add the server to the client configuration. All tools are thin typed wrappers around the pacs008 library, with behavior consistent with the CLI and REST API. Tools return JSON-serializable data; on validation errors they return a {"error": ...} payload instead of throwing an exception.

Use cases Suitable for financial scenarios that need to process ISO 20022 pacs.008 messages, such as: generating, validating, and parsing FI-to-FI customer credit transfer XML messages directly from AI conversations; validating against scheme rules such as CBPR+, HVPS+, Fedwire, CHAPS, T2, and SCT-Inst; migrating legacy SWIFT MT103 to pacs.008; and preparing for the November 2026 structured address deadline.

Limitations

  • The core pacs008 library is not yet on PyPI and must be installed from source.
  • The HTTP transport has no built-in authentication and must be secured by the user.
  • The repair_address step is experimental, and its output should be audited before submission downstream.
  • verify_bic_online requires the online extra.
  • After November 14, 2026, SWIFT CBPR+, HVPS+, TARGET2 RTGS, CHAPS, Fedwire, and Lynx will discontinue fully unstructured postal addresses, and cross-border or high-value payments containing only unstructured addresses will be rejected by the rail.

The project is licensed under Apache-2.0 and is part of the ISO 20022 MCP Suite.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools