
fizen-mcp
io.github.fizen-com/fizen-mcp
Open Banking account information (PSD2 AIS) for Poland and CEE: Fizen API docs, sandbox and data.
Documentation
Fizen MCP
Open Banking for your AI assistant. An MCP server for the Fizen API: bank account information (AIS, PSD2) for Poland and Central Europe, right inside Claude Code, Claude Desktop, Cursor, VS Code and any other MCP client.
Ask your coding assistant "add bank account linking with Fizen to my app" and it can read the API documentation, list the sandbox banks, start a consent, and fetch real (sandbox) account data while it writes and tests your integration.
You: Connect a test account at fizenbank and show me last month's transactions.
Claude: fizen_list_banks → fizen_start_linking → (you approve at the bank) → fizen_get_transactions
Here are 23 transactions from 1 to 31 October...
Why
- Docs your assistant can read. The full Fizen API reference is bundled and searchable, so the assistant stops guessing header names and status codes.
- A real sandbox in the loop. It calls
api.sandbox.fizen.comwith your keys and sees real responses, errors and edge cases while it codes. - Your keys stay with you. The server runs locally over stdio and talks to the Fizen API directly. Nothing passes through any server of ours.
- Open source. Read exactly what it does with your credentials. Apache 2.0, provided as is (see Disclaimer).
What's inside
| Tool | What it does | Needs keys |
|---|---|---|
fizen_docs_list | Every section and endpoint of the Fizen API documentation | |
fizen_docs_search | Keyword search across the documentation | |
fizen_docs_read | One section or endpoint in full: parameters, responses, cURL example | |
fizen_environment | Which environment is in use, whether keys are set, sandbox hours | |
fizen_list_banks | Banks available for account information, with their bankId | ✓ |
fizen_start_linking | Starts a consent at a bank: returns state and the bank page for the user | ✓ |
fizen_get_account | Owner, account number, currency, balances, consent expiry | ✓ |
fizen_get_transactions | Transaction history from a date, optionally with every status | ✓ |
fizen_get_account_owner | Owner name and address for identification (KYC) | ✓ |
fizen_get_consent_definitions | Consent types and versions configured for your client | ✓ |
fizen_get_user_consents | Consents recorded for one end user | ✓ |
fizen_grant_consents | Records consents an end user granted (off in production by default) | ✓ |
fizen_revoke_consents | Revokes an end user's consents (off in production by default) | ✓ |
Retail and company accounts are both supported (accountType: "company", including the extra nip and psuContextIdentifierValue some banks require). Payments are not part of this server: Fizen provides account information only.
Quick start
You need Node.js 20 or later. The documentation tools work right away; the account tools need sandbox keys (see below).
Claude Code
claude mcp add fizen -e FIZEN_API_KEY=your-key -e FIZEN_TOKEN=your-token -- npx -y fizen-mcp
Claude Desktop
One click: download fizen-mcp-<version>.mcpb from the latest release and open it. Claude Desktop installs the extension and asks for your keys (optional; the documentation tools work without them).
Or add it by hand to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"fizen": {
"command": "npx",
"args": ["-y", "fizen-mcp"],
"env": {
"FIZEN_API_KEY": "your-key",
"FIZEN_TOKEN": "your-token"
}
}
}
}
Cursor
Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json):
{
"mcpServers": {
"fizen": {
"command": "npx",
"args": ["-y", "fizen-mcp"],
"env": { "FIZEN_API_KEY": "your-key", "FIZEN_TOKEN": "your-token" }
}
}
}
VS Code
Add to .vscode/mcp.json; VS Code asks for the keys once and stores them securely:
{
"inputs": [
{ "id": "fizen-key", "type": "promptString", "description": "Fizen API key", "password": true },
{ "id": "fizen-token", "type": "promptString", "description": "Fizen API token", "password": true }
],
"servers": {
"fizen": {
"command": "npx",
"args": ["-y", "fizen-mcp"],
"env": { "FIZEN_API_KEY": "${input:fizen-key}", "FIZEN_TOKEN": "${input:fizen-token}" }
}
}
}
More ready-to-copy configs are in examples/. The server is also listed in the official MCP Registry as io.github.fizen-com/fizen-mcp. Any other MCP client works the same way: run npx -y fizen-mcp over stdio with the environment variables below.
Getting keys
- Open a developer account at company.fizen.com/signup?as=developer. The business is checked against the public registers by its NIP.
- In the Developer tab, request the sandbox. You get an
apiKeyand atokenforapi.sandbox.fizen.com. - Give Fizen the AIS return address of your backend: after a user approves access, Fizen posts the account ids there (see How linking works).
Production access follows the agreement with Fizen and requires the public IP address your requests come from.
How linking works
sequenceDiagram
autonumber
participant A as Your assistant (MCP)
participant F as Fizen API
participant U as End user
participant B as Bank
participant S as Your backend
A->>F: fizen_start_linking(bankId, redirectUri, userId)
F-->>A: state + redirectUri (bank page)
A->>U: open redirectUri
U->>B: log in, approve access (SCA)
B-->>U: back to your redirectUri
F->>S: POST callback: state, userId, bankId, accounts, consentExpirationDateTime
S-->>A: accountId (you pass it on)
A->>F: fizen_get_account / fizen_get_transactions(bankId, accountId, state)
F-->>A: account data
The callback goes to the address configured for your API client, not to this MCP server. In the sandbox, any endpoint you can read works: your dev server, a tunnel, or a request inspector. Then give the accountId to the assistant.
Good to know:
- A consent
statelives for 200 days; the bank consent itself expires atconsentExpirationDateTime. - Send the same
userIdfor the same person: consents with the sameuserIdand bank are grouped, which extends how long history can be read at banks with strict limits. - Banks limit how often and how far back history can be read. Read once, store it on your side, then read only what is new.
tradeDateFrommust be a day before today.
Example prompts
- "Using the Fizen docs, write a TypeScript function that fetches the transactions of an account and retries on HTTP 430."
- "List the sandbox banks and start linking a company account at mbank, returning to http://localhost:3000/bank/return."
- "Here is the accountId from the callback: …. Show the balance and the last 30 days of transactions."
- "What does the AIS callback contain, and how long is a state valid?"
- "Build me an Express endpoint that receives the Fizen AIS callback and stores the accounts."
Configuration
| Variable | Default | Description |
|---|---|---|
FIZEN_ENV | sandbox | sandbox (api.sandbox.fizen.com) or production (api.app.fizen.com) |
FIZEN_API_KEY | Your API key. Without it only the documentation tools work. | |
FIZEN_TOKEN | Your API token | |
FIZEN_BASE_URL | per environment | Override the API address (e.g. a proxy) |
FIZEN_TIMEOUT_MS | 30000 | Request timeout. Transaction history always gets at least 60 s. |
FIZEN_ALLOW_CONSENT_CHANGES | false | Allow fizen_grant_consents and fizen_revoke_consents in production |
The sandbox works 8:00 to 18:00 UTC. Outside those hours the first request wakes it up, which takes 2 to 5 minutes; the server tells the assistant to wait and retry. Sandbox banks: fizenbank (Fizen's test bank), ing, alior, mbank.
Production
The same server works against production with FIZEN_ENV=production and your production keys. Keep in mind:
- It returns real people's bank data. You process it under your agreement with Fizen and the GDPR. If an AI assistant reads it, you decide which model provider receives it, and your users should know.
- IP allowlist. Production requests must come from the IP address registered with Fizen, so run the server where that address applies.
- Consent records are off by default. Granting or revoking consents must reflect what the end user actually did in your product, so those tools need
FIZEN_ALLOW_CONSENT_CHANGES=truein production.
Security
- Credentials are read from the environment and sent only as request headers to the Fizen API. They never appear in tool results or logs.
- The server is local (stdio) and makes no requests other than to the configured Fizen API address.
- Report vulnerabilities privately: see SECURITY.md.
Development
git clone https://github.com/fizen-com/fizen-mcp.git
cd fizen-mcp
npm install # also builds dist/
npm test # unit tests, no network
npm run inspect # try the tools in the MCP Inspector
npm run update-spec # refresh spec/fizen-api.json from docs.fizen.com
npm run build:mcpb # build the Claude Desktop bundle into build/
Releasing: bump the version in package.json, server.json and manifest.json (a test checks they agree), update CHANGELOG.md, npm publish, then push a vX.Y.Z tag. The release workflow attaches the Claude Desktop bundle to a GitHub release and publishes to the MCP Registry.
The documentation tools read spec/fizen-api.json, a snapshot of the OpenAPI definition published at docs.fizen.com, limited to account information and the general sections. Contributions are welcome: see CONTRIBUTING.md.
Disclaimer
Fizen MCP is open-source software published by FIZEN Sp. z o.o. under the Apache License 2.0. It is provided "as is", without warranties or conditions of any kind, and FIZEN's liability is limited as set out in sections 7 and 8 of the license. In particular:
- It is not part of the Fizen API service. Your agreement with Fizen covers the Fizen API. This server is a free tool on top of it, with no SLA, no support obligation and no guarantee that it keeps up with every change of the API. Help through GitHub issues is best effort.
- You run it, so you are responsible for how it is used: which data it reads, which AI assistant and model provider receive that data, and compliance with your agreement with Fizen, the GDPR and other law.
- Only the official sources are ours: this repository and the npm package
fizen-mcppublished from it. FIZEN is not responsible for versions changed by anyone else, for forks, or for copies distributed elsewhere. - The Fizen name and logo are trademarks of FIZEN Sp. z o.o. The license does not grant the right to use them (section 6). A modified version must not present itself as the official Fizen server.
- The bundled documentation is a snapshot of docs.fizen.com. Where they differ, docs.fizen.com prevails.
About Fizen
Fizen (FIZEN Sp. z o.o., Łódź, Poland) is an account information service provider supervised by the Polish Financial Supervision Authority (KNF register AISP13/2022). The Fizen API gives businesses standardised access, with the account owner's consent, to retail, company and corporate accounts at the major banks in Poland, the Czech Republic, Slovakia, Hungary and Romania.
License
Apache License 2.0. Copyright 2026 FIZEN Sp. z o.o.
fizen-mcpnpm install fizen-mcp