Skip to content
MCP server
Registry

a402-pay-mcp MCP Server

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

a402-pay-mcp scores 49 (Fair), licensed Apache-2.0 and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Finance. GitHub shows 0 stars. Package registries report about 4,867 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by agent402-devApache-2.0TypeScript0 stars
Trust score
49Fair
Trust score 49 of 100, Fair

Fair trust

49 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 49 comes from

0 + 20 + 6 + 10 + 10 + 3 = 49. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity6 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 6 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security10 / 10

Not archived, a secure install path, a pinned version.

Security: 10 of 10 points.
Docs3 / 10

A real summary, a README with depth, listed tools.

Docs: 3 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "agent402-dev-pay-mcp": {      "command": "npx",      "args": [        "-y",        "@agent402-dev/pay-mcp@0.17.0"      ],      "env": {        "X402_KEYPAIR_PATH": "",        "X402_ALLOWED_DOMAINS": "",        "X402_TRUSTED_PAY_TO": "",        "X402_ALLOWED_ASSETS": "",        "X402_MAX_USD": "",        "X402_MAX_USD_PER_DAY": "",        "X402_MAX_PAYMENTS_PER_DAY": "",        "X402_MAX_USD_PER_RECIPIENT_PER_DAY": "",        "X402_MAX_PREQ_ATOMIC": "",        "X402_MAX_PREQ_PER_DAY_ATOMIC": "",        "X402_MAX_PREQ_PER_RECIPIENT_PER_DAY_ATOMIC": "",        "X402_CONFIRM_ABOVE_USD": "",        "X402_CONFIRM_ABOVE_PREQ_ATOMIC": "",        "X402_REQUIRE_LOCK": "",        "X402_REQUIRE_LOCK_ABOVE_USD": "",        "X402_MIN_LOCK_DAYS": "",        "X402_MIN_LOCK_PREQ_ATOMIC": "",        "X402_MIN_LOCK_USDC_ATOMIC": "",        "X402_MIN_LOCK_SOL_ATOMIC": "",        "X402_BOND_SELLERS": "",        "X402_BOND_MAX_USD": "",        "X402_BOND_MIN_SELLER_BOND_BPS": "",        "X402_BOND_MAX_DAYS": "",        "X402_BOND_CONFIRM_ABOVE_USD": "",        "X402_BOND_MAX_PREQ_ATOMIC": "",        "X402_BOND_CONFIRM_ABOVE_PREQ_ATOMIC": "",        "X402_BOND_DIRECTORY_URL": "",        "X402_BOND_V2_ALLOW_SHARE": "",        "X402_BOND_V2_ARBITERS": "",        "X402_MCP_TASKS": "",        "X402_NETWORK": "",        "X402_RPC_URL": "YOUR_X402_RPC_URL",        "X402_PAY_WITH": "",        "X402_PREQ_MINT": "",        "X402_ALLOWED_NETWORKS": "",        "X402_PREFER_NETWORK": "",        "X402_EVM_KEY_PATH": "",        "X402_HISTORY_PATH": "",        "X402_BOND_PREFER": "",        "X402_UNBONDED_CONFIRM_ABOVE_USD": "",        "X402_ATTESTATION_SIGNERS": "",        "X402_ATTESTATION_REQUIRED": "",        "X402_PAUSE_AFTER_REFUSALS": "",        "X402_PAYMENT_ID": ""      }    }  }}

Environment variables

