Skip to content

bankstatementparser-mcp

The Model Context Protocol (MCP) is an open standard that lets AI agents discover and call external tools in a uniform way. bankstatementparser-mcp is the MCP server that turns the bankstatementparser library into agent tools, so an assistant can read, validate, and summarise bank statements in formats such as ISO 20022 CAMT.053, SWIFT MT940, OFX/QFX, and CSV directly from a conversation.

Every tool is a thin wrapper over the bankstatementparser parser core (create_parser, detect_statement_format), so the results behave identically to the CLI. Because an MCP client does not share the server's filesystem, the tools take inline statement content (plus a filename hint) and materialise it in a private temporary file for the duration of a single call. Tools return JSON-serialisable data.

Concern How bankstatementparser-mcp handles it
Transport stdio by default; --transport streamable-http (2026-07-28 and 2025-11-25 on one endpoint) or --transport sse for HTTP
Input model Inline content + filename hint; no shared filesystem required
Format fidelity Tools delegate to bankstatementparser's create_parser pipeline
Format detection detect_format mirrors the library's detect_statement_format
Validation validate_statement is a dry run that returns structured results
Isolation Each call writes to a private temp file that is deleted on exit

In this manual

The source, issues and releases live on GitHub; the package is on PyPI.