Skip to content
MCP server

Q402 MCP

Gasless stablecoin payments, escrow and bridging across 12 EVM chains, sandbox by default

Runs locally

Q402 MCP is an MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

Pricing
Free trial
Platforms
CLI, API
Runs
Locally
What it can do
Can change data (2 tools)
Version
0.11.34
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add q402-mcp --env Q402_TRIAL_API_KEY='<Q402_TRIAL_API_KEY>' --env Q402_MULTICHAIN_API_KEY='<Q402_MULTICHAIN_API_KEY>' --env Q402_PRIVATE_KEY='<Q402_PRIVATE_KEY>' --env Q402_AGENTIC_PRIVATE_KEY='<Q402_AGENTIC_PRIVATE_KEY>' --env Q402_API_KEY='<Q402_API_KEY>' -- npx -y @quackai/q402-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "q402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@quackai/q402-mcp"
      ],
      "env": {
        "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
        "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
        "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
        "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
        "Q402_API_KEY": "<Q402_API_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "q402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@quackai/q402-mcp"
      ],
      "env": {
        "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
        "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
        "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
        "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
        "Q402_API_KEY": "<Q402_API_KEY>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "q402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@quackai/q402-mcp"
      ],
      "env": {
        "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
        "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
        "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
        "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
        "Q402_API_KEY": "<Q402_API_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "q402-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@quackai/q402-mcp"
      ],
      "env": {
        "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
        "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
        "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
        "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
        "Q402_API_KEY": "<Q402_API_KEY>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add q402-mcp --env Q402_TRIAL_API_KEY='<Q402_TRIAL_API_KEY>' --env Q402_MULTICHAIN_API_KEY='<Q402_MULTICHAIN_API_KEY>' --env Q402_PRIVATE_KEY='<Q402_PRIVATE_KEY>' --env Q402_AGENTIC_PRIVATE_KEY='<Q402_AGENTIC_PRIVATE_KEY>' --env Q402_API_KEY='<Q402_API_KEY>' -- npx -y @quackai/q402-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.q402-mcp]
command = "npx"
args = ["-y", "@quackai/q402-mcp"]
env = { Q402_TRIAL_API_KEY = "<Q402_TRIAL_API_KEY>", Q402_MULTICHAIN_API_KEY = "<Q402_MULTICHAIN_API_KEY>", Q402_PRIVATE_KEY = "<Q402_PRIVATE_KEY>", Q402_AGENTIC_PRIVATE_KEY = "<Q402_AGENTIC_PRIVATE_KEY>", Q402_API_KEY = "<Q402_API_KEY>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "q402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@quackai/q402-mcp"
      ],
      "env": {
        "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
        "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
        "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
        "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
        "Q402_API_KEY": "<Q402_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "q402-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@quackai/q402-mcp"
          ],
          "env": {
            "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
            "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
            "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
            "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
            "Q402_API_KEY": "<Q402_API_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e Q402_TRIAL_API_KEY='<Q402_TRIAL_API_KEY>' -e Q402_MULTICHAIN_API_KEY='<Q402_MULTICHAIN_API_KEY>' -e Q402_PRIVATE_KEY='<Q402_PRIVATE_KEY>' -e Q402_AGENTIC_PRIVATE_KEY='<Q402_AGENTIC_PRIVATE_KEY>' -e Q402_API_KEY='<Q402_API_KEY>' q402-mcp npx -- -y @quackai/q402-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "q402-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@quackai/q402-mcp"
          ],
          "env": {
            "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
            "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
            "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
            "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
            "Q402_API_KEY": "<Q402_API_KEY>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "q402-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@quackai/q402-mcp"
          ],
          "env": {
            "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
            "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
            "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
            "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
            "Q402_API_KEY": "<Q402_API_KEY>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "q402-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@quackai/q402-mcp"
          ],
          "env": {
            "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
            "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
            "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
            "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
            "Q402_API_KEY": "<Q402_API_KEY>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "q402-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@quackai/q402-mcp"
          ],
          "env": {
            "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
            "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
            "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
            "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
            "Q402_API_KEY": "<Q402_API_KEY>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "q402-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@quackai/q402-mcp"
          ],
          "env": {
            "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
            "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
            "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
            "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
            "Q402_API_KEY": "<Q402_API_KEY>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "q402-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@quackai/q402-mcp"
          ],
          "env": {
            "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
            "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
            "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
            "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
            "Q402_API_KEY": "<Q402_API_KEY>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "q402-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@quackai/q402-mcp"
          ],
          "env": {
            "Q402_TRIAL_API_KEY": "<Q402_TRIAL_API_KEY>",
            "Q402_MULTICHAIN_API_KEY": "<Q402_MULTICHAIN_API_KEY>",
            "Q402_PRIVATE_KEY": "<Q402_PRIVATE_KEY>",
            "Q402_AGENTIC_PRIVATE_KEY": "<Q402_AGENTIC_PRIVATE_KEY>",
            "Q402_API_KEY": "<Q402_API_KEY>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • Q402_TRIAL_API_KEYRecommended 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) + Base (permanent) + Mantle limited-time (2026-08-21~08-28 UTC+9), 500 sponsored TXs, gas covered by Q402. Avalanche trial has ended. BNB and Base payments auto-route to this key when set (same rule for q402_pay and q402_batch_pay up to 5 recipients).
  • Q402_MULTICHAIN_API_KEYRecommended 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 support with per-chain Gas Tank. Auto-routed for non-BNB payments and whenever keyScope='multichain' is chosen.
  • Q402_PRIVATE_KEYMode 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 a fresh wallet, not your main one. Skip this and pick Mode B (Q402_AGENTIC_PRIVATE_KEY) or Mode C (server-managed Agent Wallet) if you'd rather keep your MetaMask untouched. Recommended path: run q402_doctor after install - it stores secrets in ~/.q402/mcp.env, which the server auto-loads.
  • Q402_AGENTIC_PRIVATE_KEYMode 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 this for AI-agent automation when you want a dedicated purse with per-tx + daily caps you set on the dashboard.
  • 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) walletMode="agentic-server" with Q402_MULTICHAIN_API_KEY for the server-managed Agent Wallet path. Without either combination, the server stays in sandbox regardless of this flag.
  • 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 transfers.
  • 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 for the local-signing modes that carry their own private key.
  • Q402_API_KEYDEPRECATED 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 designed to coexist - BNB and Base payments auto-route to the trial key, other chains use multichain. Only set Q402_API_KEY if you are migrating an existing pre-v0.5.0 install; do NOT set it alongside the scoped variants on a fresh install.
  • 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 unset to disable attribution.

About Q402 MCP

Q402 MCP lets an agent quote, route and optionally settle stablecoin payments in USDC, USDT, RLUSD and USDG, with the recipient receiving the full amount while the sender pays no gas through an EIP-7702 relayer. It is meant for Claude, Codex CLI, Cursor, Cline and other MCP clients over stdio.

Safety is built around keys and modes. Secrets live in ~/.q402/mcp.env, never in chat, and the server stays in sandbox with fake hashes unless a live API key and a signing path are both set. There are three signing modes: a local MetaMask key, a local Agent Wallet key, or a server-managed Agent Wallet. A per-call maximum defaults to $200, and an optional recipient allowlist is available. A trust pre-check costs $0.02 per check for first-time counterparties or amounts of $1 and up.

A free trial key covers 500 sponsored transactions on BNB Chain and Base; paid Multichain keys cover all 12 chains. After a first live payment the wallet shows as a smart account, reversible with q402_clear_delegation.

Tools this server provides (5)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 2 of 5 tools change data; 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

q402_doctor
Checks setup and creates the local config file.
q402_payName suggests: changes
Sends a stablecoin payment.
q402_batch_payName suggests: changes
Pays up to 5 recipients.
q402_clear_delegation
Reverses the wallet's EIP-7702 delegation.
q402_x402_fetchName suggests: reads
Fetches an x402-protected resource, paying with a signed authorization.

What it does

Gasless payments
Sender pays no gas; the recipient gets the full amount.
Sandbox by default
Live mode needs both an API key and a signing path.
Three signing modes
Local EOA, local Agent Wallet or server-managed wallet.
Spend guards
Per-call cap and optional recipient allowlist.
Setup doctor
q402_doctor creates the config file and walks through keys.
Chain coverage
Trial keys on BNB Chain and Base; paid keys on all 12 chains.

Good for

  • Let an agent pay a stablecoin invoice without holding gas tokens
  • Batch-pay a few recipients in one call
  • Rehearse payment flows in sandbox mode
  • Pay for an x402-protected resource
  • Cap agent spending per call with an allowlist

Pricing

Free trial

Free trial key with 500 sponsored transactions; paid Multichain key for 12 chains (price not shown)

Q402 MCP FAQ

Does Q402 MCP move real money by default?

No. Without a live key and signing path it stays in sandbox and returns fake hashes.

Is there a free trial?

Yes, a key with 500 sponsored transactions on BNB Chain and Base, no card.

Where are keys stored?

In ~/.q402/mcp.env, which the server auto-loads.

Are hardware wallets supported?

No; a raw hex key is needed for EIP-7702 authorizations.

What is the default spending cap?

$200 per call.

How do I add Q402 MCP to Claude Code?

Run this command in your terminal: claude mcp add q402-mcp --env Q402_TRIAL_API_KEY='<Q402_TRIAL_API_KEY>' --env Q402_MULTICHAIN_API_KEY='<Q402_MULTICHAIN_API_KEY>' --env Q402_PRIVATE_KEY='<Q402_PRIVATE_KEY>' --env Q402_AGENTIC_PRIVATE_KEY='<Q402_AGENTIC_PRIVATE_KEY>' --env Q402_API_KEY='<Q402_API_KEY>' -- npx -y @quackai/q402-mcp

What are the best alternatives to Q402 MCP?

The closest alternatives to Q402 MCP are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, NostrPulse, Australian Economic Data (ABS, RBA & APRA) and Crypto Perp Pulse & Outage Radar (x402).

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers