Q402 - gasless payments, yield, escrow, bridge & NAV triggers on 12 EVM chains. Sandbox-default.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
q402_doctor β creates ~/.q402/mcp.env β walks you through pasting keys.| Client | Command / 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 CLI | codex mcp add q402 -- npx -y @quackai/q402-mcp (Windows fallback: see below) |
| Cursor | Add to ~/.cursor/mcp.json: { "mcpServers": { "q402": { "command": "npx", "args": ["-y", "@quackai/q402-mcp"] } } } |
| Cline | Cline β 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 client | Point it at npx -y @quackai/q402-mcp. No client-specific code. |
~/.hermes/config.yaml)Hermes reads MCP servers from ~/.hermes/config.yaml under mcp_servers (YAML, not JSON):
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,
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).
codex mcp add returns "Access is denied"Some Windows setups block codex.exe from writing its own config. Add the stanza to ~/.codex/config.toml by hand:
Then restart Codex. Same effect as codex mcp add q402 -- npx -y @quackai/q402-mcp.
Restart your client, ask: > "Set up Q402"
The agent runs q402_doctor. On first install:
~/.q402/mcp.env (placeholders)q402_doctor to verifyKeys 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.
| Mode | Env | Signer | Notes |
|---|---|---|---|
| A | Q402_PRIVATE_KEY | MetaMask EOA, local | Simplest. Shows "Smart account" after first use (reversible via q402_clear_delegation). After EIP-7702 delegation, q402_x402_fetch is unavailable until q402_clear_delegation is called (gasless, reversible; next q402_pay re-delegates). |
| B | Q402_AGENTIC_PRIVATE_KEY | 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".
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.
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. Important for x402 users: after EIP-7702 delegation is active, q402_x402_fetch cannot sign x402 payments until you call q402_clear_delegation (gasless on Base, reversible β the next q402_pay re-delegates automatically).
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.
env_vars allow-list exampleThen export the values in ~/.zshrc / ~/.bashrc. See the Codex config reference for the full schema.
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.
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.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/q402-mcp)<a href="https://allmcps.com/mcp/q402-mcp"><img src="https://allmcps.com/api/badge/q402-mcp?style=directory" alt="Q402 MCP on AllMCPs" /></a>