mcpbeat Sign in

A402 Pay MCP Server

local only

A402 Pay MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 5 074 installs a week from npm. Last commit 30 Nov 2026.

Pay x402 APIs (USDC, PREQ) and run Agent402 Bond deals from your own wallet. Refuses by default.

Installs per day peak 1 521 · avg 189 · +713% w/w
a month agotoday
5 074
Installs / week
npm · @agent402-dev/pay-mcp
0
Stars
1 open issue
30 Nov 2026
Last commit
27 releases in 90 days
Apache-2.0
License
TypeScript

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add a402-pay-mcp -- npx -y @agent402-dev/pay-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "a402-pay-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agent402-dev/pay-mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.a402-pay-mcp]
command = "npx"
args = ["-y", "@agent402-dev/pay-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "a402-pay-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agent402-dev/pay-mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "a402-pay-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agent402-dev/pay-mcp"
      ]
    }
  }
}

Optional settings from the registry entry, left out of the block above: X402_KEYPAIR_PATH (Path to the payment wallet key file (Solana CLI JSON). Without it nothing is paid), X402_ALLOWED_DOMAINS (Allowed domains, comma-separated. Empty: every payment refused), X402_TRUSTED_PAY_TO (Trusted recipient addresses, comma-separated. Empty: every payment refused), X402_ALLOWED_ASSETS (USDC (default) or USDC,PREQ. A402 (v1) is deprecated), X402_MAX_USD (Max USDC per payment in USD (default 0.05)), X402_MAX_USD_PER_DAY (Max USDC per UTC day in USD (default 1)), X402_MAX_PAYMENTS_PER_DAY (Max payments per UTC day (default 20)), X402_MAX_USD_PER_RECIPIENT_PER_DAY (Max USDC per recipient per UTC day in USD (default off)), X402_MAX_PREQ_ATOMIC (Max PREQ per payment, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused), X402_MAX_PREQ_PER_DAY_ATOMIC (Max PREQ per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused), X402_MAX_PREQ_PER_RECIPIENT_PER_DAY_ATOMIC (Max PREQ per recipient per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Default off), X402_CONFIRM_ABOVE_USD (Ask a human at or above this USDC amount (USD). Default off), X402_CONFIRM_ABOVE_PREQ_ATOMIC (Ask a human at or above this PREQ amount (PREQ smallest units). Default off), X402_REQUIRE_LOCK (yes = pay only sellers whose registered on-chain lock meets the minimums (default off)), X402_REQUIRE_LOCK_ABOVE_USD (Require a seller lock only for USDC payments at or above this amount (USD)), X402_MIN_LOCK_DAYS (The minimum must still be locked this many days from now (default 90)), X402_MIN_LOCK_PREQ_ATOMIC (Minimum PREQ locked by the seller, PREQ smallest units (1 PREQ = 1,000,000)), X402_MIN_LOCK_USDC_ATOMIC (Minimum USDC locked by the seller, USDC smallest units (1 USDC = 1,000,000)), X402_MIN_LOCK_SOL_ATOMIC (Minimum wrapped SOL locked by the seller, lamports (1 SOL = 1,000,000,000)), X402_BOND_SELLERS (Agent402 Bond: seller addresses you may open deals with, comma-separated. Empty: bond_open refused), X402_BOND_MAX_USD (Agent402 Bond: max price per deal (USD). Unset: bond_open refused), X402_BOND_MIN_SELLER_BOND_BPS (Agent402 Bond: minimum seller bond as a share of the price, basis points (default 500 = 5%)), X402_BOND_MAX_DAYS (Agent402 Bond: max days from now to the delivery deadline (default 30)), X402_BOND_CONFIRM_ABOVE_USD (Agent402 Bond: ask a human at or above this amount in USD (default 0 = always ask)), X402_BOND_MAX_PREQ_ATOMIC (Agent402 Bond: max PREQ price per deal, PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ deals refused), X402_BOND_CONFIRM_ABOVE_PREQ_ATOMIC (Agent402 Bond: ask a human at or above this PREQ amount, smallest units (default 0 = always ask)), X402_BOND_DIRECTORY_URL (Agent402 Bond: seller directory for bond_find_sellers (https). Default: the toolkit list. off = tool off), X402_BOND_V2_ALLOW_SHARE (Agent402 Bond v2: 1 = accept deals where a stated share of your deposit goes to the seller if you do not accept. Default: refused), X402_BOND_V2_ARBITERS (Agent402 Bond v2: arbiter addresses you accept, comma-separated. Default: deals with an arbiter refused), X402_MCP_TASKS (on = add bond_v2_wait_result as an MCP task (experimental, read-only). Default off), X402_NETWORK (mainnet or devnet), X402_RPC_URL (Solana RPC URL used to build payment transactions), X402_PAY_WITH (Preferred asset: USDC or PREQ), X402_PREQ_MINT (PREQ mint override (only needed before the PREQ mint is built into this version, or for devnet rehearsal)), X402_ALLOWED_NETWORKS (Networks payments may use: solana (default) or solana,base. Base (EVM) per-request payments are off by default), X402_PREFER_NETWORK (Network to use when an option passes on both: solana (default) or base), X402_EVM_KEY_PATH (Base wallet key file (one line, 0x private key). Without it every Base payment is refused), X402_HISTORY_PATH (Local payment log (JSONL). Daily limits are counted from this file), X402_BOND_PREFER (Set to on to read a seller's 402 extensions.bond, check that bond account on chain (mint, owner = payment receiver, balance >= maxCover), and ask before paying a seller without a checked bond. Only adds a confirmation; limits are unchanged. Default off), X402_UNBONDED_CONFIRM_ABOVE_USD (With X402_BOND_PREFER=on: ask before paying a seller without a checked bond at or above this USD amount (non-USDC payments always ask). Default 0.05).

Nothing serious here today

Today is the operative word: we check A402 Pay MCP every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.

Three servers free · no card

Alternatives to A402 Pay MCP

same job, measured the same way
Opute Host Agent
by wunderous

Run your Linux host from an AI assistant: Incus VMs, K3s, databases, tunnels. Read-only by default.

1 875 installs/wk local only
Fourohtwo
by fourohtwo

Find and pay any x402 API from one agent wallet: USDG on Robinhood Chain or USDC on Base.

528 installs/wk local only
A
Autonomo
by autonomodotfun

AI agents find x402 APIs and pay per call in USDG or $AUTONOMO on Robinhood Chain or USDC on Base.

512 installs/wk local only
Agent Clinic
by mohammedalmohaish-cyber

House calls for AI agents: pay once in USDC over x402, run the instructions on your own model.

362 installs/wk local only
Minia2a X402
by minia2a

x402 directory for AI agents: pay-per-call APIs, USDC on Base, 5 free trials per wallet.

191 installs/wk local only
M
MCP Papra
by jeremdecustovox

Search, read and tag your Papra documents from Claude. Read-only by default, demo mode.

186 installs/wk local only
Agentmetal
by agentmetal

Rent a Linux VPS from an AI agent: provision, SSH in, run commands. Pay USDC (x402) or card.

148 installs/wk local only
Light Cloud
by light-cloud

Deploy and run web apps, APIs and databases on Light Cloud from your AI agent.

120 installs/wk answering

A402 Pay MCP — questions

Answers built from our own checks of this server.

Why is there no uptime for A402 Pay MCP?
A402 Pay MCP runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package @agent402-dev/pay-mcp was installed 5 074 times last week.
How do I connect A402 Pay MCP?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls @agent402-dev/pay-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use A402 Pay MCP?
The npm package @agent402-dev/pay-mcp was installed 5 074 times in the last week. Week over week that is +713%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is A402 Pay MCP open source?
Yes — it is published under the Apache-2.0 licence, written in TypeScript, 0 stars on GitHub and 1 open issue. The source link is on this page, so you can read exactly what it does with your data before you connect it.