swift-iso20022-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@swift-iso20022-mcp Is DE89370400440532013000 a valid IBAN?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
swift-iso20022-mcp
An MCP (Model Context Protocol) server that gives any AI agent — Claude, ChatGPT, Cursor, Windsurf, or any other MCP-compatible client, local or remote — tools to validate SWIFT MT and ISO 20022 MX payment messages, check BIC/IBAN correctness, and map between MT and MX formats, without the agent hallucinating message-format rules.
Built from real SWIFT MT/ISO 20022 test-automation experience in banking and payments (SWIFT MT/MX, ACH, SEPA, RTGS, FEDWIRE).
Why this exists
Generic AI agents get SWIFT/ISO 20022 formatting wrong constantly — mandatory fields, BIC shape, IBAN checksums, charges codes, and (as of the SWIFT CBPR+ milestone in November 2026) structured vs. unstructured postal addresses. This server gives an agent ground truth instead of a guess.
Related MCP server: camt053-mcp
Two transports — this is what makes it "universal"
MCP itself is the cross-vendor standard (Anthropic, OpenAI, Google, and Microsoft all support it), but a server still has to expose the right transport to be reachable by every kind of client:
Transport | Entrypoint | Who connects this way |
stdio |
| Local clients that spawn your process directly: Claude Desktop, Cursor, Windsurf, Cline |
Streamable HTTP |
| Remote clients that connect over a URL: hosted connectors, web-based agents, anything that can't spawn a local process |
Same tools, same logic (src/server-factory.js is shared by both) — only
the wire format differs. Run whichever one matches where you want to be
reachable, or both at once on different machines.
Tools exposed
Tool | What it does |
| Validates an MT103 or MT202 message body: mandatory fields, date/currency/amount format, BIC shape, IBAN checksum, charges code |
| Validates a pacs.008/pacs.009 XML message: MsgId presence, currency shape, BICFI validity, IBAN checksum, unstructured-address warning |
| Structural BIC/SWIFT code check (8 or 11 chars) |
| IBAN shape + ISO 7064 mod-97 checksum |
| Maps MT103 fields to pacs.008 (customer credit transfer, has Dbtr/Cdtr) |
| Maps MT202 fields to pacs.009 (bank-to-bank transfer, has InstgAgt/InstdAgt BICs instead of customer parties) |
| Reverse direction: maps pacs.008 XML back to MT103 field tags, for coexistence-period systems that still expect MT |
Install & test
cd swift-mcp
npm installThere are three ways to verify it works, in order of speed:
1. Unit tests — checks the logic in isolation
npm testRuns 18 assertions against swift-core.js directly. No MCP protocol
involved — fastest signal that the validation/mapping logic is correct.
2. Manual protocol test — checks the stdio server
npm run test:manualSpawns the actual stdio server and talks to it over real JSON-RPC (the same transport Claude Desktop uses), calling all 7 tools with realistic data.
You can also inspect either transport interactively with the official MCP Inspector:
npx @modelcontextprotocol/inspector node src/index.js3. Manual test for the HTTP transport
npm run start:http
# in another terminal:
curl http://localhost:3000/health
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"validate_bic","arguments":{"bic":"DEUTDEFF"}}}'4. Live test in a real client
Add the config below for whichever client you're using, and try prompts like:
"Validate this MT103: :20:REF123...\n:23B:CRED\n:32A:250115USD1000,00..." "Is DE89370400440532013000 a valid IBAN?" "Convert this MT202 to pacs.009: ..."
Watch for the tool-use block in the client's UI — that confirms it's calling your server instead of guessing.
Connect it — local clients (stdio)
Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json
on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"swift-iso20022": {
"command": "node",
"args": ["/absolute/path/to/swift-mcp/src/index.js"]
}
}
}Cursor, Windsurf, and Cline use the same shape in their own MCP config files
— just the command/args pair pointing at src/index.js.
Connect it — remote clients (Streamable HTTP)
Run the HTTP server:
npm run start:http # listens on PORT env var, default 3000Deploy it anywhere Node.js runs — Render, Railway, Fly.io, a VPS — and point any HTTP-based MCP client at:
https://your-deployed-host/mcpSecuring the public endpoint
Set MCP_API_KEY in the deployment environment to require a bearer token on
every request. If it's unset, the endpoint stays open (fine for local/manual
testing, not for a public deploy):
MCP_API_KEY=your-secret-key npm run start:httpClients must then send:
Authorization: Bearer your-secret-keyThis is what lets a client that can't spawn a local process (a hosted connector, a web app, a teammate who doesn't have your code checked out) reach the same tools. It runs statelessly — every request gets a fresh server instance, so there's no session state to lose on a restart, which also makes it trivial to run on serverless platforms.
Roadmap (next steps if you take this further)
MT202 -> pacs.009 mapping
Reverse MX -> MT mapping (pacs.008 -> MT103)
Streamable HTTP transport for remote/universal access
Reverse pacs.009 -> MT202 mapping (currently only pacs.008 -> MT103 exists)
Full XSD schema validation for MX messages (current MX check is structural, not schema-complete)
Auth (API key) on the HTTP endpoint via
MCP_API_KEY— optional, off by default for local testingPublish to npm as
@bikramdas1/swift-iso20022-mcpso it can be installed withnpxSubmit to the MCP server directory / registry once it has real usage
Wire this same
src/swift-core.jslogic into Coexist as a shared package, so the SaaS UI and the MCP server never drift apart
License
MIT
Available Tools
7 toolsconvert_mt103_to_pacs008Convert MT103 to pacs.008 fieldsA
Parses a SWIFT MT103 message and maps its fields to the equivalent ISO 20022 pacs.008 fields (MsgId, IntrBkSttlmDt, IntrBkSttlmAmt, Ccy, ChrgBr, Dbtr/Cdtr name and account). Returns a simplified field map plus notes on anything that couldn't be confidently mapped — not a full XML generator, intended for agents that need a quick MT-to-MX field bridge.
Inputs: raw_message (required).
convert_mt202_to_pacs009Convert MT202 to pacs.009 fieldsA
Parses a SWIFT MT202 (General Financial Institution Transfer) message and maps its fields to the equivalent ISO 20022 pacs.009 fields (MsgId, EndToEndId, IntrBkSttlmDt, IntrBkSttlmAmt, Ccy, InstgAgt/InstdAgt/IntrmyAgt1 BICs). Unlike MT103, MT202 moves money bank-to-bank so there is no customer-level Dbtr/Cdtr — only institution BICs. Returns notes on anything not confidently mapped.
Inputs: raw_message (required).
convert_pacs008_to_mt103Convert pacs.008 to MT103 fields (reverse mapping)A
Parses an ISO 20022 pacs.008 XML message and maps its fields back to SWIFT MT103 field tags (:20:, :23B:, :32A:, :50K:, :59:, :71A:). Useful during the SWIFT MT/MX coexistence period when a downstream system still expects MT format. Deliberately conservative — only maps fields it can extract with confidence and flags the rest in the notes array rather than guessing.
Inputs: xml (required).
validate_bicValidate BIC/SWIFT codeA
Checks whether a string is a structurally valid BIC (8 or 11 characters: 4-letter bank code, 2-letter country code, 2-char location code, optional 3-char branch code).
Inputs: bic (required).
validate_ibanValidate IBANA
Checks whether a string is a structurally valid IBAN and passes the ISO 7064 mod-97 checksum.
Inputs: iban (required).
validate_mt_messageValidate SWIFT MT messageA
Validates a SWIFT MT103 (customer credit transfer) or MT202 (FI transfer) message body against mandatory-field rules, field-format rules (dates, currency, BIC, charges code), and IBAN checksums. Use this before submitting or forwarding an MT message, or when an agent needs to check a message it generated or received is well-formed.
Inputs: raw_message (required), message_type (required).
validate_mx_messageValidate ISO 20022 MX messageA
Validates an ISO 20022 MX message (pacs.008 or pacs.009 XML) for structural issues: missing MsgId, malformed currency codes, invalid BICFI values, invalid IBAN checksums, and unstructured-address usage flagged against SWIFT's November 2026 CBPR+ structured-address requirement. Not a full XSD validator — use for a fast pre-check before schema validation.
Inputs: xml (required), message_type (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct resource and action: validation of MT messages, MX messages, IBANs, and BICs, plus three specific conversion paths. There is no overlap between tools—even the two validation tools clearly separate MT and MX formats, and each conversion tool names its exact source and destination.
All tool names follow a consistent verb_noun pattern: validate_* for validations and convert_*_to_* for conversions. The naming is entirely snake_case and predictable, making it easy to infer a tool's purpose from its name.
Seven tools is an appropriate size for a specialized SWIFT MT/MX message-processing server. Each tool covers a distinct validation or conversion need without redundancy, and the count feels neither thin nor overly heavy.
The validation coverage is complete for both MT and MX messages, and conversion paths exist for MT103->pacs.008 and MT202->pacs.009. However, the reverse conversion for MT202 (pacs.009->MT202) is missing, while the MT103 reverse path is included—creating an asymmetry that could dead-end agents.
Maintenance
Related MCP Connectors
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for building and testing AI agents with multi-model experimentation and insights.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that gives AI agents deterministic, verified access to ISO 8583 field specs, MTI decoding, jPOS packager XML generation, deploy descriptor validation, message building, and jPOS documentation search.74MIT
- AlicenseAqualityBmaintenanceMCP server that enables AI agents to parse, validate, and reverse ISO 20022 bank statements, with tools for discovering message types and return reasons.2470 PyPI2Apache 2.0
- AlicenseAqualityBmaintenanceA Model Context Protocol server that exposes the pain001 ISO 20022 Customer Credit Transfer Initiation library as agent tools, enabling AI assistants to generate and validate standardized payment XML messages.30953 PyPI1Apache 2.0
- AlicenseAqualityBmaintenanceAn MCP server that exposes the pacs008 ISO 20022 FI-to-FI Customer Credit Transfer library as tools for AI agents and assistants, enabling generation, validation, and parsing of pacs.008 credit transfer XML messages.1649 PyPI1Apache 2.0