Back to Browse

Q402 MCP Server

by Bitgett
Developer ToolsLow Risk9.7MCP RegistryLocal
Free

Server data from the Official MCP Registry

Q402 — gasless USDC/USDT payments across 7 EVM chains, callable from any MCP client.

About

Q402 — gasless USDC/USDT payments across 7 EVM chains, callable from any MCP client.

Security Report

9.7
Low Risk9.7Low Risk

Valid MCP server (1 strong, 1 medium validity signals). No known CVEs in dependencies. ⚠️ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

3 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Q402 API key from https://q402.quackai.ai/dashboard. q402_test_* keys keep the server in sandbox mode; q402_live_* keys are required for real on-chain transactions.Required

Environment variable: Q402_API_KEY

Hex-encoded EVM private key used to sign payment authorizations. Required only for real on-chain payments (live mode).Required

Environment variable: Q402_PRIVATE_KEY

Set to '1' to allow real on-chain transactions. Any other value (or unset) keeps the server in sandbox mode regardless of API key tier.Optional

Environment variable: Q402_ENABLE_REAL_PAYMENTS

Per-call USD-equivalent cap. Any q402_pay request with amount above this is rejected before signing.Optional

Environment variable: Q402_MAX_AMOUNT_PER_CALL

Optional comma-separated lowercase EVM addresses. When set, q402_pay rejects any recipient not on this allowlist.Optional

Environment variable: Q402_ALLOWED_RECIPIENTS

Override for the Q402 relay endpoint. Defaults to https://q402.quackai.ai/api when unset; useful for self-hosted Q402 deployments.Optional

Environment variable: Q402_RELAY_BASE_URL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-bitgett-q402-mcp": {
      "env": {
        "Q402_API_KEY": "your-q402-api-key-here",
        "Q402_PRIVATE_KEY": "your-q402-private-key-here",
        "Q402_RELAY_BASE_URL": "your-q402-relay-base-url-here",
        "Q402_ALLOWED_RECIPIENTS": "your-q402-allowed-recipients-here",
        "Q402_MAX_AMOUNT_PER_CALL": "your-q402-max-amount-per-call-here",
        "Q402_ENABLE_REAL_PAYMENTS": "your-q402-enable-real-payments-here"
      },
      "args": [
        "-y",
        "@quackai/q402-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

@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.

npm license

Free trial available (through 2026-07-20). 2,000 gasless transactions on BNB Chain (USDC + USDT), 30-day window, no card. One wallet signature: https://q402.quackai.ai.

Trial-scope policy: API keys minted under the free-trial program (plan: "trial") are restricted to BNB Chain with USDC/USDT - server-side enforcement, returns 403 TRIAL_BNB_ONLY otherwise. 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

  1. Register the server with your client (one-line per client).
  2. Say "Set up Q402" to your agent. It runs q402_doctor → creates ~/.q402/mcp.env → walks you through pasting keys.

1. Register the server

ClientCommand / config
Claude Code (CLI)claude mcp add q402 -- npx -y @quackai/q402-mcp
Claude Desktop (app)Edit claude_desktop_config.json (Settings → Developer → Edit Config): { "mcpServers": { "q402": { "command": "npx", "args": ["-y", "@quackai/q402-mcp"] } } }. Restart the app.
OpenAI Codex CLIcodex mcp add q402 -- npx -y @quackai/q402-mcp (Windows fallback: see below)
CursorAdd to ~/.cursor/mcp.json: { "mcpServers": { "q402": { "command": "npx", "args": ["-y", "@quackai/q402-mcp"] } } }
ClineCline → Settings → MCP Servers → Edit JSON. Same shape as Cursor.
GitHub Copilot (VS Code)Add to .vscode/mcp.json - root key is servers, not mcpServers: { "servers": { "q402": { "command": "npx", "args": ["-y", "@quackai/q402-mcp"] } } }. Reload VS Code, then enable q402 in the Copilot Chat tools picker.
Hermes Agent (Nous Research)YAML, not JSON. Add under mcp_servers in ~/.hermes/config.yaml (see below), then run /reload-mcp.
Any other stdio MCP clientPoint it at npx -y @quackai/q402-mcp. No client-specific code.

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: true

After 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, claude binary) and Claude Desktop (the macOS / Windows app) are different products. The claude mcp add command 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:

  1. Creates ~/.q402/mcp.env (placeholders)
  2. Opens it in your editor
  3. Walks you through pasting an API key + a signing path into the file, not into chat
  4. Restart + re-run q402_doctor to 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

