bankstatementparser-mcp
v0.0.37Parse bank statements (CAMT.053, pain.001, MT940, OFX/QFX, CSV) over stdio, streamable HTTP or SSE.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_supported_formats List supported statement formats
List every bank statement format identifier this server can parse. Use this first to discover the valid ``format`` strings accepted by ``detect_format``, ``parse_statement``, ``validate_statement``, and ``summarize_statement``. For the file extensions and a human-readable description of each format, read the ``bankstatementparser://formats`` resource instead. Returns: The supported format identifiers.
detect_format Detect statement format
Detect which bank statement format an inline payload is. Use this when you hold statement text but do not yet know its format, to resolve the ``format`` identifier from the content plus filename hint. Once the format is known, use ``parse_statement`` to read the transactions. Args: content: The raw statement text. filename: Original filename; its extension is the primary hint. Returns: The detected format identifier. Raises: ToolError: If the format cannot be detected.
| Parameter | Type | Description |
|---|---|---|
content * | string | The raw statement text to inspect, inline (not a file path). Supported formats include ISO 20022 CAMT.053 and pain.001 XML, SWIFT MT940, CSV exports, and OFX/QFX. |
filename | string | Original filename of the payload; its extension is the primary detection hint. Recognised extensions: .xml, .csv, .ofx, .qfx, .mt940, .sta. Defaults to 'statement.xml'. |
parse_statement Parse statement transactions and summary
Parse an inline statement payload into transaction rows and a summary. Returns the resolved ``format``, the ``columns``, the full ``transaction_count``, the ``transactions`` as row dicts (at most ``limit``) and the statement ``summary``. For balances only, ``summarize_statement`` returns just the summary; to confirm a payload parses without any rows, ``validate_statement``. Raises: ToolError: If the format is unsupported, cannot be detected, or the payload does not parse.
| Parameter | Type | Description |
|---|---|---|
content * | string | The raw statement text to parse, inline (not a file path). Accepts ISO 20022 CAMT.053 and pain.001 XML, SWIFT MT940, CSV exports, and OFX/QFX payloads. |
filename | string | Original filename; its extension (.xml, .csv, .ofx, .qfx, .mt940, .sta) selects the format when 'format' is omitted. |
format | Explicit format identifier that overrides detection from the filename. Must be exactly one of: 'camt', 'pain001', 'csv', 'ofx', 'qfx', 'mt940' (see list_supported_formats). When omitted, the format is… | |
limit | Maximum transaction rows to return; omitted returns all. 'transaction_count' is always the full count. |
validate_statement Validate statement (dry run)
Dry-run parse an inline statement to check it parses cleanly. Use this to confirm a payload is well-formed and parseable before committing to a full read; it returns a structured pass/fail with the transaction count but never the rows themselves, and never raises on a parse error. To actually read the transactions use ``parse_statement``. Args: content: The raw statement text. filename: Original filename; its extension selects the format. format: Explicit format override. Returns: A dict with ``is_valid``, the resolved ``format``, the…
| Parameter | Type | Description |
|---|---|---|
content * | string | The raw statement text to validate, inline (not a file path). Accepts ISO 20022 CAMT.053 and pain.001 XML, SWIFT MT940, CSV exports, and OFX/QFX payloads. |
filename | string | Original filename of the payload; its extension (.xml, .csv, .ofx, .qfx, .mt940, .sta) selects the format when 'format' is omitted. Defaults to 'statement.xml'. |
format | Explicit format identifier that overrides detection from the filename. Must be exactly one of: 'camt', 'pain001', 'csv', 'ofx', 'qfx', 'mt940' (see list_supported_formats). When omitted, the format is… |
summarize_statement Summarize statement balances
Summarize an inline statement's balances and totals only. Use this when you need just the opening/closing balances, currency, and other summary fields without the per-transaction rows. For the full transaction detail alongside the summary, use ``parse_statement`` instead. Args: content: The raw statement text. filename: Original filename; its extension selects the format. format: Explicit format override. Returns: The summary record with Decimal values stringified. Raises: ToolError: If the format is unsupported, cannot be…
| Parameter | Type | Description |
|---|---|---|
content * | string | The raw statement text to summarize, inline (not a file path). Accepts ISO 20022 CAMT.053 and pain.001 XML, SWIFT MT940, CSV exports, and OFX/QFX payloads. |
filename | string | Original filename of the payload; its extension (.xml, .csv, .ofx, .qfx, .mt940, .sta) selects the format when 'format' is omitted. Defaults to 'statement.xml'. |
format | Explicit format identifier that overrides detection from the filename. Must be exactly one of: 'camt', 'pain001', 'csv', 'ofx', 'qfx', 'mt940' (see list_supported_formats). When omitted, the format is… |