# z-zero-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/Dempty-glitch/Z-Zero-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 861  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/z-zero-mcp

## Description
Payments for AI agents: gasless USDC on Base + JIT single-use virtual cards, PAN never in context.

## Tools
Capabilities this server exposes over MCP:

- **list_cards** — List all available virtual card aliases and their balances. No sensitive data is returned.
- **check_balance** — Check spendable USD balance for a card alias. For active token limits, use list_cards instead.
- **get_deposit_addresses** — Get your Base deposit address to top up your wallet with USDC (or any supported stablecoin on Base).
- **request_payment_token** — Request a single-use JIT virtual card ($1–$100) locked to one amount + merchant. ⚠️ Read mcp://resources/sop first. Only call once the FINAL total is visible — for physical goods that is AFTER shipping is submitted (use get_merchant_hints to navigate there). For digital goods with the price already visible, prefer auto_pay_checkout instead. BEFORE requesting: look at the checkout page one more time and compare it against what the user actually asked for — same items, same quantity, same variant, same destination? If anything differs, do NOT request a token; fix the cart or check with the user first. A mismatch you catch here costs nothing; after this point it costs a card. If you pass `cart`, the server signs your declared intent and binds the card to it — the user gets cryptographic proof of what this card was authorized for. Pass `criteria` too: the few things the owner actually cared about, which this purchase gets scored against at payment time.
- **get_merchant_hints** — Get merchant navigation flow for a domain or platform key (e.g. '_platform_etsy'). Returns pre_steps (how to navigate checkout) and platform notes. Call BEFORE starting checkout to understand the multi-step flow.
- **ucp_probe_checkout** — UCP discovery + quote — creates an UNPAID draft checkout; no money moves; NOT a payment rail yet. Checks whether a merchant speaks UCP (Shopify-native agent commerce), lists its declared payment handlers, and — when variant_gid or query is given — creates a DRAFT checkout and returns the merchant's real quote: total_minor (wire units, 8900 = $89.00), total_major, currency, status, blockers, continue_url. NO payment happens; drafts expire server-side. Completing a UCP checkout needs Shopify Token-tier agent auth, which Z-Zero does not hold yet — to PAY, hand the buyer continue_url or use the standard execute_payment flow where permitted. Call this first on Shopify stores: their robots.txt bans scripted checkout, so the UCP lane is the sanctioned path.
- **execute_payment** — Execute a payment with a one-time token. TWO CALLS: call it first WITHOUT `recheck` — nothing is charged and it hands you what the owner actually asked for, locked when the card was issued; look at the page again, then call it a second time with `recheck` to pay or to pause. Then Z-Zero opens a headless browser, injects the card (you NEVER see the PAN), clicks Pay, and watches for a REAL confirmation before reporting success. Returns a `status`: `confirmed` (order placed → token burned, receipt_id may hold a real order #), `declined` (merchant rejected → token kept for refund), `unconfirmed` (submitted but no confirmation seen → do NOT retry blindly, verify first), `not_submitted` (no Pay button → supply a submit_selector hint), or `no_fields`. ALWAYS pass actual_amount so overcharges are blocked and underspend refunded.
- **cancel_payment_token** — Cancel unused token and refund instantly. Use when user cancels the purchase or to free up a card slot.
- **request_human_approval** — Pause and ask the user for approval before risky actions (price mismatch, large amount, unusual request).
- **set_api_key** — Activate a new Passport Key instantly, no restart needed. Only call when user explicitly provides a key.
- **show_api_key_status** — Check if Passport Key is configured. Shows prefix only, for debugging.
- **auto_pay_checkout** — ⚠️ MANDATORY: Read mcp://resources/sop first. Only use on PAYMENT pages where final total is visible. Auto-detects Web3 or Fiat and completes payment. For physical goods (Shopify, Etsy), get_merchant_hints first.
- **report_checkout_fail** — Report a checkout you could not complete. Pick the failure_class that best matches what you saw — this feeds Z-ZERO's self-healing loop (labeled failures become better merchant hints for the next run). If nothing fits, use 'unknown' and describe what happened in error_message.
- **verify_receipt** — Check where an order ENDED UP, and prove it. Returns TWO separate axes: `order_status` — 'completed' (bought, issuer not reported yet) · 'settled' (issuer confirmed) · 'reversed' (auth voided before clearing — the order does NOT stand) · 'partially_refunded' / 'refunded' (merchant returned money AFTER settlement — the order still happened) — and `funds_status` — 'no_payout_due' · 'payout_pending' (money owed back but not yet confirmed on-chain) · 'returned' (confirmed on-chain). Read BOTH before speaking: 'reversed' or 'refunded' with funds 'payout_pending' means the buyer has NOT got the money back yet — never say they have. If you told the user a purchase was done and a later check returns 'reversed', tell them unprompted.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "z-zero-mcp": {
    "command": "npx",
    "args": ["-y","z-zero-mcp-server"],
    "env": {
      "Z_ZERO_API_KEY": "",
      "Z_ZERO_API_BASE_URL": "",
      "Z_ZERO_ALLOW_CUSTOM_API": ""
    }
  }
}
```

**Requires environment variables:** `Z_ZERO_API_KEY`, `Z_ZERO_API_BASE_URL`, `Z_ZERO_ALLOW_CUSTOM_API` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What z-zero-mcp does

z-zero-mcp gives AI agents two payment paths: gasless USDC on Base for supported crypto-native checkouts, and single-use virtual cards for web merchants that accept cards. The agent works with aliases, payment tokens, checkout URLs, and status results rather than PAN, CVV, or expiry data. Card details are injected into the checkout by the server and are not returned through MCP.

Funding starts with a Base deposit address. The wallet can hold USDC or another supported stablecoin on Base, while purchases use bounded, one-time authorizations. Virtual cards are locked to an amount and merchant, expire after one hour, and are burned after confirmed use. A token can also be canceled to release the reserved card slot and refund the unused authorization.

## How it works

For a normal card checkout, an agent should read the payment SOP resource, obtain merchant navigation hints, and reach the page where the final total is visible. It then requests a token, optionally binding the declared cart and purchase criteria. The first `execute_payment` call performs a purpose check without charging. After comparing the live page with the requested purchase, the agent makes a second call with `recheck` set to proceed or pause.

When proceeding, Z-ZERO uses a headless browser to enter the payment details and submit the checkout. The result distinguishes confirmed, declined, unconfirmed, not-submitted, and missing-field outcomes. Agents should treat an unconfirmed result as requiring verification rather than an automatic retry, and should provide the actual amount so overcharges are blocked and underspending can be refunded.

Shopify stores have a separate UCP discovery and quote flow. `ucp_probe_checkout` can identify declared payment handlers and create an unpaid draft checkout with the merchant's quote; no funds move during this step. The returned continuation URL can be handed to the buyer when the required Shopify agent authorization is unavailable.

## Setup and configuration

Run the package with:

```bash
npx z-zero-mcp-server
```

Configure the MCP client to launch the package with `Z_ZERO_API_KEY`. A Passport Key is obtained from the Z-ZERO agent dashboard. The bootstrap key is rotated when first used, and the replacement is stored in `~/.z-zero/credentials` with restrictive file permissions. `set_api_key` can activate a key supplied explicitly by the user without restarting the process; `show_api_key_status` exposes only its prefix.

`Z_ZERO_API_BASE_URL` can point to a custom Z-ZERO server only when `Z_ZERO_ALLOW_CUSTOM_API=1` is also set. Custom servers use a separate key file.

## Tools and capabilities

- Inspect virtual card aliases and spendable balances with `list_cards` and `check_balance`.
- Retrieve Base deposit addresses with `get_deposit_addresses`.
- Discover merchant checkout procedures with `get_merchant_hints`.
- Probe UCP support and obtain unpaid Shopify checkout quotes with `ucp_probe_checkout`.
- Create, execute, cancel, and approve guarded payments with `request_payment_token`, `execute_payment`, `cancel_payment_token`, and `request_human_approval`.
- Use `auto_pay_checkout` for payment pages whose final total is visible.
- Submit labeled checkout failures through `report_checkout_fail`.
- Check order and fund outcomes with `verify_receipt`.

## Limitations and notes

Payment-token requests should happen only after the final amount is visible. Physical-goods checkouts may require shipping submission before that point. Cart mismatches should be corrected or approved before a token is issued. `verify_receipt` reports order status and funds status separately; a reversed or refunded order with a pending payout does not mean the buyer has received the money. The server does not send cryptocurrency to an address read from a web page.

_Full upstream README: https://allmcps.com/mcp/z-zero-mcp/readme_