ModeEnvSignerNotes
AQ402_PRIVATE_KEYMetaMask EOA, localSimplest. Shows "Smart account" after first use (reversible via q402_clear_delegation).
BQ402_AGENTIC_PRIVATE_KEYAgent Wallet, localExport PK from the dashboard → Wallets → Danger Zone → Export private key. MetaMask untouched.
C(just an API key)Agent Wallet, server-managedNo 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 only (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. Set ONLY the paid Multichain key above, leave
# both PK lines blank. Q402 signs with the server-managed Agent Wallet.
# 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...

Then 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_URL overrides the relay endpoint. Set it explicitly when running against a self-hosted Q402 deployment or a non-canonical environment.


Tools exposed

46 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.

ToolAuthPurpose
Payments & wallet
q402_doctornoneFirst-install onboarding + ongoing health check (per-scope quota, EIP-7702 state, relay reachability, slot-mismatch warnings).
q402_quotenoneCompare gas + supported tokens across chains.
q402_balanceapi keyVerify key + remaining quota.
q402_paylive modeSingle-recipient gasless transfer. Sandbox by default.
q402_batch_paylive modeUp 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 q402_pay. 6+ BNB batches with Trial set return status="ambiguous" so the agent asks how to split. xlayer + stable not batchable - use q402_pay in a loop.
q402_receiptnoneFetch + locally verify a Trust Receipt (rct_… id, ECDSA against the relayer EOA).
q402_wallet_statusprivate keyPer-chain EIP-7702 state for the EOA derived from Q402_PRIVATE_KEY.
q402_clear_delegationprivate key / api keyClear 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 (consentToken).
q402_agentic_infoapi keyAgent Wallet info (addresses, per-wallet caps, daily-spend used, ERC-8004 id). Drives Mode C.
Treasury memory
q402_memory_summaryapi keyTreasury overview over a window: USD-stablecoin spend by chain/source, top vendors, schedules, open requests/escrow, failures. Read-only.
q402_vendor_historyapi keyTotal paid to one vendor (or a vendor leaderboard) with recurring cadence. Read-only.
q402_agent_spend_reportapi keyPer-Agent-Wallet spend with each wallet's caps. Read-only.
Recurring
q402_recurring_listapi keyList scheduled rules.
q402_recurring_createapi keyAuthor a recurring rule. Paid Multichain on EVERY chain (BNB included).
q402_recurring_firesapi keyLast 50 fires per rule (timestamp + txHashes + amount).
q402_recurring_pauseapi keyPause a rule (reversible).
q402_recurring_resumeapi keyResume a paused / stopped rule.
q402_recurring_skip_nextapi keySkip only the next scheduled fire.
q402_recurring_cancelapi keyPermanently stop a rule.
Bridge (CCIP + LayerZero)
q402_bridge_quotenoneQuote a Chainlink CCIP USDC bridge across eth/avax/arbitrum. Returns LINK + native fee.
q402_bridge_sendlive modeExecute a CCIP bridge from the user's Agent Wallet. Mode C only (server-managed). Sandbox-by-default; sandbox: false + live Multichain key + Q402_ENABLE_REAL_PAYMENTS=1 fires a real on-chain bridge.
q402_bridge_historynot yet wiredPointer to the dashboard. Returns { implemented: false, dashboardUrl, dashboardPath } - read-only guidance until owner-sig auth lands in MCP.
q402_bridge_gas_tanknot yet wiredStatic guidance + dashboard pointer for the Bridge Gas Tank top-up flow. Live balance lookup needs owner-sig auth (dashboard for now).
Yield
q402_yield_reservesnoneList 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.
q402_yield_positionsapi keyShow the Agent Wallet's open Q402 Yield positions (balance, principal, accrued interest, APY) + total supplied in USD. Mode C.
q402_yield_depositlive modeSupply the Agent Wallet's stablecoins into Q402 Yield's curated lending market per chain: BNB (USDC/USDT) or Base (USDC only). Mode C. Requires confirm: true; sandbox-by-default.
q402_yield_withdrawlive modeWithdraw supplied stablecoins out of Q402 Yield (curated lending markets on BNB and Base) back to the Agent Wallet (amount: "max" = max currently redeemable, which vault caps or queues can leave below the full position). Mode C. Requires confirm: true; sandbox-by-default.
Staking
q402_stakelive modeGasless Q (QuackAI) staking into QuackAiStake on BNB Chain. Lock tiers 0-3 (30d/10%, 60d/15%, 120d/32%, 180d/40% APR). amount: "max" stakes the whole Q balance. Mode C. Requires confirm: true; sandbox-by-default.
q402_unstakelive modeGasless unstake of matured Q on BNB. Per-record: exit one stake by index (ith) or all: true for every matured stake. Mode C. Requires confirm: true; sandbox-by-default.
q402_stake_positionslive modeThe Agent Wallet's open Q stakes (indices, maturity, exitable) + liquid Q balance. Read-only; Mode C.
Payment requests
q402_request_createapi keyPublish a payment request (invoice). No funds move; returns a shareable /pay link + req_… id. Recipient defaults to the Agent Wallet.
q402_request_statusnoneLook up a payment request by req_… id (amount, token, chain, recipient, status). Read-only; notFound instead of throwing.
q402_request_paylive modePay 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 q402_pay).
Escrow
q402_escrow_createapi keyCreate a gasless non-custodial escrow (pending record, moves no funds); optional walletId funds it from an Agent Wallet.
q402_escrow_statusnoneRead an escrow's state, parties, amount, and tx hashes. Read-only.
q402_escrow_locklive modeFund a pending escrow gaslessly (EIP-7702); the server signs for an Agent-Wallet buyer. Sandbox-by-default.
q402_escrow_releaselive modeBuyer releases a locked escrow to the seller (gasless). Sandbox-by-default.
q402_escrow_refundlive modePermissionless refund to the buyer after the timeout / resolve window.
q402_escrow_disputelive modeA party disputes an open escrow (requires a named arbiter).
Triggers (RedStone)
q402_redstone_feedsnoneWhich RedStone feeds this deployment can drive triggers off (NAV / price / RWA). Read-only.
q402_redstone_trigger_createlive modeArm a gasless payout that fires once when a RedStone feed crosses a threshold (edge-latched).
q402_redstone_trigger_listlive modeList the Agent Wallet's RedStone triggers + their state.
q402_redstone_trigger_cancellive modePermanently stop a RedStone trigger.

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_pay expects 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).


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" + Q402_TRIAL_API_KEY set  → Trial (free sponsored)
#   anything else                          → Multichain (paid 12-chain)
# Batch ambiguity: 6+ recipient BNB 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-only sponsored Trial key (from /event)
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, set only the paid Multichain key
# above. 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

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 a setupHint explaining why - four signals so a downstream summary can't claim success.

