@quackai/q402-mcp
OfficialThis MCP server enables AI agents to perform gasless stablecoin payments, treasury automation, and travel booking across 12 EVM chains via EIP‑7702, with zero gas for senders.
Payments & Wallet: Send USDC, USDT, RLUSD, USDG, or Q gaslessly; batch payments (up to 20 recipients, trial max 5); compare gas costs and tokens across chains; verify balances and fetch receipts; check and clear EIP‑7702 delegations; view agent wallet caps and per-chain balances. Onboarding health checks included.
Treasury Memory: Summarize treasury activity (spend, top vendors, open items), vendor payment history, and per-agent spend reports over 24h/7d/30d/all.
Recurring Payments: Create rules with hourly/daily/weekly/monthly cadences; list, pause, resume, skip, or cancel; view fire history.
Bridging: Chainlink CCIP for USDC (quote/send) and LayerZero OFT for USDT0 (quote/send); bridge history and gas tank guidance.
Yield & Staking: View lending markets (Aave/Lista on BNB, Morpho on Base) and positions; deposit/withdraw stablecoins. Stake QuackAI (Q) with lock tiers (30–180 days, 10‑40% APR); unstake by index or all.
Payment Requests: Create shareable invoices and pay them gaslessly.
Escrow: Non‑custodial escrows: create, lock funds, release, refund, dispute, and check status.
Conditional Triggers: RedStone‑powered triggers that fire on price/NAV thresholds; create, list, cancel.
Travel Booking: Search hotels, get quotes, book with two‑phase consent, and check booking status – paid with Q402 stablecoins.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@quackai/q402-mcpSend 100 USDC to alice.eth on Base"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@quackai/q402-mcp
MCP server for Q402 - gasless USDC, USDT, RLUSD, and USDG payments across 12 EVM chains (USDG on Robinhood Chain), callable from Claude (Desktop / Code), OpenAI Codex CLI, and any other Model Context Protocol client.
Free trial available. 500 gasless transactions on BNB Chain + Base (USDC + USDT), no card. One wallet signature: https://q402.quackai.ai. Limited-time bonus: Mantle (USDC + USDT) is also covered by trial keys during 2026-08-21~08-28 UTC+9.
Trial-scope policy: API keys minted under the free-trial program (
plan: "trial") settle on BNB Chain (USDC/USDT gasless) and Base (USDC/USDT gasless) as permanent chains. Avalanche trial has ended — use a Multichain key for avax. Mantle (USDC/USDT gasless) is covered during the limited-time window 2026-08-21~08-28 UTC+9 — server-side time enforcement, returnsTRIAL_BNB_ONLYoutside the window. Paid API keys see the full 12-chain matrix at all times.
Quote → route → (optional) settle stablecoin payments across 12 EVM chains, from any MCP client. Recipient gets the full amount; sender pays $0 gas via Q402's EIP-7702 relayer.
Quick start
Register the server with your client (one-line per client).
Say "Set up Q402" to your agent. It runs
q402_doctor→ creates~/.q402/mcp.env→ walks you through pasting keys.
1. Register the server
Client | Command / config |
Claude Code (CLI) |
|
Claude Desktop (app) | Edit |
OpenAI Codex CLI |
|
Cursor | Add to |
Cline | Cline → Settings → MCP Servers → Edit JSON. Same shape as Cursor. |
GitHub Copilot (VS Code) | Add to |
Hermes Agent (Nous Research) | YAML, not JSON. Add under |
Any other stdio MCP client | Point it at |
Hermes reads MCP servers from ~/.hermes/config.yaml under mcp_servers (YAML, not JSON):
mcp_servers:
q402:
command: "npx"
args: ["-y", "@quackai/q402-mcp"]
enabled: trueAfter editing, run /reload-mcp in Hermes to load the tools. Or use the CLI: hermes mcp add q402 --command npx --args -y @quackai/q402-mcp.
Claude Code (the CLI,
claudebinary) and Claude Desktop (the macOS / Windows app) are different products. Theclaude mcp addcommand only exists in the CLI; the Desktop app needs the JSON config above.
Secrets are NOT in this config. The server reads them from ~/.q402/mcp.env (same pattern as AWS / Stripe / gh CLIs).
Some Windows setups block codex.exe from writing its own config. Add the stanza to ~/.codex/config.toml by hand:
[mcp_servers.q402]
command = "npx"
args = ["-y", "@quackai/q402-mcp"]Then restart Codex. Same effect as codex mcp add q402 -- npx -y @quackai/q402-mcp.
2. First-time setup
Restart your client, ask: > "Set up Q402"
The agent runs q402_doctor. On first install:
Creates
~/.q402/mcp.env(placeholders)Opens it in your editor
Walks you through pasting an API key + a signing path into the file, not into chat
Restart + re-run
q402_doctorto verify
Keys never paste into chat. Local modes sign on your machine; the key never leaves the device. Mode C (server-managed) needs no PK on the client.
Pick a signing mode
Mode | Env | Signer | Notes |
A |
| MetaMask EOA, local | Simplest. Shows "Smart account" after first use (reversible via |
B |
| Agent Wallet, local | Export PK from the dashboard → Wallets → Danger Zone → Export private key. MetaMask untouched. |
C | (just an API key) | Agent Wallet, server-managed | No PK on the client. One-shot pays accept Trial or Multichain keys; recurring needs Multichain on every chain (BNB included). |
When more than one mode is set, q402_pay asks the user which to use. Picker: walletMode = "agentic-server" \| "agentic-local" \| "eoa".
Manual setup (no AI)
Create ~/.q402/mcp.env yourself with the template below. Live mode only flips when an API key + a signing path are populated, so saving the template as-is stays in sandbox. Q402_ENABLE_REAL_PAYMENTS=0 forces sandbox even with real keys.
# ~/.q402/mcp.env
# ── API key (pick one or both for auto-routing) ──
Q402_TRIAL_API_KEY= # Free Trial, BNB (permanent) + Base (permanent) + Mantle limited-time (from /event)
Q402_MULTICHAIN_API_KEY= # Paid Multichain, all 12 chains (from /payment)
# ── Signing path - pick ONE of Mode A / B / C ──
# Mode A: your MetaMask EOA's hex private key.
# Hardware wallets (Ledger / Trezor) are NOT supported here - Q402
# needs a raw hex key it can sign EIP-7702 type-4 authorizations with.
Q402_PRIVATE_KEY=
# Mode B: exported Agent Wallet pk from the dashboard. Keeps your
# MetaMask untouched. Get it at:
# https://q402.quackai.ai/dashboard → Agent tab → Export
Q402_AGENTIC_PRIVATE_KEY=
# Mode C: no PK needed. A Trial key also enables Mode C one-shot payments;
# leave both PK lines blank. Q402 signs with the server-managed Agent Wallet.
# Multichain key required for recurring, Mode C batch, and bridge/OFT.
# Optional: pin one of your Agent Wallets when you have multiple (max 10).
# Q402_AGENT_WALLET_ADDRESS=0x...
# Live mode switch:
# 0 = sandbox (test mode, no funds move)
# 1 = real on-chain payments
# Default 1 - safe because mode only flips to live when an API key AND
# at least one valid signing path (A/B/C) are populated above.
Q402_ENABLE_REAL_PAYMENTS=1
# Default Q402 deployment. Only change for self-hosted.
Q402_RELAY_BASE_URL=https://q402.quackai.ai/api
# Safety guards (max-amount ships uncommented at $200; lower for tighter caps):
Q402_MAX_AMOUNT_PER_CALL=200
# Q402_ALLOWED_RECIPIENTS=0xabc...,0xdef...
# Pre-check (automatic trust-check before outgoing payments in live mode).
# Triggers when paying a first-time counterparty OR amount >= $1.
# Fee: $0.02 per check; verdict cached 7 days (no repeat charge within TTL).
# Set to 1 to disable pre-check entirely (even first-time / large-amount pays).
# Q402_DISABLE_PRECHECK=0Then chmod 600 ~/.q402/mcp.env (Unix) and restart your client. That's the full configuration. Heads up on the EIP-7702 side effect: after your first live payment on a chain, your wallet will show 'Smart account' in MetaMask / OKX - that's the delegation Q402 uses for gasless settlement, reversible anytime via q402_clear_delegation.
Advanced - explicit env injection
If you'd rather skip the file and inject env vars yourself (e.g. via Codex env_vars allow-list, a secrets manager, or shell exports), the server falls through to process.env - and process.env wins over file values on conflicts. So existing shell-export setups keep working unchanged.
[mcp_servers.q402]
command = "npx"
args = ["-y", "@quackai/q402-mcp"]
startup_timeout_sec = 20.0
env_vars = [
"Q402_TRIAL_API_KEY",
"Q402_MULTICHAIN_API_KEY",
"Q402_PRIVATE_KEY",
"Q402_AGENTIC_PRIVATE_KEY",
"Q402_AGENT_WALLET_ADDRESS",
"Q402_ENABLE_REAL_PAYMENTS",
"Q402_RELAY_BASE_URL",
]Then export the values in ~/.zshrc / ~/.bashrc. See the Codex config reference for the full schema.
Try it without any setup
q402_quote works with zero configuration - no API key, no private key, no env file. Ask:
"Compare gas costs to send 50 USDC to vitalik.eth across all 12 Q402 chains."
Q402_RELAY_BASE_URLoverrides the relay endpoint. Set it explicitly when running against a self-hosted Q402 deployment or a non-canonical environment.
Related MCP server: tempo-mcp
Tools exposed
47 tools, grouped by capability. Read-only by default; live mode needs a live API key, a signing path, and Q402_ENABLE_REAL_PAYMENTS=1. Rows marked live mode move funds and need an explicit in-chat confirmation.
Tool | Auth | Purpose |
Payments & wallet | ||
| none | First-install onboarding + ongoing health check (per-scope quota, EIP-7702 state, relay reachability, slot-mismatch warnings). |
| none | Compare gas + supported tokens across chains. |
| api key | Verify key + remaining quota. |
| live mode | Single-recipient gasless transfer. Sandbox by default. In live mode, automatically runs a trust-check ($0.02) on the recipient before each payment when it is a first-time counterparty or the amount ≥ $1; verdict cached 7 days (no double-charge within TTL). Degrades to free basic verdict only when wallet balance exactly covers the transfer but not the $0.02 fee, or when only a non-USDC rail token is available. Pre-check never blocks the main transaction. Disable with |
| live mode | Up to 20 recipients per call. Trial: 5 - applies when paying with your own key (Mode A/B); server-managed Agent Wallet (Mode C) batch is paid Multichain-only. Same auto-routing as |
| none | Fetch + locally verify a Trust Receipt ( |
| private key | Per-chain EIP-7702 state for the EOA derived from |
| private key / api key | Clear EIP-7702 delegation (Mode A/B local key OR Mode C api key, server-signed). Sponsored on every chain except Ethereum (billed to your Gas Tank). Two-phase consent ( |
| api key | Agent Wallet info (addresses, per-wallet caps, daily-spend used, ERC-8004 id). Drives Mode C. |
Treasury memory | ||
| api key | Treasury overview over a window: USD-stablecoin spend by chain/source, top vendors, schedules, open requests/escrow, failures. Read-only. |
| api key | Total paid to one vendor (or a vendor leaderboard) with recurring cadence. Read-only. |
| api key | Per-Agent-Wallet spend with each wallet's caps. Read-only. |
Recurring | ||
| api key | List scheduled rules. |
| api key | Author a recurring rule. Paid Multichain on EVERY chain (BNB included). |
| api key | Last 50 fires per rule (timestamp + txHashes + amount). |
| api key | Pause a rule (reversible). |
| api key | Resume a paused / stopped rule. |
| api key | Skip only the next scheduled fire. |
| api key | Permanently stop a rule. |
Bridge (CCIP + LayerZero) | ||
| none | Quote a Chainlink CCIP USDC bridge across eth/avax/arbitrum. Returns LINK + native fee. |
| live mode | Execute a CCIP bridge from the user's Agent Wallet. Mode C only (server-managed). Sandbox-by-default; |
| not yet wired | Pointer to the dashboard. Returns |
| not yet wired | Static guidance + dashboard pointer for the Bridge Gas Tank top-up flow. Live balance lookup needs owner-sig auth (dashboard for now). |
| none | Quote the LayerZero fee for bridging USDT0 across the OFT set (eth/arbitrum/mantle/monad/xlayer). Returns native messaging fee + delivered amount. Companion to |
| live mode | Bridge USDT0 via LayerZero OFT from the Agent Wallet to the same address on the destination chain. Mode C (server-managed). Sandbox-by-default; |
| not yet wired | Pointer to the dashboard for LayerZero OFT bridge history. Returns |
Yield | ||
| none | List Q402 Yield lending markets - protocol, chain, asset, market address, supply APY. Curated lending markets per chain (Aave/Lista on BNB, Morpho on Base); each market reports its own venue. |
| api key | Show the Agent Wallet's open Q402 Yield positions (balance, principal, accrued interest, APY) + total supplied in USD. Mode C. |
| live mode | Supply the Agent Wallet's stablecoins into Q402 Yield's curated lending market per chain: BNB (USDC/USDT) or Base (USDC only). Mode C. Requires |
| live mode | Withdraw supplied stablecoins out of Q402 Yield (curated lending markets on BNB and Base) back to the Agent Wallet ( |
Staking | ||
| live mode | Gasless Q (QuackAI) staking into QuackAiStake on BNB Chain. Lock tiers 0-3 (30d/10%, 60d/15%, 120d/32%, 180d/40% APR). |
| live mode | Gasless unstake of matured Q on BNB. Per-record: exit one stake by index ( |
| live mode | The Agent Wallet's open Q stakes (indices, maturity, exitable) + liquid Q balance. Read-only; Mode C. |
Payment requests | ||
| api key | Publish a payment request (invoice). No funds move; returns a shareable |
| none | Look up a payment request by |
| live mode | Pay a request gaslessly from the payer's own Agent Wallet (Mode C). Terms come from the stored request, so they can't be redirected. Two-phase consent (same as |
Escrow | ||
| api key | Create a gasless non-custodial escrow (pending record, moves no funds); optional |
| none | Read an escrow's state, parties, amount, and tx hashes. Read-only. |
| live mode | Fund a pending escrow gaslessly (EIP-7702); the server signs for an Agent-Wallet buyer. Sandbox-by-default. Live on BNB mainnet; Base and Base Sepolia: vault not yet deployed. |
| live mode | Buyer releases a locked escrow to the seller (gasless). Sandbox-by-default. |
| live mode | Permissionless refund to the buyer after the timeout / resolve window. |
| live mode | A party disputes an open escrow (requires a named arbiter). |
Triggers (RedStone) | ||
| none | Which RedStone feeds this deployment can drive triggers off (NAV / price / RWA). Read-only. |
| live mode | Arm a gasless payout that fires once when a RedStone feed crosses a threshold (edge-latched). |
| live mode | List the Agent Wallet's RedStone triggers + their state. |
| live mode | Permanently stop a RedStone trigger. |
x402 (outbound) | ||
| live mode | Fetch any x402-gated URL and handle HTTP 402 automatically: validates Base USDC payment option, guards against excess spend, signs EIP-3009 TransferWithAuthorization, and retries with the correct payment header (PAYMENT-SIGNATURE for v2 servers, X-PAYMENT for v1 legacy). Non-402 responses pass through unchanged. |
q402_pay + q402_batch_pay + q402_bridge_send + q402_yield_deposit + q402_yield_withdraw + q402_stake + q402_unstake + q402_request_pay require explicit in-chat confirmation. Batch confirmation = full batch, not per-row.
Note:
q402_payexpects a 0x address; ENS is not resolved server-side, so resolve it client-side first. Per-chain Gas Tank balances + full TX history live in the dashboard (wallet-signature only).
x402 outbound payments (q402_x402_fetch)
q402_x402_fetch is a general-purpose x402 client. It fetches any URL and handles HTTP 402 payment-required responses automatically. When the server returns a non-402 status, the response passes through unchanged, so it also works as a regular fetch tool.
What it solves. Some APIs and content endpoints use the x402 protocol to charge per-request. An agent hitting such a URL receives an HTTP 402 response with machine-readable payment requirements. q402_x402_fetch reads those requirements, validates the payment option, signs an EIP-3009 TransferWithAuthorization against Base USDC, encodes it as a base64 JSON payload, and retries the request — using PAYMENT-SIGNATURE for x402 v2 servers and X-PAYMENT for legacy v1 servers — all in one call.
Supported. scheme=exact + network=base (CAIP-2 eip155:8453; also accepted: base-mainnet) + Base USDC only. Any other scheme, network, or asset returns an explicit rejection and no signature is produced.
Guards (three layers).
Guard | Env var | Default |
Per-call spend cap |
| $200 |
Per-session cumulative cap |
| $5 |
Two-phase consent |
| required on payment |
Two-phase consent flow: the first call (without consentToken) returns needs_confirmation and a preview of the amount and recipient. Re-call with the same arguments plus the returned consentToken to authorize the payment.
Audit. Every 402 attempt - settled or blocked by a guard - is written to the local audit log at ~/.q402/x402-audit.json and surfaced in q402_agent_spend_report. These are local records on the agent's machine.
Minimum working example.
{
"url": "https://api.example.com/data",
"method": "GET",
"confirm": true
}If the endpoint returns 402, the tool responds with needs_confirmation and a consentToken. Re-call with those same arguments plus the consentToken to authorize payment.
Requirements. Q402_ENABLE_REAL_PAYMENTS=1 plus a local signing key (Q402_AGENTIC_PRIVATE_KEY or Q402_PRIVATE_KEY). The signed authorization goes directly to the seller's facilitator endpoint; the Q402 relay is not involved in this path.
Sandbox vs live mode
Sandbox default: q402_pay returns a fake txHash with success: false and sandbox: true. No funds, no quota.
Live = (a) live API key (q402_live_*), (b) a signing path (A / B / C), (c) Q402_ENABLE_REAL_PAYMENTS=1. The live flag defaults to 1 - gate only flips when both other conditions are met. Set to 0 to force sandbox even with real keys.
Template q402_doctor writes to ~/.q402/mcp.env:
# ── API key - fill ONE (or both for auto-routing) ──
# Auto-routing (same for q402_pay AND q402_batch_pay):
# chain="bnb" or "base" + Q402_TRIAL_API_KEY set → Trial (free sponsored)
# anything else → Multichain (paid 12-chain)
# Batch ambiguity: 6+ recipient BNB/Base batch with Trial set returns
# status="ambiguous" instead of executing - agent asks user to pick.
# Override per call with keyScope: "auto" | "trial" | "multichain".
Q402_TRIAL_API_KEY= # BNB + Base sponsored Trial key (from /event; Avalanche trial ended)
Q402_MULTICHAIN_API_KEY= # paid 12-chain key (per-chain Gas Tank)
# ── Signing path - pick ONE of Mode A / B / C ──
Q402_PRIVATE_KEY= # Mode A: real EOA pk (0x + 64 hex)
Q402_AGENTIC_PRIVATE_KEY= # Mode B: exported Agent Wallet pk (from dashboard)
# Mode C: leave both PK lines blank. A Trial key enables one-shot Mode C
# payments; Multichain key required for recurring, batch, and bridge/OFT.
# Q402 signs with the server-managed Agent Wallet. Optionally:
# Q402_AGENT_WALLET_ADDRESS=0x... # pin one of your wallets when you have multiple
# Live mode switch:
# 0 = sandbox (test mode, no funds move - every q402_pay returns a fake hash)
# 1 = real on-chain payments (live mode)
# Default 1. Safe because the gate only flips to live when an API key AND
# at least one valid signing path (A/B/C) are populated. Empty values
# fail the gate, so partial setups stay in sandbox with a hint.
Q402_ENABLE_REAL_PAYMENTS=1
# Pre-check trust-check (live mode). Triggers for first-time counterparties or
# payments >= $1. Fee: $0.02 per check; cached 7 days. Never blocks the main tx.
# Set Q402_DISABLE_PRECHECK=1 to opt out.Anything missing for the resolved scope → automatic sandbox fallback with a hint pointing at what to set.
Sandbox responses carry
success: false,sandbox: true,mode: "sandbox",method: "sandbox", plus asetupHintexplaining why - four signals so a downstream summary can't claim success.
Hard caps
Env var | Default | Effect |
|
| Reject USDC/USDT/RLUSD calls with |
|
| Per-session cumulative spend cap for |
| off | Comma-separated address allowlist. |
| off | Base Builder Code for |
| off | Set to |
Combined with the two-phase consentToken + live-mode env, a stablecoin payment needs: a preview the user approved + amount ≤ cap + recipient allowed + all 3 live envs. Q (QuackAI) is exempt from the cap (your own token); the preview, recipient allowlist, and live-mode env still apply to it.
Configuration reference
Env var | Required for | Notes |
| live-pay (BNB + Base + Mantle) | BNB Chain + Base sponsored Trial key (permanent). Avalanche trial has ended — use Multichain for avax. Also covers Mantle during the limited-time window 2026-08-21~08-28 UTC+9. Free at https://q402.quackai.ai/event. Auto-routed for trial-eligible chains in both |
| live-pay (12-chain) | Paid 12-chain key. Get one at https://q402.quackai.ai/payment. Auto-routed for chains outside BNB/Base (including avax since the Avalanche trial ended) and for BNB/Base when no Trial key is set. Cap: 20 recipients per batch. Mode C one-shot pays accept Trial or Multichain; Multichain required for recurring, Mode C batch, and bridge/OFT. |
| Mode A | Hex private key of your MetaMask EOA. Signer for local Mode A. Never share. Never paste in chat. |
| Mode B | Exported Agent Wallet hex private key from the dashboard (Agent tab → Export). Signs locally, but the signer is your dedicated Agent Wallet - MetaMask is never touched. Never share. Never paste in chat. |
| Mode C (optional) | When you have multiple server-managed Agent Wallets (max 10 per owner), set this to the lowercased 0x… address of the one Q402 should spend from. Omit to use the default wallet. Ignored in Modes A/B. |
| live-pay | Set to |
| optional | USD-equivalent cap for USDC/USDT/RLUSD. Defaults to |
| optional | Per-session cumulative spend cap for |
| optional | Comma-separated lowercase addresses. Defaults to no allowlist. |
| optional | Base Builder Code (1–32 lowercase letters/numbers/underscores, e.g. |
| optional | Set to |
| optional | Defaults to |
If you set up Q402 before v0.5.0 you may have a single Q402_API_KEY env var. The server still resolves that silently - your existing integration won't break. New installs should use the two-key model above (Q402_TRIAL_API_KEY and/or Q402_MULTICHAIN_API_KEY); q402_doctor and the rest of the docs only guide users to those two. To migrate, rename your existing var to Q402_MULTICHAIN_API_KEY in ~/.q402/mcp.env and restart your MCP client.
Supported chains
Chain | Chain ID | Token(s) | Notes |
BNB Chain | 56 | USDC, USDT | |
Ethereum | 1 | USDC, USDT, RLUSD | L1 - gas is volatile, quote is a snapshot. RLUSD (Ripple USD, NY DFS regulated, decimals 18) Ethereum-only. |
Avalanche C-Chain | 43114 | USDC, USDT | |
X Layer | 196 | USDC, USDT | |
Stable | 988 | USDT0 (USDC and USDT both alias) | Gas paid in USDT0. |
Mantle | 5000 | USDC, USDT0 | LayerZero OFT USDT0 since 2025-11-27. |
Injective EVM | 1776 | USDC, USDT | Native Circle USDC (CCTP) live since 2026-06 + canonical Tether (USDT0). |
Monad | 143 | USDC, USDT0 | Native Circle USDC (CCTP V2) + USDT0 (LayerZero OFT). |
Scroll | 534352 | USDC, USDT | zkEVM L2 - EIP-7702 live since the Euclid Phase 2 upgrade (2025-04-22). |
Arbitrum One | 42161 | USDC, USDT | Optimistic rollup - same EIP-7702 signing path as Ethereum. CCIP bridge endpoint (eth ⇄ avax ⇄ arbitrum). |
Base | 8453 | USDC, USDT | OP Stack L2 - same EIP-7702 signing path as Ethereum. Native Circle USDC + bridged Tether USD. |
Robinhood Chain | 4663 | USDG | Arbitrum Nitro L2 - USDG only (Paxos Global Dollar, 6 decimals). Circle USDC / Tether are not canonical here; gasless USDG payments. |
Why this exists
AI agents are becoming the default interface for software, but the moment they need to move money the stack breaks: holding gas tokens, signing every transaction, managing wallets across many chains. None of that scales when the agent is supposed to act on its own.
Q402 is the payment layer for that gap. A single signing primitive (EIP-712 + EIP-7702) settles gasless stablecoin payments across 12 EVM chains, with an ECDSA-signed Trust Receipt for every transaction. The MCP package exposes that surface inside Claude, Codex, Cursor, and Cline - your agent can quote, send, batch, and audit payments from a natural-language prompt.
Single transfers and multi-recipient batches ship today. The next layer - recurring payouts, conditional execution, and policy-gated treasury automation - is the same primitive composed differently. We're building toward agents that operate real budgets, settle among themselves, and move value through workflows no human triggers manually.
Hooks - programmable payment policies
Q402 Hooks 1.0 is a policy engine that attaches rules to the payment lifecycle: OFAC compliance screening, spend caps + recipient allowlists, ERC-8004 reputation gating, Chainlink-oracle conditional settlement ("only when BTC ≥ $80k"), and automatic multi-payee splits - plus an approval-required soft block for large payments (returns 202 approval_required; the caller re-submits out of band, no stored hold in v1). Uniswap v4 brought programmable hooks to DEX liquidity; Q402 brings them to AI-agent payments.
Developer reference: docs/HOOKS.md - lifecycle, the Hook contract, every shipped hook with config + examples.
Escrow on Base: docs/ESCROW-VS-INSTANT.md - instant vs. escrowed payment decision guide for agents. docs/ESCROW-BASE-DEPLOY-RUNBOOK.md - engineering runbook for Base mainnet vault deploy (hands-only, not for agents).
Repository
Source code: https://github.com/quackai-org/q402-mcp Issues / requests: https://github.com/quackai-org/q402-mcp/issues
License
Apache-2.0 - see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables fee-free USDC transfers on the Base blockchain network using Coinbase CDP MPC Wallet integration, with support for ENS and BaseName domain resolution.1021MIT
- AlicenseNot gradedqualityFmaintenanceMCP server for Tempo blockchain stablecoin payments, enabling AI agents to autonomously execute real-world payments.128MIT
- FlicenseAqualityBmaintenanceMCP server for a live x402 payment gateway on Base (USDC). Lets AI agents discover, preview for free, then pay per call — with prepaid gasless payments, signed receipts, and delta delivery.7
- AlicenseNot gradedqualityCmaintenanceAn MCP server for agentic commerce, enabling AI agents to discover services, make x402 payments with USDC across multiple chains, and manage crypto wallets and token swaps.3781MIT
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Multi-aggregator swap router for AI agents on Base. 10 bps fee. MCP-native, non-custodial.
Agent-commerce MCP server for x402/USDC payments and affiliate splits on Base.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/quackai-org/q402-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server