QontoCtl
About
CLI and MCP server for the Qonto business banking API — manage transactions, invoices, clients, transfers, and more
Details
- Author
- alexey-pelykh
- GitHub stars
- 3
- Downloads
- 142
- Categories
- Cloud Service, Finance, API, Other, Developer Tools
Jump to
- Full Qonto banking API via CLI and MCP
- Manage accounts, transactions, and statements
- Handle SEPA beneficiaries and transfers
- Invoicing: clients, invoices, quotes, credit notes
- Invite members and manage organization settings
- Upload and view attachments for transactions
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
QontoCtlCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install via npm (npm install -g qontoctl), run directly with npx qontoctl, or install via Homebrew. Create a profile with your Qonto API credentials using qontoctl profile add mycompany, then test with qontoctl profile test. Use commands like qontoctl account list. For MCP integration, configure the MCP client (Claude Desktop, Claude Code, Cursor, Windsurf) to run npx qontoctl mcp. To use a non-default config file, set the QONTOCTL_CONFIG_FILE environment variable.
attachment_upload
Upload an attachment file (PDF, JPEG, PNG) from the filesystem
attachment_show
Show details of a specific attachment
transaction_attachment_list
List attachments for a transaction
transaction_attachment_add
Attach a file to a transaction from the filesystem
transaction_attachment_remove
Remove attachment(s) from a transaction. If attachment_id is provided, removes that specific attachment. Otherwise removes all attachments.
account_list
List all bank accounts for the organization
account_show
Show details of a specific bank account
account_iban_certificate
Download IBAN certificate PDF for a bank account
account_create
Create a new bank account. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
account_update
Update an existing bank account. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
account_close
Close a bank account. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
beneficiary_list
List SEPA beneficiaries in the organization
beneficiary_show
Show details of a specific SEPA beneficiary
beneficiary_add
Create a new SEPA beneficiary. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
beneficiary_update
Update an existing SEPA beneficiary. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
beneficiary_trust
Trust one or more SEPA beneficiaries (requires Embed-partner-only `beneficiary.trust` OAuth scope; standard third-party apps will receive 403). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
beneficiary_untrust
Untrust one or more SEPA beneficiaries (requires Embed-partner-only `beneficiary.trust` OAuth scope; standard third-party apps will receive 403). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_list
List cards in the organization
card_show
Show details of a specific card
card_create
Create a new card. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_bulk_create
Bulk create cards (up to 50). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_lock
Lock a card. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_unlock
Unlock a card. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_report_lost
Report a physical card as lost (irreversible). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_report_stolen
Report a physical card as stolen (irreversible). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_discard
Discard a card (irreversible). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_update_limits
Update a card's spending limits. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_update_nickname
Update a card's nickname. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_update_options
Update a card's options (ATM, NFC, online, foreign). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_update_restrictions
Update a card's restrictions (active days, merchant categories). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
card_iframe_url
Get secure iframe URL for viewing card details (PAN, CVV, expiry)
card_appearances
List available card appearances (designs by type and level)
bulk_transfer_create
Create a bulk SEPA transfer from a debit account. Each item provides either beneficiary_id (existing) or beneficiary (inline name+iban). client_transfer_id is auto-generated when omitted; vop_proof_token is auto-resolved via bulk_verify_payee when omitted (and sca_session_token is not provided). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
bulk_transfer_list
List bulk transfers
bulk_transfer_show
Show details of a specific bulk transfer
client_list
List clients with optional pagination
client_show
Show details of a specific client
client_create
Create a new client
client_update
Update an existing client
client_delete
Delete a client
client_invoice_list
List client invoices with optional filters
client_invoice_show
Show details of a specific client invoice
client_invoice_create
Create a draft client invoice with client and line items
client_invoice_update
Update a draft client invoice
client_invoice_delete
Delete a draft client invoice
client_invoice_finalize
Finalize a client invoice (assign number, transition from draft to unpaid)
client_invoice_send
Send a finalized client invoice to the client via email. Requires `send_to` (one or more recipient emails) and `email_title`; optional `email_body` and `copy_to_self` (default `true`).
client_invoice_mark_paid
Mark a client invoice as paid
client_invoice_unmark_paid
Unmark a client invoice paid status (transition back to unpaid)
client_invoice_cancel
Cancel a finalized client invoice
client_invoice_upload
Upload a file to a client invoice from the filesystem
client_invoice_upload_show
Show upload details for a client invoice
credit_note_list
List credit notes in the organization
credit_note_show
Show details of a specific credit note
diagnose
Run a read-only healthcheck against the configured qontoctl profile. Returns a DiagnosticReport with per-check status (ok/warn/fail/skip), detail, and suggested actions. Use this first when something doesn't work.
einvoicing_settings
Retrieve e-invoicing settings for the organization
insurance_show
Show insurance contract details
insurance_create
Create a new insurance contract
insurance_update
Update an insurance contract
insurance_upload_document
Upload a document to an insurance contract from the filesystem
insurance_remove_document
Remove a document from an insurance contract
intl_eligibility
Check eligibility for international transfers
intl_currencies
List supported currencies for international transfers
intl_quote_create
Create an international transfer quote with exchange rate
intl_beneficiary_list
List international beneficiaries in the organization
intl_beneficiary_requirements
Get required fields for an international beneficiary corridor
intl_beneficiary_add
Create a new international beneficiary. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
intl_beneficiary_update
Update an international beneficiary. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
intl_beneficiary_remove
Remove an international beneficiary. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
intl_transfer_requirements
Get required fields for an international transfer
intl_transfer_create
Create an international transfer. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
internal_transfer_create
Create an internal transfer between two bank accounts within the same organization. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
label_list
List all labels in the organization
label_show
Show details of a specific label
membership_list
List all memberships in the organization
membership_show
Show the current authenticated user's membership
membership_invite
Invite a new member to the organization
org_show
Show organization details including name, slug, and bank accounts
payment_link_list
List payment links
payment_link_show
Show details of a specific payment link
payment_link_create
Create a new payment link (basket or invoice type)
payment_link_deactivate
Deactivate a payment link
payment_link_payments
List payments for a specific payment link
payment_link_methods
List available payment methods for payment links
payment_link_connect
Establish payment link connection with provider
payment_link_connection_status
Get payment link connection status
product_list
List products from the authenticated organization's catalogue
quote_list
List quotes with optional filters
quote_show
Show details of a specific quote
quote_create
Create a new quote with client and line items
quote_update
Update an existing quote
quote_delete
Delete a quote
quote_send
Send a quote to the client via email. Requires `send_to` (one or more recipient emails) and `email_title`; `copy_to_self` BCCs the authenticated user (defaults to true server-side).
recurring_transfer_create
Create a recurring transfer. vop_proof_token is auto-resolved via verify_payee when omitted (and sca_session_token is not provided). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
recurring_transfer_cancel
Cancel a recurring transfer. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
recurring_transfer_list
List recurring transfers
recurring_transfer_show
Show details of a specific recurring transfer
request_list
List all requests in the organization
request_approve
Approve a pending request. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
request_decline
Decline a pending request. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
request_create_flash_card
Create a flash card request. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
request_create_virtual_card
Create a virtual card request. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
request_create_multi_transfer
Create a multi-transfer request (1-400 transfers). SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
sca_session_show
Show the status of a Strong Customer Authentication (SCA) session. Use this to poll an SCA session token returned by a previous tool call that triggered an SCA challenge. Returns one of: `waiting` (the user has not yet responded), `allow` (approved — retry the original request), or `deny` (rejected). Tokens expire after 15 minutes.
sca_session_mock_decision
Simulate a user SCA decision in the Qonto sandbox environment (testing only). Use after triggering an SCA-required operation in sandbox to bypass the mobile-app approval flow. Returns an error when the server is not configured for sandbox mode (no `oauth.staging-token` / `QONTOCTL_STAGING_TOKEN`).
statement_list
List bank statements with optional filters
statement_show
Show details of a specific bank statement
supplier_invoice_list
List supplier invoices with optional filters
supplier_invoice_show
Show details of a specific supplier invoice
supplier_invoice_bulk_create
Create supplier invoices by uploading files from the filesystem
team_list
List all teams in the organization
team_create
Create a new team in the organization
terminal_list
List Qonto Terminals (POS) linked to the authenticated organization
terminal_payment_create
Initiate a payment on a Qonto Terminal (POS). Returns 202 Accepted — the terminal must still physically accept the card before the payment settles. An offline terminal may hold the request open for up to ~120 seconds.
transaction_list
List transactions for a bank account with optional filters
transaction_show
Show details of a specific transaction
transfer_list
List SEPA transfers with optional filters
transfer_show
Show details of a specific SEPA transfer
transfer_create
Create a SEPA transfer. Provide either beneficiary_id (existing beneficiary) or beneficiary (inline beneficiary object with name and iban), but not both. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
transfer_cancel
Cancel a pending SEPA transfer. SCA: this operation may require Strong Customer Authentication; the tool polls inline by default (wait=30s) and falls back to a structured pending response so the caller can continue via sca_session_show + sca_session_token.
transfer_proof
Download SEPA transfer proof PDF (returns base64-encoded content)
transfer_verify_payee
Verify a payee (Verification of Payee / VoP)
transfer_bulk_verify_payee
Bulk verify payees (Verification of Payee / VoP)
webhook_list
List webhook subscriptions
webhook_show
Show details of a specific webhook subscription
webhook_create
Create a new webhook subscription
webhook_update
Update an existing webhook subscription
webhook_delete
Delete a webhook subscription
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"qontoctl": {
"qontoctl": {
"command": "npx",
"args": [
"-y",
"qontoctl",
"mcp"
],
"env": {
"QONTOCTL_ORGANIZATION_SLUG": "<your-org-slug>",
"QONTOCTL_SECRET_KEY": "<your-secret-key>"
}
}
}
}
}
McpServers
{
"qontoctl": {
"command": "npx",
"args": [
"-y",
"qontoctl",
"mcp"
],
"env": {
"QONTOCTL_ORGANIZATION_SLUG": "<your-org-slug>",
"QONTOCTL_SECRET_KEY": "<your-secret-key>"
}
}
}