NameRequiredNotes
X402_KEYPAIR_PATHOptionalPath to the payment wallet key file (Solana CLI JSON). Without it nothing is paid.
X402_ALLOWED_DOMAINSOptionalAllowed domains, comma-separated. Empty: every payment refused.
X402_TRUSTED_PAY_TOOptionalTrusted recipient addresses, comma-separated. Empty: every payment refused.
X402_ALLOWED_ASSETSOptionalUSDC (default) or USDC,PREQ. A402 (v1) is deprecated.
X402_MAX_USDOptionalMax USDC per payment in USD (default 0.05)
X402_MAX_USD_PER_DAYOptionalMax USDC per UTC day in USD (default 1)
X402_MAX_PAYMENTS_PER_DAYOptionalMax payments per UTC day (default 20)
X402_MAX_USD_PER_RECIPIENT_PER_DAYOptionalMax USDC per recipient per UTC day in USD (default off)
X402_MAX_PREQ_ATOMICOptionalMax PREQ per payment, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused.
X402_MAX_PREQ_PER_DAY_ATOMICOptionalMax PREQ per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused.
X402_MAX_PREQ_PER_RECIPIENT_PER_DAY_ATOMICOptionalMax PREQ per recipient per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Default off.
X402_CONFIRM_ABOVE_USDOptionalAsk a human at or above this USDC amount (USD). Default off.
X402_CONFIRM_ABOVE_PREQ_ATOMICOptionalAsk a human at or above this PREQ amount (PREQ smallest units). Default off.
X402_REQUIRE_LOCKOptionalyes = pay only sellers whose registered on-chain lock meets the minimums (default off)
X402_REQUIRE_LOCK_ABOVE_USDOptionalRequire a seller lock only for USDC payments at or above this amount (USD)
X402_MIN_LOCK_DAYSOptionalThe minimum must still be locked this many days from now (default 90)
X402_MIN_LOCK_PREQ_ATOMICOptionalMinimum PREQ locked by the seller, PREQ smallest units (1 PREQ = 1,000,000)
X402_MIN_LOCK_USDC_ATOMICOptionalMinimum USDC locked by the seller, USDC smallest units (1 USDC = 1,000,000)
X402_MIN_LOCK_SOL_ATOMICOptionalMinimum wrapped SOL locked by the seller, lamports (1 SOL = 1,000,000,000)
X402_BOND_SELLERSOptionalAgent402 Bond: seller addresses you may open deals with, comma-separated. Empty: bond_open refused.
X402_BOND_MAX_USDOptionalAgent402 Bond: max price per deal (USD). Unset: bond_open refused.
X402_BOND_MIN_SELLER_BOND_BPSOptionalAgent402 Bond: minimum seller bond as a share of the price, basis points (default 500 = 5%).
X402_BOND_MAX_DAYSOptionalAgent402 Bond: max days from now to the delivery deadline (default 30).
X402_BOND_CONFIRM_ABOVE_USDOptionalAgent402 Bond: ask a human at or above this amount in USD (default 0 = always ask).
X402_BOND_MAX_PREQ_ATOMICOptionalAgent402 Bond: max PREQ price per deal, PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ deals refused.
X402_BOND_CONFIRM_ABOVE_PREQ_ATOMICOptionalAgent402 Bond: ask a human at or above this PREQ amount, smallest units (default 0 = always ask).
X402_BOND_DIRECTORY_URLOptionalAgent402 Bond: seller directory for bond_find_sellers (https). Default: the toolkit list. off = tool off.
X402_BOND_V2_ALLOW_SHAREOptionalAgent402 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_ARBITERSOptionalAgent402 Bond v2: arbiter addresses you accept, comma-separated. Default: deals with an arbiter refused.
X402_MCP_TASKSOptionalon = add bond_v2_wait_result as an MCP task (experimental, read-only). Default off.
X402_NETWORKOptionalmainnet or devnet
X402_RPC_URLSecretOptionalSolana RPC URL used to build payment transactions
X402_PAY_WITHOptionalPreferred asset: USDC or PREQ
X402_PREQ_MINTOptionalPREQ mint override (only needed before the PREQ mint is built into this version, or for devnet rehearsal)
X402_ALLOWED_NETWORKSOptionalNetworks payments may use: solana (default) or solana,base. Base (EVM) per-request payments are off by default
X402_PREFER_NETWORKOptionalNetwork to use when an option passes on both: solana (default) or base
X402_EVM_KEY_PATHOptionalBase wallet key file (one line, 0x private key). Without it every Base payment is refused
X402_HISTORY_PATHOptionalLocal payment log (JSONL). Daily limits are counted from this file.
X402_BOND_PREFEROptionalSet 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_USDOptionalWith 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_SIGNERSOptionalComma-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_REQUIREDOptionalWith X402_ATTESTATION_SIGNERS set: on refuses a payment that has no valid attestation. Default off.
X402_PAUSE_AFTER_REFUSALSOptionalAfter 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_IDOptionalSet to on to send an x402 payment-identifier with a Solana payment when the seller's 402 declares that extension. Default off.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

MCP server that lets an AI agent pay x402 APIs (USDC, PREQ) from the user's own wallet on the user's machine, within limits and allowlists. With no configuration, every payment is refused.

Frequently asked questions

What is a402-pay-mcp MCP Server?

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

How do I install a402-pay-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. a402-pay-mcp MCP Server runs locally from the npm package @agent402-dev/pay-mcp with the command npx -y @agent402-dev/pay-mcp@0.17.0.

Is a402-pay-mcp MCP Server free and open source?

Yes. a402-pay-mcp MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does a402-pay-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for a402-pay-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is a402-pay-mcp MCP Server's trust score calculated?

a402-pay-mcp MCP Server scores 49 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server