Use the Mollie CLI from KosmoKrator to call Mollie tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Mollie can be configured headlessly with `kosmokrator integrations:configure mollie`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure mollie --set access_token="$MOLLIE_ACCESS_TOKEN" --enable --read allow --write ask --jsonkosmokrator integrations:doctor mollie --jsonkosmokrator integrations:status --json
Credentials
Authentication type: Bearer tokenbearer_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
access_token
MOLLIE_ACCESS_TOKEN
Secret secret
yes
Access Token
url
MOLLIE_URL
URL url
no
API Base URL
Call Mollie Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Mollie.
mollie.mollie_list_payments
Read read
List payments from Mollie. Returns payment resources with status, amount, and metadata. Use filters like profileId to narrow results.
List all subscriptions for a specific Mollie customer. Requires a customer ID (e.g., "cst_abc123"). Returns subscription resources with status, amount, and interval.
Retrieve the enabled payment methods for the authenticated Mollie account. Returns a list of available payment methods (e.g., iDEAL, credit card, PayPal).
List all subscriptions for a specific Mollie customer. Requires a customer ID (e.g., "cst_abc123"). Returns subscription resources with status, amount, and interval.
Number of invoices to return (default: 50, max: 250).
from
string
no
Invoice ID to start from for pagination.
reference
string
no
Filter by invoice reference.
year
integer
no
Filter by year (e.g., 2026).
month
integer
no
Filter by month (1-12).
mollie.mollie_get_current_user
Retrieve the enabled payment methods for the authenticated Mollie account. Returns a list of available payment methods (e.g., iDEAL, credit card, PayPal).
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.