Hard caps

Env varDefaultEffect
Q402_MAX_AMOUNT_PER_CALL200Reject USDC/USDT/RLUSD calls with amount > N USD. Q (QuackAI) is exempt by design (your own token); the recipient allowlist + confirmation still apply to it.
Q402_ALLOWED_RECIPIENTSoffComma-separated address allowlist.

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 varRequired forNotes
Q402_TRIAL_API_KEYlive-pay (BNB)BNB-only sponsored Trial key. Free at https://q402.quackai.ai/event. Auto-routed for chain="bnb" in both q402_pay and q402_batch_pay (≤5 recipients) when set. 6+ recipient BNB batches return status="ambiguous" so the agent can ask the user how to split.
Q402_MULTICHAIN_API_KEYlive-pay (12-chain)Paid 12-chain key. Get one at https://q402.quackai.ai/payment. Auto-routed for non-BNB chains AND for BNB when no Trial key is set. Cap: 20 recipients per batch. Required for Mode C (server-managed Agent Wallet).
Q402_PRIVATE_KEYMode AHex private key of your MetaMask EOA. Signer for local Mode A. Never share. Never paste in chat.
Q402_AGENTIC_PRIVATE_KEYMode BExported 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.
Q402_AGENT_WALLET_ADDRESSMode 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.
Q402_ENABLE_REAL_PAYMENTSlive-paySet to 1 to opt in. Any other value (or unset) → sandbox.
Q402_MAX_AMOUNT_PER_CALLoptionalUSD-equivalent cap for USDC/USDT/RLUSD. Defaults to 200. Lower for tighter agent blast-radius. Q (QuackAI) is exempt by design (your own token).
Q402_ALLOWED_RECIPIENTSoptionalComma-separated lowercase addresses. Defaults to no allowlist.
Q402_RELAY_BASE_URLoptionalDefaults to https://q402.quackai.ai/api. Override for self-hosted Q402.

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

ChainChain IDToken(s)Notes
BNB Chain56USDC, USDT
Ethereum1USDC, USDT, RLUSDL1 - gas is volatile, quote is a snapshot. RLUSD (Ripple USD, NY DFS regulated, decimals 18) Ethereum-only.
Avalanche C-Chain43114USDC, USDT
X Layer196USDC, USDT
Stable988USDT0 (USDC and USDT both alias)Gas paid in USDT0.
Mantle5000USDC, USDT0LayerZero OFT USDT0 since 2025-11-27.
Injective EVM1776USDC, USDTNative Circle USDC (CCTP) live since 2026-06 + canonical Tether (USDT0).
Monad143USDC, USDT0Native Circle USDC (CCTP V2) + USDT0 (LayerZero OFT).
Scroll534352USDC, USDTzkEVM L2 - EIP-7702 live since the Euclid Phase 2 upgrade (2025-04-22).
Arbitrum One42161USDC, USDTOptimistic rollup - same EIP-7702 signing path as Ethereum. CCIP bridge endpoint (eth ⇄ avax ⇄ arbitrum).
Base8453USDC, USDTOP Stack L2 - same EIP-7702 signing path as Ethereum. Native Circle USDC + bridged Tether USD.
Robinhood Chain4663USDGArbitrum 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.


Repository

Source code: https://github.com/bitgett/q402-mcp Issues / requests: https://github.com/bitgett/q402-mcp/issues

License

Apache-2.0 - see LICENSE.

Reviews

No reviews yet

Be the first to review this server!

Q402 MCP Server - Q402 — gasless USDC/USDT payments across 7 EVM chains, | MCP Marketplace