🚧 Bloque documentation is under development

CLI & MCP Server

Use Bloque from your AI agent. One command to set up, then just ask.

Get Started

npx @bloque/cli setup

The wizard:

  1. Logs you in (WhatsApp or Email OTP)
  2. Finds your installed AI agents
  3. Configures everything automatically

Restart your agent and you're ready.

Already have a JWT? Skip the OTP:

npx @bloque/cli setup --jwt eyJhbGciOi...

What You Can Ask Your Agent

Once set up, just talk naturally:

  • "Create a card for food expenses, load it with $200"
  • "I need a one-time $25 card for this website"
  • "Assign my card to amazon.com"
  • "Which card should I use for netflix.com?"
  • "Show me my balances and recent transactions"
  • "Top up my account with 100,000 COP from my bank"
  • "Freeze my card"
  • "Create two cards that share the same budget"

Your agent handles the accounts, cards, transfers, and reporting behind the scenes.

How It Works

The CLI installs an MCP server that gives your agent access to 44 financial tools — organized in two tiers:

  • Workflows (14 tools) — high-level operations like "create a card" or "find my card for this website." One call does everything.
  • Primitives (26 tools) — low-level control when you need it. One tool per SDK method.

Every card is a crypto card: it automatically gets a virtual account (holds the balance) and a Polygon address (receives USDC). Top up via crypto, PSE bank transfer, or internal transfer.

Amounts are always human-readable. Say "$50" for $50 USD or "100000" for 100,000 COP. No need to think about internal formats.

Spending restrictions use friendly names. Say "food" instead of MCC code 5411. Available categories: food, transport, ads, entertainment, health, shopping, travel, subscriptions.

Commands

CommandWhat it does
bloque setupWizard: log in + install MCP in your agents
bloque loginLog in via WhatsApp/Email OTP or API key
bloque logoutClear your local session
bloque whoamiShow who you're logged in as
bloque mcpStart the MCP server (stdio)
bloque mcp --httpStart the MCP server over HTTP

bloque setup

OptionDescription
--api-key <key>Secret key (sk_) for headless setup
--webAuthenticate via browser
--jwt <token>JWT token (skips OTP)
--sandboxUse sandbox instead of production

bloque login

OTP mode (default):

npx @bloque/cli login

API key mode (recommended for backend/CI):

npx @bloque/cli login --api-key sk_live_...

Origin key mode (legacy):

npx @bloque/cli login --origin-key your-key --origin your-origin --alias @user

bloque mcp

npx @bloque/cli mcp          # stdio (default)
npx @bloque/cli mcp --http   # HTTP on port 3100

Supported Agents

AgentPlatformsAuto-Setup
CursormacOS, Linux, WindowsYes
Claude DesktopmacOS, Linux, WindowsYes
Claude CodemacOS, Linux, WindowsYes
Antigravity (Google)macOS, Linux, WindowsYes
WindsurfmacOS, Linux, WindowsYes
VS Code (Copilot)macOS, Linux, WindowsYes
ZedmacOS, LinuxYes
JetBrains (AI Assistant)macOS, Linux, WindowsManual

Download Binary (No Node.js Required)

If you don't have Node.js installed, download a standalone binary from GitHub Releases:

PlatformBinary
macOS (Apple Silicon)bloque-darwin-arm64
macOS (Intel)bloque-darwin-x64
Linux (x86_64)bloque-linux-x64
Linux (ARM)bloque-linux-arm64
Windows (x64)bloque-windows-x64.exe

macOS / Linux:

# Download (replace PLATFORM with your target, e.g. darwin-arm64)
curl -fsSL https://github.com/bloque-app/sdk/releases/latest/download/bloque-PLATFORM -o bloque

# Make executable
chmod +x bloque

# Move to PATH
sudo mv bloque /usr/local/bin/bloque

# Run setup
bloque setup

macOS Gatekeeper: If macOS blocks the binary, run: xattr -d com.apple.quarantine /usr/local/bin/bloque

Windows:

Download bloque-windows-x64.exe from the release page, rename to bloque.exe, and add its directory to your PATH.

When running via the binary, bloque setup automatically configures your agents to use the binary path instead of npx.

Manual Configuration

If you prefer to configure manually instead of using bloque setup:

  1. Log in:
npx @bloque/cli login
  1. Add this to your agent's MCP config:
{
  "mcpServers": {
    "bloque": {
      "command": "npx",
      "args": ["-y", "@bloque/cli", "mcp"]
    }
  }
}
  1. Restart your agent.

Tools Reference

Workflows (14 tools)

High-level tools. One call handles multi-step operations.

ToolWhat it does
get_profileYour identity and KYC status
verify_identityStart or check identity verification
create_accountCreate a pocket + Polygon address
create_cardFull card setup with optional restrictions, website binding, and funding
create_disposable_cardOne-time card with exact funded amount and optional website binding
fund_cardTop up a card
resolve_card_for_websiteFind which card(s) to use for a given website
assign_card_to_websiteAssociate a card with one or more website domains
topup_via_pseLoad COP via PSE bank transfer
cashout_to_bankCash out USD to a Colombian bank
configure_spending_rulesRoute transactions to different accounts by merchant type
add_spending_categoryAdd a spending category to a card
wallet_overviewAll accounts, balances, and recent transactions
card_summaryEverything about a specific card

Primitives (30 tools)

Low-level tools. 1:1 with SDK methods for full control.

DomainTools
Accountslist_accounts, get_account, get_balance, get_all_balances
Virtualcreate_virtual_account, list_virtual_accounts
Cardscreate_raw_card, list_cards, freeze_card, activate_card, disable_card, update_card_metadata, rename_card
Polygoncreate_polygon_account, list_polygon_accounts
US Bankget_us_tos_link, create_us_account, list_us_accounts
Transferstransfer, batch_transfer
Historylist_transactions, list_account_movements
Swapfind_rates, list_pse_banks, create_pse_order, create_bank_transfer_order
API Keyslist_api_keys, get_api_key, revoke_api_key, rotate_api_key

Requirements

  • Via npm: Node.js 22+ or Bun 1+
  • Via binary: No runtime needed — download from GitHub Releases
  • A Bloque account