[ MCP / @quackai/q402-mcp ]
v0.8.34 live

Your agent gets a checking account.

Gasless stablecoin payments across 10 EVM chains, from any MCP client. One install, then ask your AI to set it up. 27 tools, one package.

[ Install ]

Pick your client. One package underneath.

Same @quackai/q402-mcp server for every client. CLI for Claude and Codex, a JSON snippet for Cursor and Cline.

$claude mcp add q402 -- npx -y @quackai/q402-mcp
Writes the q402 entry into ~/.claude.json for you, no editing by hand.

Claude Code CLI or Claude Desktop. Reload or restart the app after running.

Restart, then ask “Set up Q402”. It runs q402_doctor, creates ~/.q402/mcp.env, and walks you through pasting keys in your editor, never in chat.

[ Wallet mode ]

Do I need a private key?

Two modes use a local private key; one lets Q402 sign server-side. Most users want Mode C, no PK, just an API key.

Mode CRecommended
Server signs for you

No PK in env. No MetaMask popup. Best for AI agents.

~/.q402/mcp.env
Q402_MULTICHAIN_API_KEY=q402_live_...
Mode B
Local Agent Wallet PK

Mode C's wallet, your private key. Export once from the dashboard. Local signing, MetaMask untouched.

~/.q402/mcp.env
Q402_AGENTIC_PRIVATE_KEY=0x...
Q402_MULTICHAIN_API_KEY=q402_live_...
Mode A
Your MetaMask EOA signs

Signs directly via EIP-7702 (shows "Smart account", reversible). Use a fresh wallet.

~/.q402/mcp.env
Q402_PRIVATE_KEY=0x...
Q402_MULTICHAIN_API_KEY=q402_live_...
Change later by editing ~/.q402/mcp.env. q402_doctor asks on first install.
[ Live demo ]

The exact tool your agent calls.

Change the amount or token. The table re-ranks all 10 chains by gas, the same q402_quote the MCP server returns to the agent.

Amount
$
#ChainGas tokenApprox gasSender
  • 01Stablechain 988USDT0$0.0005$0.00
  • 02BNB Chainchain 56BNB$0.0010$0.00
  • 03Scrollchain 534352ETH$0.0010$0.00
  • 04Arbitrum Onechain 42161ETH$0.0015$0.00
  • 05X Layerchain 196OKB$0.0020$0.00
  • 06Mantlechain 5000MNT$0.0020$0.00
  • 07Monadchain 143MON$0.0020$0.00
  • 08Avalanche C-Chainchain 43114AVAX$0.0030$0.00
  • 09Injective EVMchain 1776INJ$0.0040$0.00
  • 10Ethereum Mainnetchain 1ETH$1.20$0.00
Sending $50 USDC, USDT, or RLUSD. Agent picks Stable by default. Sender always pays $0; gas comes from the developer's gas tank.
[ 27 tools ]

Only what an agent should reach for.

No hidden admin endpoints. Nothing moves funds outside the confirm-and-sign flow. Grouped by what they do, with the auth each one needs.

Setup and read5
  • q402_doctorno auth
    Install + ongoing health check. Call on "set up Q402".
  • q402_quoteno auth
    Compare gas across all 10 chains. Read-only.
  • q402_balanceapi key
    Verify key + remaining quota.
  • q402_agentic_infoapi key
    Agent Wallet info: addresses, caps, ERC-8004 id. Read-only.
  • q402_wallet_statusprivate key
    Per-chain EIP-7702 delegation state. Read-only.
Pay2
  • q402_paylive mode
    Single-recipient gasless USDC / USDT / RLUSD send. Sandbox by default.
  • q402_batch_paylive mode
    Up to 20 recipients in one signed batch (trial: 5).
Receipts1
  • q402_receiptno auth
    Fetch + locally verify a Trust Receipt.
Recurring7
  • q402_recurring_listapi key
    List recurring rules + next run.
  • q402_recurring_createapi key
    Author a recurring rule (paid Multichain only).
  • q402_recurring_firesapi key
    Last 50 fires for one rule (timestamps + txHashes).
  • q402_recurring_pauseapi key
    Pause a rule. Reversible.
  • q402_recurring_resumeapi key
    Resume a paused or stopped rule.
  • q402_recurring_skip_nextapi key
    Skip only the next fire. Cadence preserved.
  • q402_recurring_cancelapi key
    Permanently stop a rule.
Yield4
  • q402_yield_reservesno auth
    Aave V3 markets + supply APY. BNB only. Read-only.
  • q402_yield_positionsapi key
    Your open yield positions + total supplied. Read-only.
  • q402_yield_depositlive mode
    Supply USDC / USDT into Aave V3. Mode C, BNB only. Sandbox by default.
  • q402_yield_withdrawlive mode
    Withdraw USDC / USDT from Aave V3 ("max" = full). Sandbox by default.
Bridge4
  • q402_bridge_quoteno auth
    Quote CCIP fee for a USDC bridge on eth / avax / arbitrum.
  • q402_bridge_sendlive key
    Execute a CCIP USDC bridge from your Agent Wallet (Mode C). Sandbox by default.
  • q402_bridge_historyowner sig
    List recent CCIP bridges. Owner-sig auth via dashboard.
  • q402_bridge_gas_tankowner sig
    LINK + native Gas Tank bucket per CCIP chain.
Delegation1
  • q402_clear_delegationprivate key
    Clear EIP-7702 delegation on a chain. Q402-sponsored gas.
Requests3
  • q402_request_createapi key
    Publish a payment request (invoice). No funds move; returns a /pay link + req_ id.
  • q402_request_statusno auth
    Look up a request by req_ id: amount, recipient, status. Read-only.
  • q402_request_paylive mode
    Pay a request gaslessly from your own Agent Wallet. Terms locked to the request.

Full reference, EIP-7702 details, Trust Receipt + safety guards: /docs, MCP for AI Clients · what the Agent Wallet does