Q402 Mcp
by github.com/quackai-org · v0.11.34 · updated Nov 3, 2026
Q402 - gasless payments, yield, escrow, bridge & NAV triggers on 12 EVM chains. Sandbox-default.
Run it locally
Install the package and point your AI client at it.
npm
npx -y @quackai/[email protected]Environment variables
Q402_TRIAL_API_KEYsecretRecommended path: skip this UI and run `q402_doctor` after install - it stores secrets in ~/.q402/mcp.env, which the server auto-loads. Fill this field directly ONLY if your MCP client manages secrets for you. Value is a Free Trial API key from https://q402.quackai.ai/event - BNB Chain (permanent) +...
Q402_MULTICHAIN_API_KEYsecretRecommended path: skip this UI and run `q402_doctor` after install - it stores secrets in ~/.q402/mcp.env, which the server auto-loads. Fill this field directly ONLY if your MCP client manages secrets for you. Value is a Paid Multichain API key from https://q402.quackai.ai/payment - full 12-chain su...
Q402_PRIVATE_KEYsecretMode A - real EOA signing. Hex-encoded EVM private key (0x + 64 hex chars) of YOUR MetaMask wallet, used to sign payment authorizations LOCALLY on your machine. After your first payment that wallet shows as 'Smart account' in MetaMask (EIP-7702 delegation, reversible via q402_clear_delegation). Use...
Q402_AGENTIC_PRIVATE_KEYsecretMode B - local Agent Wallet signing. Hex-encoded EVM private key (0x + 64 hex chars) exported from your Agent Wallet at https://q402.quackai.ai/dashboard -> Agent tab -> Export. Signs LOCALLY just like Mode A, but the signer is your dedicated Agent Wallet - your MetaMask EOA is never touched. Pick t...
Q402_ENABLE_REAL_PAYMENTSLive-mode switch. 0 = sandbox (test mode, no funds move - every q402_pay returns a fake hash). 1 = real on-chain payments. Default 1 since v0.5.11: safe because mode only flips to live when a live API key (q402_live_*) is set AND one of (a) a valid 32-byte private key for local signing modes, OR (b)...
Q402_MAX_AMOUNT_PER_CALLPer-call USD-equivalent cap for USDC/USDT/RLUSD. Any such q402_pay request with amount above this is rejected before signing. Q (QuackAI) is exempt by design (your own token; recipient allowlist + confirmation still apply). Lower this for a tighter agent blast-radius; raise for treasury-grade transf...
Q402_ALLOWED_RECIPIENTSOptional comma-separated lowercase EVM addresses. When set, q402_pay rejects any recipient not on this allowlist.
Q402_RELAY_BASE_URLOverride for the Q402 relay endpoint. Defaults to https://q402.quackai.ai/api. Set explicitly when running against a self-hosted Q402 deployment or a non-canonical environment.
Q402_AGENT_WALLET_ADDRESSServer-managed Agent Wallet picker (walletMode='agentic-server' only). Lowercased agent wallet address (the hex 0x... shown on the Agent tab of your dashboard) selecting which of your Agent Wallets to spend from when you hold more than one (max 10 per owner). Omit to use the default wallet. Ignored...
Q402_API_KEYsecretDEPRECATED legacy single-key env from pre-v0.5.0 installs. The server still reads it as a silent fallback so existing setups keep working, but new users should pick a scoped variant instead. Q402_TRIAL_API_KEY (Free Trial, BNB Chain + Base) and Q402_MULTICHAIN_API_KEY (full 12-chain surface) are des...
Q402_WALLET_IDDEPRECATED soft-migration alias for Q402_AGENT_WALLET_ADDRESS (one release of overlap from v0.6.0). The server still accepts it but logs a deprecation notice. New installs should set Q402_AGENT_WALLET_ADDRESS directly.
Q402_BUILDER_CODEOptional Base Builder Code for onchain attribution (ERC-8021 / Base Builder Codes). When set, every q402_x402_fetch payment includes your code as the client/intermediary in the x402 payment extension so payments are attributed onchain. Format: 1-32 lowercase letters, numbers, or underscores. Leave u...
More MCP servers
Quadratic
github.com/quadratichq
AI access to Quadratic spreadsheets: open files, run Python/SQL, query connected databases.
Quadratik
github.com/quadratik-ai
Search and manage 220M+ B2B contacts. Filter by title, industry, location, and more.
Quady3D MCP
github.com/quady3dai
Generate 3D assets, quote credits, recover tasks and save model files to a project.
Qualien Mcp
github.com/qualienai
MCP gateway for QA/SDET work: Playwright, files, GitHub, Jira, Postgres & more in one connection.
FineData
github.com/quality-network
FineData web scraping MCP — JavaScript rendering, captcha solving, markdown for AI agents
Quality Screener
github.com/quality-screener
Screen and score stocks with the Quality Screener engine: filters, custom scores, and history.