CLI and MCP server for the Qonto banking API.
This project is brought to you by Alexey Pelykh.
What It Does
QontoCtl lets AI assistants (Claude, etc.) interact with Qonto through the Model Context Protocol. It can:
- Organizations — retrieve organization details and settings
- Accounts — list, create, update, close bank accounts; download IBAN certificates
- Transactions — list, search, filter bank transactions; manage transaction attachments
- Bank Statements — list, view, and download bank statements
- Labels — manage transaction labels and categories
- Memberships — view team members, show current membership, invite new members
- SEPA Beneficiaries — list, add, update, trust/untrust SEPA beneficiaries
- SEPA Transfers — list, create, cancel transfers; download proofs; verify payees
- Internal Transfers — create transfers between accounts in the same organization
- Bulk Transfers — list and view bulk transfer batches
- Recurring Transfers — list and view recurring transfers
- Terminals (POS) — list Qonto Terminals and initiate terminal payments
- Products — list catalogue products
- Clients — list, create, update, delete clients
- Client Invoices — full lifecycle: create, update, finalize, send, mark paid, cancel, upload files
- Quotes — create, update, delete, send quotes
- Credit Notes — list and view credit notes
- Supplier Invoices — list, view, and bulk-create supplier invoices
- Requests — list organization requests
- Attachments — upload and view attachments
- E-Invoicing — retrieve e-invoicing settings
Prerequisites
- Node.js >= 24
- A Qonto business account with API access
Installation
npm install -g qontoctl
Or run directly with npx:
npx qontoctl --help
Or install via Homebrew:
brew install qontoctl/tap/qontoctl
Quick Start
# 1. Install
npm install -g qontoctl
2. Create a profile with your Qonto API credentials
qontoctl profile add mycompany
3. Test the connection
qontoctl profile test --profile mycompany
4. List your accounts
qontoctl account list --profile mycompany
MCP Integration
QontoCtl implements the Model Context Protocol (MCP), letting AI assistants interact with your Qonto account through natural language.
MCP Client Configuration
<details>
<summary><b>Claude Desktop</b></summary>
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"qontoctl": {
"command": "npx",
"args": ["qontoctl", "mcp"]
}
}
}
</details>
<details>
<summary><b>Claude Code</b></summary>
claude mcp add qontoctl -- npx qontoctl mcp
</details>
<details>
<summary><b>Cursor</b></summary>
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"qontoctl": {
"command": "npx",
"args": ["qontoctl", "mcp"]
}
}
}
</details>
<details>
<summary><b>Windsurf</b></summary>
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"qontoctl": {
"command": "npx",
"args": ["qontoctl", "mcp"]
}
}
}
</details>
Pointing MCP at a non-default config file
The MCP server has no CLI flags. To load credentials from a config file other than ~/.qontoctl.yaml, set QONTOCTL_CONFIG_FILE in the host's env block:
{
"mcpServers": {
"qontoctl": {
"command": "npx",
"args": ["qontoctl", "mcp"],
"env": {
"QONTOCTL_CONFIG_FILE": "/abs/path/to/qontoctl.yaml",
},
},
},
}
The path is captured at server startup. See docs/configuration.md for the full resolution chain.
Available MCP Tools
| Tool | Description |
| ------------------------------- | --------------------------------------------------------------------- |
| Organization | |
| org_show | Show organization details including name, slug, and bank accounts |
| Accounts | |
| account_list | List all bank accounts for the organization |
| account_show | Show details of a specific bank account |
| account_iban_certificate | Download IBAN certificate PDF for a bank account |
| account_create | Create a new bank account |
| account_update | Update an existing bank account |
| account_close | Close a bank account |
| Transactions | |
| transaction_list | List transactions for a bank account with optional filters |
| transaction_show | Show details of a specific transaction |
| transaction_attachment_list | List attachments for a transaction |
| transaction_attachment_add | Attach a file to a transaction |
| transaction_attachment_remove | Remove attachment(s) from a transaction |
| Statements | |
| statement_list | List bank statements with optional filters |
| statement_show | Show details of a specific bank statement |
| Labels | |
| label_list | List all labels in the organization |
| label_show | Show details of a specific label |
| Memberships | |
| membership_list | List all memberships in the organization |
| membership_show | Show the current authenticated user's membership |
| membership_invite | Invite a new member to the organization |
| SEPA Beneficiaries | |
| beneficiary_list | List SEPA beneficiaries in the organization |
| beneficiary_show | Show details of a specific SEPA beneficiary |
| beneficiary_add | Create a new SEPA beneficiary |
| beneficiary_update | Update an existing SEPA beneficiary |
| beneficiary_trust | Trust one or more SEPA beneficiaries |
| beneficiary_untrust | Untrust one or more SEPA beneficiaries |
| SEPA Transfers | |
| transfer_list | List SEPA transfers with optional filters |
| transfer_show | Show details of a specific SEPA transfer |
| transfer_create | Create a SEPA transfer |
| transfer_cancel | Cancel a pending SEPA transfer |
| transfer_proof | Download SEPA transfer proof PDF |
| transfer_verify_payee | Verify a payee (Verification of Payee / VoP) |
| transfer_bulk_verify_payee | Bulk verify payees (VoP) |
| Internal Transfers | |
| internal_transfer_create | Create an internal transfer between two bank accounts |
| Bulk Transfers | |
| bulk_transfer_list | List bulk transfers |
| bulk_transfer_show | Show details of a specific bulk transfer |
| bulk_transfer_create | Create a bulk SEPA transfer (auto-resolves VoP via bulk_verify_payee) |
| Recurring Transfers | |
| recurring_transfer_list | List recurring transfers |
| recurring_transfer_show | Show details of a specific recurring transfer |
| Terminals (POS) | |
| terminal_list | List Qonto Terminals linked to the organization |
| terminal_payment_create | Initiate a payment on a terminal (returns 202 Accepted) |
| Products | |
| product_list | List catalogue products with optional pagination and sort |
| Clients | |
| client_list | List clients with optional pagination |
| client_show | Show details of a specific client |
| client_create | Create a new client |
| client_update | Update an existing client |
| client_delete | Delete a client |
| Client Invoices | |
| client_invoice_list | List client invoices with optional filters |
| client_invoice_show | Show details of a specific client invoice |
| client_invoice_create | Create a draft client invoice with client and line items |
| client_invoice_update | Update a draft client invoice |
| client_invoice_delete | Delete a draft client invoice |
| client_invoice_finalize | Finalize a client invoice (assign number) |
| client_invoice_send | Send a client invoice to the client via email |
| client_invoice_mark_paid | Mark a client invoice as paid |
| client_invoice_unmark_paid | Unmark a client invoice paid status |
| client_invoice_cancel | Cancel a finalized client invoice |
| client_invoice_upload | Upload a file to a client invoice |
| client_invoice_upload_show | Show upload details for a client invoice |
| Quotes | |
| quote_list | List quotes with optional filters |
| quote_show | Show details of a specific quote |
| quote_create | Create a new quote with client and line items |
| quote_update | Update an existing quote |
| quote_delete | Delete a quote |
| quote_send | Send a quote to the client via email |
| Credit Notes | |
| credit_note_list | List credit notes in the organization |
| credit_note_show | Show details of a specific credit note |
| Supplier Invoices | |
| supplier_invoice_list | List supplier invoices with optional filters |
| supplier_invoice_show | Show details of a specific supplier invoice |
| supplier_invoice_bulk_create | Create supplier invoices by uploading files |
| Requests | |
| request_list | List all requests in the organization |
| SCA Sessions | |
| sca_session_show | Show the status of an SCA session (waiting / allow / deny) |
| sca_session_mock_decision | Simulate an SCA decision in the Qonto sandbox (sandbox-only) |
| Attachments | |
| attachment_upload | Upload an attachment file (PDF, JPEG, PNG) |
| attachment_show | Show details of a specific attachment |
| E-Invoicing | |
| einvoicing_settings | Retrieve e-invoicing settings for the organization |
Example Prompts
Once configured, you can ask your AI assistant things like:
- "Show my Qonto account balances"
- "List recent transactions over 1000 EUR"
- "What were last month's card payments?"
- "Show all team members in my organization"
- "List bank statements for January 2026"
- "Create a summary of this week's debits"
SCA Continuation
Some Qonto write operations — creating a transfer, modifying a card, approving a request — require Strong Customer Authentication (SCA): the user has to approve the request in the Qonto mobile app before it executes. QontoCtl wraps every SCA-gated MCP write tool with a continuation flow so the LLM client never has to reimplement polling.
How a wrapped write tool behaves
When an SCA-gated tool (e.g. transfer_create, card_create, beneficiary_trust, request_approve) hits a 428 SCA challenge, the wrapper polls the SCA session inline. If the user approves within the polling window, the tool returns the operation's success result transparently — the LLM never sees the SCA round-trip. If polling times out (or polling is disabled), the tool returns a structured SCA-pending response carrying the session token and instructions to continue.
Every wrapped tool exposes two optional input fields for this flow:
- wait — maximum seconds to poll inline before falling back to the pending response.
- sca_session_token — bind a previously approved SCA challenge to a retry.
The wait knob
| Value | Behavior |
| ---------------- | ------------------------------------------------------------------------------------ |
| 30 _(default)_ | Poll for up to 30 seconds, then fall back to the structured pending response. |
| 1–120 | Poll for the specified number of seconds (capped at 120). |
| 0 or false | Skip polling entirely. Return the SCA-pending response immediately on the first 428. |
The 120 upper bound is the hard ceiling enforced via Zod at the input boundary. The practical ceiling is your MCP host's request timeout — Claude Desktop hardcodes ≈ 60 s and Cursor's effective limit is ≈ 30 s, so values above those will surface as host-side timeouts before the wrapper resolves. Use a small wait (e.g. 5-10) when the LLM expects the user to be present and willing to approve immediately. Use wait: false (or wait: 0) for pure two-step flows where the LLM and the user converse out-of-band between the SCA challenge and the retry.
Two-step fallback (out-of-band continuation)
When polling does not resolve, the SCA-pending response carries:
- A user-facing message: "SCA required. The user must approve this operation on their Qonto mobile app."
- A Session token: <token> line (token validity: 15 minutes from issuance).
- Step-by-step instructions to continue.
The LLM (or the user) can then:
1. Poll session status with the sca_session_show tool, passing the captured token. It returns waiting, allow, or deny.
2. Retry the original tool once the status is allow, passing the _same parameters_ plus sca_session_token: "<token>". The wrapper invokes the operation exactly once with the token bound — no second poll happens.
> PSD2 dynamic linking. The SCA session token is bound to the _original_ request parameters (amount, payee). Reusing a token against a different operation is rejected by Qonto. Reissue an SCA challenge by calling the original tool again whenever the parameters need to change.
Caller-supplied retry (sca_session_token)
When sca_session_token is set on a wrapped write tool, the wrapper:
- Invokes the operation exactly once.
- Skips polling entirely.
- Forwards the token via the X-Qonto-Sca-Session-Token header.
This is the path used by step (2) of the two-step fallback. It is also useful when the LLM client implements its own polling cadence and only needs the wrapper to retry with an already-captured approval.
Sandbox testing
Sandbox accounts cannot enroll a real paired device, so SCA challenges in sandbox use a mock flow. After receiving a pending response, simulate the user's decision with the sca_session_mock_decision tool (sandbox-only — refuses to run when no staging token is configured). See docs/sandbox-testing.md for the full sandbox setup.
Migration note
Earlier QontoCtl builds (pre-@qontoctl/mcp SCA continuation) returned a free-form text response on 428 with no continuation hooks. Callers parsing that response should adopt the structured flow:
| Before | After |
| ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Free-form text mentioned the SCA endpoint but offered no MCP-exposed way to continue. | The SCA-pending response is still text content but its shape is stable: Session token: <token> is the canonical line; sca_session_show is the polling API. |
| Polling required driving the Qonto HTTP API directly. | Use the sca_session_show MCP tool. |
| Re-running the operation orphaned the prior approval. | Retry the original tool with the captured sca_session_token parameter — the prior approval is bound to that retry. |
| No way to opt-in to inline polling — every 428 was a dead end. | Pass wait: <seconds> (1-120) to poll inline; tools default to 30s. Pass wait: false for the explicit two-step flow. |
The pending response's textual format is stable, so callers that need to extract the token programmatically can match against the Session token: line — but using sca_session_show directly avoids relying on the response prose.
CLI Usage
> First command to try when something doesn't work: qontoctl diagnose — a read-only healthcheck across config, credentials, scopes, organization metadata, and host routing.
Commands
| Command | Description |
| --------------------------------------------- | ---------------------------------------------------------------------------------- |
| diagnose | Read-only healthcheck (see troubleshooting) |
| org show | Show organization details |
| account list | List bank accounts |
| account show <id> | Show bank account details |
| account iban-certificate <id> | Download IBAN certificate PDF |
| account create | Create a new bank account |
| account update <id> | Update a bank account |
| account close <id> | Close a bank account |
| transaction list | List transactions with filters |
| transaction show <id> | Show transaction details |
| transaction attachment list <id> | List attachments for a transaction |
| transaction attachment add <id> <file> | Attach a file to a transaction |
| transaction attachment remove <id> [att-id] | Remove attachment(s) from a transaction |
| statement list | List bank statements |
| statement show <id> | Show statement details |
| statement download <id> | Download statement PDF |
| label list | List all labels |
| label show <id> | Show label details |
| membership list | List organization memberships |
| membership show | Show current user's membership |
| membership invite | Invite a new member |
| beneficiary list | List SEPA beneficiaries |
| beneficiary show <id> | Show beneficiary details |
| beneficiary add | Create a new beneficiary |
| beneficiary update <id> | Update a beneficiary |
| beneficiary trust <id...> | Trust one or more beneficiaries |
| beneficiary untrust <id...> | Untrust one or more beneficiaries |
| transfer list | List SEPA transfers |
| transfer show <id> | Show SEPA transfer details |
| transfer create | Create a SEPA transfer |
| transfer cancel <id> | Cancel a pending SEPA transfer |
| transfer proof <id> | Download SEPA transfer proof PDF |
| transfer verify-payee | Verify a payee (VoP) |
| transfer bulk-verify-payee | Bulk verify payees from CSV |
| internal-transfer create | Create an internal transfer |
| bulk-transfer list | List bulk transfers |
| bulk-transfer show <id> | Show bulk transfer details |
| bulk-transfer create | Create a bulk SEPA transfer from JSON |
| recurring-transfer list | List recurring transfers |
| recurring-transfer show <id> | Show recurring transfer details |
| terminal list | List Qonto Terminals (POS) |
| terminal payment create <id> | Initiate a payment on a terminal |
| product list | List catalogue products |
| client list | List clients |
| client show <id> | Show client details |
| client create | Create a new client |
| client update <id> | Update a client |
| client delete <id> | Delete a client |
| client-invoice list | List client invoices |
| client-invoice show <id> | Show client invoice details |
| client-invoice create | Create a draft client invoice |
| client-invoice update <id> | Update a draft client invoice |
| client-invoice delete <id> | Delete a draft client invoice |
| client-invoice finalize <id> | Finalize client invoice and assign number |
| client-invoice send <id> | Send client invoice to client via email |
| client-invoice mark-paid <id> | Mark client invoice as paid |
| client-invoice unmark-paid <id> | Unmark client invoice paid status |
| client-invoice cancel <id> | Cancel a finalized client invoice |
| client-invoice upload <id> <file> | Upload a file to a client invoice |
| client-invoice upload-show <id> <upload-id> | Show upload details for a client invoice |
| quote list | List quotes
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


