npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ktmcp-cli/bunq

v1.0.0

Published

Production-ready CLI for Bunq API - neobank accounts, payments, and cards

Readme

Banner

"Six months ago, everyone was talking about MCPs. And I was like, screw MCPs. Every MCP would be better as a CLI."

Peter Steinberger, Founder of OpenClaw Watch on YouTube (~2:39:00) | Lex Fridman Podcast #491

Bunq CLI

A production-ready command-line interface for the Bunq neobank API. Manage accounts, send payments, handle payment requests, and control cards — all from your terminal.

Disclaimer: This is an unofficial, community-built CLI. It is not affiliated with, endorsed by, or supported by Bunq B.V. Use at your own risk. Always review the Bunq API Terms of Service before use.

Features

  • Accounts — List and inspect monetary accounts with balances
  • Payments — Send SEPA payments and view transaction history
  • Requests — Create and track payment requests (by email, phone, or IBAN)
  • Cards — View card details and transaction history
  • User — Inspect authenticated user details
  • Auth — Full Bunq authentication flow (installation + device + session)
  • JSON output — All commands support --json for scripting and agent use
  • Sandbox support — Test safely with Bunq sandbox environment

Why CLI > MCP

| | MCP | CLI | |---|---|---| | Works in any shell script | No | Yes | | Pipeable with jq, grep, awk | No | Yes | | Usable by AI agents | Partial | Yes | | No server process needed | No | Yes | | Easy to audit | No | Yes | | Works offline / cached | No | Yes |

CLIs compose. MCPs don't.

Installation

npm install -g @ktmcp-cli/bunq

Requires Node.js 18+.

Commands

bunq config set --api-key <key>       Set your Bunq API key
bunq config set --sandbox             Switch to sandbox mode
bunq config set --production          Switch to production mode
bunq config get                       Show current config
bunq config clear                     Clear all stored config

bunq auth setup                       Full authentication setup
bunq auth refresh                     Refresh session token
bunq auth status                      Show auth status

bunq accounts list                    List all monetary accounts
bunq accounts get <account-id>        Get account details

bunq payments list --account-id <id>  List payments for an account
bunq payments create ...              Create a new payment
bunq payments get <account-id> <id>   Get a specific payment

bunq requests list --account-id <id>  List payment requests
bunq requests create ...              Create a payment request
bunq requests get <account-id> <id>   Get a specific request

bunq cards list                       List all cards
bunq cards get <card-id>              Get card details
bunq cards transactions <card-id>     List card transactions

bunq user info                        Get authenticated user info
bunq user list                        List all accessible users

Authentication

Bunq uses a multi-step authentication flow. The CLI handles all of it automatically.

Step 1: Get your API key

Log into Bunq web or the mobile app → Profile → Security & Preferences → Developers → API Keys → Create API Key.

For sandbox access, register at bunq.com/en/sandbox.

Step 2: Configure

bunq config set --api-key <YOUR_API_KEY>

# For sandbox:
bunq config set --api-key <SANDBOX_KEY> --sandbox

Step 3: Authenticate

bunq auth setup

This registers an RSA installation, registers your device, and creates a session. Takes ~3 seconds.

Session tokens expire (typically after a week). Refresh with:

bunq auth refresh

Examples

List accounts and balances

bunq accounts list
ID        Description         Balance       Currency  Status  IBAN
--------  ------------------  ------------  --------  ------  ---------------------
12345678  My Main Account     1,234.56      EUR       ACTIVE  NL91ABNA0417164300
23456789  Savings Jar         500.00        EUR       ACTIVE  NL91ABNA0417164301

Send a payment

bunq payments create \
  --account-id 12345678 \
  --amount 25.00 \
  --currency EUR \
  --iban NL91ABNA0417164300 \
  --name "John Doe" \
  --description "Dinner split"

Request money via email

bunq requests create \
  --account-id 12345678 \
  --amount 15.50 \
  --counterparty-email [email protected] \
  --description "Coffee refund"

Get recent transactions as JSON

bunq payments list --account-id 12345678 --limit 10 --json | jq '.[] | {amount, description}'

Check your balance in a script

BALANCE=$(bunq accounts list --json | jq -r '.[0].balance.value')
echo "Balance: €$BALANCE"

List cards

bunq cards list

AI Agent Usage

This CLI is designed to be agent-friendly. See AGENT.md for full documentation on using bunq from AI agents (Claude, GPT-4, etc.).

# Typical agent workflow
bunq auth status
ACCOUNT_ID=$(bunq accounts list --json | jq -r '.[0].id')
bunq payments list --account-id $ACCOUNT_ID --limit 5 --json

Configuration Storage

Config and tokens are stored securely in your system config directory:

  • Linux: ~/.config/bunq-cli/
  • macOS: ~/Library/Preferences/bunq-cli/
  • Windows: %APPDATA%/bunq-cli/

Contributing

Pull requests welcome. Please test changes against the Bunq sandbox environment.

License

MIT © KTMCP


Part of the KTMCP project — CLIs as alternatives to MCPs.