Concepts
Verifying a funding source with BankMCP
A payer tells us an IBAN is theirs. Nothing so far has checked it. FundingSource.verified has always shipped as false, with a comment saying ownership is taken on trust until a verification step exists.
This is that step. The payer's own bank — reached through a BankMCP server the payer runs — signs a short statement saying the IBAN is among the accounts they hold a live consent for. We check the signature and record the result.
No money moves. This is not a settlement rail, even though it is configured like one.
What it proves, and what it does not#
| Question | Answered |
|---|---|
| Is this IBAN one of the payer's accounts? | Yes, signed by their bank server |
| Does it hold at least X? | Only if the payer allows it, and only as a yes/no |
| What is the balance? | Never disclosed |
| What are the transactions? | Never requested |
| Which other accounts does the payer have? | Never requested |
| Can we pay from it? | No. Settlement happens elsewhere |
The attestation is a boolean and a signature. It is deliberately the smallest thing that answers the question.
Why it is shaped this way#
BankMCP is a read-only PSD2 client (account information, AIS). It holds no payment-initiation permission, and it runs under Enable Banking's restricted mode, which allows a person to reach their own accounts. Two consequences:
- The payer runs the server, not us. Their Enable Banking application, their consent, their accounts. We never hold bank credentials and need no PSD2 permission of our own.
- Nothing here initiates a payment. Asking a read-only client to move money would require a different licence on their side and a different consent from the account holder.
submit()on this rail always throws.
That split is what makes the integration legal for both sides rather than convenient for one.
Registering where a funding source is proved#
Each funding source is proved against the payer's own server. register_funding_source_endpoint records, for one funding source, the base URL of that server, the token the payer issued, and when their consent expires. From then on that source is proved there. One deployment serves payers on different banks this way.
The token is write-only. No read path returns it: not get_payer, not get_funding_source_endpoint, not the REST API.
revoke_funding_source_endpoint forgets the endpoint and the token. Any verification already recorded stays: the bank did attest the account, and withdrawing our access does not make that untrue. Nothing further can be attested through it until a new endpoint is registered, which is also how a payer comes back after re-authorizing an expired consent. The endpoint must be https, so a token never crosses the network in clear.
Consent expiry#
AIS consents last 180 days. Past the expiry recorded for an endpoint, the attestation is refused here rather than at the bank, naming the date and what fixes it — the payer re-authorizes and registers the new token. Letting the request through would surface whatever opaque error the payer's PSD2 client happens to report.
capabilities() keeps reporting settlement: false under this rail — it cannot settle, and saying otherwise would be a lie the rest of the service would act on:
{ "authorization": true, "settlement": false, "simulated": false, "environment": "SANDBOX",
"note": "This deployment authorizes payments only. Settlement is performed elsewhere." }What the payer does#
Once, on their own server:
ATTESTATION_ENABLED=1 # off by default; nothing is attested until this is set
ATTESTATION_MAX_BALANCE=5000 # optional: highest threshold answerable
ATTESTATION_INCLUDE_HOLDER_NAME=1 # optional: include the name on the accountThen they sign in to their server from an MCP client and hand us a token. They can revoke it, or unset ATTESTATION_ENABLED, and the integration goes dark immediately. That control stays with them by design.
The flow#
The nonce is generated by us per request and is covered by the signature, so an old attestation cannot be presented as a fresh one.
The attestation#
{
"claims": {
"v": "bankmcp-attestation-v1",
"iban": "NL91ABNA0417164300",
"owned": true,
"holder_name": null,
"currency": "EUR",
"sufficient": true,
"min_balance": 500,
"nonce": "2f1c…",
"issued_at": 1790000000,
"expires_at": 1790000300,
"issuer": "https://bank.example"
},
"signature": "…",
"key_id": "MCowBQYDK2VwAy…"
}Every field the verifier decides on is inside claims, and claims is what the signature covers. The canonical bytes are JSON.stringify over the fields in exactly the order above — written out explicitly on both sides, because neither controls the other's object construction.
What we check#
A signature that verifies is not enough on its own. In order:
- Version is one we understand.
- Algorithm is
ed25519. key_idmatches the key the issuer publishes. A signature from some other key proves nothing, however well-formed.- Nonce matches the one we generated for this request.
- Issuer matches where we fetched the key from.
- Not expired — attestations live five minutes.
- Not minted in the future — a minute of clock drift is tolerated, more is refused.
- Signature over the canonical bytes.
Any failure returns a reason rather than throwing, and the reason is written for an operator to read.
Results#
| Outcome | What the rail does |
|---|---|
owned: true |
Returns a source; status is ACTIVE |
owned: true, sufficient: false |
Returns a source with status: INSUFFICIENT (below N) |
owned: false |
Returns no source, and marks nothing verified. A signed "not mine" is an answer, not a failure |
| Verification fails | Throws, naming which check failed |
| Bank refuses (e.g. threshold above its ceiling) | Throws with the bank's own message, unchanged |
The returned source carries balance: "undisclosed". No balance was revealed, so none is invented.
What gets written down#
A successful attestation sets FundingSource.verified to true and records the evidence
beside it:
{
"verified": true,
"verification": {
"method": "bankmcp-attestation",
"issuer": "https://bank.example",
"keyId": "MCowBQYDK2VwAy…",
"issuedAt": "2026-10-02T09:13:20.000Z",
"attestedIdentifier": "NL91ABNA0417164300",
"verifiedAt": "2026-10-02T09:13:21.447Z",
"holderName": null
}
}A bare true cannot be audited six months later: it does not say who vouched, under which
key, or for which IBAN. The fields come out of the claims the signature covered, not out of
the endpoint that happened to answer.
A failed verification and an owned: false answer both leave verified exactly as they found it.
Implementing the other side#
The contract is the claim shape, the canonical bytes, and an Ed25519 key at /.well-known/bankmcp-attestation. Nothing else. The two sides share no code and no secret, so either can be written in any language from this page alone and still interoperate. The attesting side is described in The attesting side.