L'Atlas / MCP servers / a402-pay-mcp
MCP server

a402-pay-mcp

io.github.agent402-dev/a402-pay-mcp

MCP server Not tested

Get a review See pricing

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

Technical sheet

Author
agent402-dev (registry namespace)
Repository
github.com/agent402-dev/agent402-toolkit
Site
—
Version
0.17.0
Transport
stdio
Authentication
None (declared in the registry)
Packages
@agent402-dev/pay-mcp 0.17.0 npm stdio
Tools
—
Categories
Finance and payments
Last updated
1 Dec 2026
Published
1 Dec 2026

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded. Latest test not successful: the badge only says “listed”.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.agent402-dev/a402-pay-mcp.svg?lang=en)](https://latlas.dev/en/mcp/io.github.agent402-dev/a402-pay-mcp)
HTML
<a href="https://latlas.dev/en/mcp/io.github.agent402-dev/a402-pay-mcp"><img src="https://latlas.dev/badge/fiche/io.github.agent402-dev/a402-pay-mcp.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

No remote address published: this server runs locally, so we do not test it.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport not listeddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Local launch of package @agent402-dev/pay-mcp (npm). Formats taken from each client’s documentation.

Claude Code
claude mcp add-json a402-pay-mcp '{"command":"npx","args":["-y","@agent402-dev/[email protected]"]}'
Claude (claude.ai, Claude Desktop, Cowork)claude_desktop_config.json (macOS : ~/Library/Application Support/Claude/ ; Windows : %APPDATA%\Claude\ ; Linux : ~/.config/Claude/)
{
  "mcpServers": {
    "a402-pay-mcp": {
      "command": "npx",
      "args": ["-y","@agent402-dev/[email protected]"]
    }
  }
}
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "a402-pay-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y","@agent402-dev/[email protected]"]
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "a402-pay-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y","@agent402-dev/[email protected]"],
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "a402-pay-mcp": {
      "command": "npx",
      "args": ["-y","@agent402-dev/[email protected]"]
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "a402-pay-mcp": {
      "command": "npx",
      "args": ["-y","@agent402-dev/[email protected]"]
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.a402-pay-mcp]
command = "npx"
args = ["-y","@agent402-dev/[email protected]"]

Declared environment variables

NameRequiredDescription
X402_KEYPAIR_PATHnoPath to the payment wallet key file (Solana CLI JSON). Without it nothing is paid.
X402_ALLOWED_DOMAINSnoAllowed domains, comma-separated. Empty: every payment refused.
X402_TRUSTED_PAY_TOnoTrusted recipient addresses, comma-separated. Empty: every payment refused.
X402_ALLOWED_ASSETSnoUSDC (default) or USDC,PREQ. A402 (v1) is deprecated.
X402_MAX_USDnoMax USDC per payment in USD (default 0.05)
X402_MAX_USD_PER_DAYnoMax USDC per UTC day in USD (default 1)
X402_MAX_PAYMENTS_PER_DAYnoMax payments per UTC day (default 20)
X402_MAX_USD_PER_RECIPIENT_PER_DAYnoMax USDC per recipient per UTC day in USD (default off)
X402_MAX_PREQ_ATOMICnoMax PREQ per payment, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused.
X402_MAX_PREQ_PER_DAY_ATOMICnoMax PREQ per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused.
X402_MAX_PREQ_PER_RECIPIENT_PER_DAY_ATOMICnoMax PREQ per recipient per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Default off.
X402_CONFIRM_ABOVE_USDnoAsk a human at or above this USDC amount (USD). Default off.
X402_CONFIRM_ABOVE_PREQ_ATOMICnoAsk a human at or above this PREQ amount (PREQ smallest units). Default off.
X402_REQUIRE_LOCKnoyes = pay only sellers whose registered on-chain lock meets the minimums (default off)
X402_REQUIRE_LOCK_ABOVE_USDnoRequire a seller lock only for USDC payments at or above this amount (USD)
X402_MIN_LOCK_DAYSnoThe minimum must still be locked this many days from now (default 90)
X402_MIN_LOCK_PREQ_ATOMICnoMinimum PREQ locked by the seller, PREQ smallest units (1 PREQ = 1,000,000)
X402_MIN_LOCK_USDC_ATOMICnoMinimum USDC locked by the seller, USDC smallest units (1 USDC = 1,000,000)
X402_MIN_LOCK_SOL_ATOMICnoMinimum wrapped SOL locked by the seller, lamports (1 SOL = 1,000,000,000)
X402_BOND_SELLERSnoAgent402 Bond: seller addresses you may open deals with, comma-separated. Empty: bond_open refused.
X402_BOND_MAX_USDnoAgent402 Bond: max price per deal (USD). Unset: bond_open refused.
X402_BOND_MIN_SELLER_BOND_BPSnoAgent402 Bond: minimum seller bond as a share of the price, basis points (default 500 = 5%).
X402_BOND_MAX_DAYSnoAgent402 Bond: max days from now to the delivery deadline (default 30).
X402_BOND_CONFIRM_ABOVE_USDnoAgent402 Bond: ask a human at or above this amount in USD (default 0 = always ask).
X402_BOND_MAX_PREQ_ATOMICnoAgent402 Bond: max PREQ price per deal, PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ deals refused.
X402_BOND_CONFIRM_ABOVE_PREQ_ATOMICnoAgent402 Bond: ask a human at or above this PREQ amount, smallest units (default 0 = always ask).
X402_BOND_DIRECTORY_URLnoAgent402 Bond: seller directory for bond_find_sellers (https). Default: the toolkit list. off = tool off.
X402_BOND_V2_ALLOW_SHAREnoAgent402 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_ARBITERSnoAgent402 Bond v2: arbiter addresses you accept, comma-separated. Default: deals with an arbiter refused.
X402_MCP_TASKSnoon = add bond_v2_wait_result as an MCP task (experimental, read-only). Default off.
X402_NETWORKnomainnet or devnet
X402_RPC_URLno (secret)Solana RPC URL used to build payment transactions
X402_PAY_WITHnoPreferred asset: USDC or PREQ
X402_PREQ_MINTnoPREQ mint override (only needed before the PREQ mint is built into this version, or for devnet rehearsal)
X402_ALLOWED_NETWORKSnoNetworks payments may use: solana (default) or solana,base. Base (EVM) per-request payments are off by default
X402_PREFER_NETWORKnoNetwork to use when an option passes on both: solana (default) or base
X402_EVM_KEY_PATHnoBase wallet key file (one line, 0x private key). Without it every Base payment is refused
X402_HISTORY_PATHnoLocal payment log (JSONL). Daily limits are counted from this file.
X402_BOND_PREFERnoSet 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 a…
X402_UNBONDED_CONFIRM_ABOVE_USDnoWith 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.
X402_ATTESTATION_SIGNERSnoComma-separated base58 Ed25519 keys you trust to sign attestations about a payment receiver. When set, x402_fetch and x402_quote accept an attestation input, checked offline. Off by default.
X402_ATTESTATION_REQUIREDnoWith X402_ATTESTATION_SIGNERS set: on refuses a payment that has no valid attestation. Default off.
X402_PAUSE_AFTER_REFUSALSnoAfter this many refused payment attempts in a row (1-1000), refuse every x402_fetch call until pay-mcp restarts. A paid or free request resets the count. Default off.
X402_PAYMENT_IDnoSet to on to send an x402 payment-identifier with a Solana payment when the seller's 402 declares that extension. Default off.

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

a402-pay-mcp · L’Atlas

Markdown
[a402-pay-mcp — L’Atlas](https://latlas.dev/en/mcp/io.github.agent402-dev/a402-pay-mcp)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 1 Dec 2026. L’Atlas adds no data beyond this source and its own tests.