QontoCtl: The Complete CLI & MCP for Qonto

CI Codecov npm version npm downloads GitHub Repo stars License

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:

Prerequisites

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

Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
    "mcpServers": {
        "qontoctl": {
            "command": "npx",
            "args": ["qontoctl", "mcp"]
        }
    }
}
Claude Code
claude mcp add qontoctl -- npx qontoctl mcp
Cursor

Add to .cursor/mcp.json in your project root:

{
    "mcpServers": {
        "qontoctl": {
            "command": "npx",
            "args": ["qontoctl", "mcp"]
        }
    }
}
Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
    "mcpServers": {
        "qontoctl": {
            "command": "npx",
            "args": ["qontoctl", "mcp"]
        }
    }
}

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
Recurring Transfers
recurring_transfer_list List recurring transfers
recurring_transfer_show Show details of a specific recurring transfer
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
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:

CLI Usage

Commands

Command Description
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
recurring-transfer list List recurring transfers
recurring-transfer show <id> Show recurring transfer details
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
quote show <id> Show quote details
quote create Create a new quote
quote update <id> Update a quote
quote delete <id> Delete a quote
quote send <id> Send quote to client via email
credit-note list List credit notes
credit-note show <id> Show credit note details
supplier-invoice list List supplier invoices
supplier-invoice show <id> Show supplier invoice details
supplier-invoice bulk-create Create supplier invoices from files
einvoicing settings Show e-invoicing settings
request list List all requests
attachment upload <file> Upload an attachment file
attachment show <id> Show attachment details
auth setup Configure OAuth client credentials
auth login Start OAuth login flow
auth status Display OAuth token status
auth refresh Refresh the OAuth access token
auth revoke Revoke OAuth consent and clear tokens
profile add <name> Create a named profile
profile list List all profiles
profile show <name> Show profile details (secrets redacted)
profile remove <name> Remove a named profile
profile test Test credentials
completion bash Generate bash completions
completion zsh Generate zsh completions
completion fish Generate fish completions
mcp Start MCP server on stdio

Global Options

Option Description
-p, --profile <name> Configuration profile to use
-o, --output <format> Output format: table (default), json, yaml, csv
--page <number> Fetch a specific page of results
--per-page <number> Results per page
--no-paginate Disable auto-pagination
--verbose Enable verbose output
--debug Enable debug output (implies --verbose)

Configuration

QontoCtl supports two authentication methods:

Profile Format

All configuration files use the same YAML format:

# API Key authentication
api-key:
    organization-slug: acme-corp-4821
    secret-key: your-secret-key

# OAuth 2.0 authentication (see docs/oauth-setup.md)
oauth:
    client-id: your-client-id
    client-secret: your-client-secret

Resolution Order

Without --profile:

  1. QONTOCTL_* environment variables (highest priority)
  2. .qontoctl.yaml in current directory
  3. ~/.qontoctl.yaml (home default)

With --profile acme:

  1. QONTOCTL_ACME_* environment variables (highest priority)
  2. ~/.qontoctl/acme.yaml

Environment Variables

Environment variables override file values. Without --profile:

Variable Description
QONTOCTL_ORGANIZATION_SLUG Organization slug
QONTOCTL_SECRET_KEY API secret key
QONTOCTL_CLIENT_ID OAuth client ID
QONTOCTL_CLIENT_SECRET OAuth client secret
QONTOCTL_ACCESS_TOKEN OAuth access token
QONTOCTL_REFRESH_TOKEN OAuth refresh token
QONTOCTL_ENDPOINT Custom API endpoint
QONTOCTL_STAGING_TOKEN Staging token (activates sandbox URLs)

With --profile <name>, prefix becomes QONTOCTL_{NAME}_ (uppercased, hyphens replaced with underscores). For example, --profile acme reads QONTOCTL_ACME_ORGANIZATION_SLUG.

Debug Mode

The --verbose and --debug flags enable wire-level logging to stderr:

qontoctl --verbose transaction list   # request/response summaries
qontoctl --debug transaction list     # full headers and response bodies

Security note: --debug logs full API response bodies. Known sensitive fields (IBAN, BIC, balance) are automatically redacted, but responses may still contain other financial data. Do not use --debug in shared environments or pipe debug output to files accessible by others.

Disclaimer

qontoctl is an independent project not affiliated with, endorsed by, or officially connected to Qonto or Qonto SAS.

Qonto is a trademark of Qonto SAS.

License

AGPL-3.0-only

What AGPL means for you