Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@agent402-dev/pay-mcp

Latest version: v0.14.1

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: agent402-dev
0 Stars
0 Forks
19 Versions
1.6K Downloads
TypeScript Repo language

Scan summary

@agent402-dev/pay-mcp was last scanned on 25 Nov 2026 at version 0.14.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 19 versions; the latest 5 were published on 25 Nov 2026.
  • Findings: No rules fired in version 0.14.1.
  • Downloads: 1,612 downloads.

Versions

19 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.14.1 LATEST 25 Nov 2026 No rules fired
0.14.0 25 Nov 2026 No rules fired
0.13.0 25 Nov 2026 No rules fired
0.12.2 25 Nov 2026 Not shown
0.12.1 25 Nov 2026 Not shown

No rules fired in 0.14.1

Findings

Findings for v0.14.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.14.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@agent402-dev/pay-mcp

A402 (v1) is deprecated. The token payment option is now PREQ (mint aTbGw3gU5JyJkAdXLj8rYZ3mCXkPbyHjtTAyCX3jQLX). Official addresses: https://claude.ai/artifact/S6UafAfViJk3DJeMsDMAja

MCP server (stdio) that lets an AI agent call x402 paid APIs on Solana and pay in USDC (or, if you allow it, PREQ) from your own wallet on your machine, only within the rules you set.

Part of the Agent402 toolkit (Solana). Not related to agent402.tools, @agents402 or other similarly named sites, accounts or projects, including projects named "a402" on other chains.

It pays only what you allow and gives no opinion on any API or token. Not investment advice.

Rules checked before signing

Nothing is signed unless every rule passes. With no configuration, every payment is refused.

Rule Variable Default
Allowed domains (host or host:port; https only, http only for localhost) X402_ALLOWED_DOMAINS empty → refuse all
Trusted recipients (payTo addresses) X402_TRUSTED_PAY_TO empty → refuse all
Allowed assets X402_ALLOWED_ASSETS USDC (PREQ only if listed)
Max USDC per payment (USD) X402_MAX_USD 0.05
Max USDC per UTC day (USD) X402_MAX_USD_PER_DAY 1
Max payments per UTC day X402_MAX_PAYMENTS_PER_DAY 20
Max USDC per recipient per UTC day (USD) X402_MAX_USD_PER_RECIPIENT_PER_DAY off (only the overall daily cap)
Max PREQ per payment (PREQ smallest units; 1 PREQ = 1,000,000) X402_MAX_PREQ_ATOMIC not set → PREQ payments refused
Max PREQ per UTC day (PREQ smallest units; 1 PREQ = 1,000,000) X402_MAX_PREQ_PER_DAY_ATOMIC not set → PREQ payments refused
Max PREQ per recipient per UTC day (PREQ smallest units; 1 PREQ = 1,000,000) X402_MAX_PREQ_PER_RECIPIENT_PER_DAY_ATOMIC off (only the overall PREQ daily cap)
Ask a human at or above this USDC amount (USD) X402_CONFIRM_ABOVE_USD off
Ask a human at or above this PREQ amount (PREQ smallest units) X402_CONFIRM_ABOVE_PREQ_ATOMIC off
  • PREQ units. The PREQ variables take the smallest unit (PREQ has 6 decimals). Example: X402_MAX_PREQ_ATOMIC=200000000000 is 200,000 PREQ per payment. wallet_status and payment_history also show PREQ amounts in smallest units (…Atomic fields).
  • USD limits apply to USDC only. PREQ has its own two limits, and both must be set before any PREQ payment is made.
  • PREQ mint. Until the PREQ mainnet mint is filled into this package, listing PREQ in X402_ALLOWED_ASSETS stops the server at start with an error (you can set X402_PREQ_MINT yourself).
  • A402 (v1) is deprecated. It is never allowed by default. If you list A402 in X402_ALLOWED_ASSETS (with its own X402_MAX_A402_ATOMIC and X402_MAX_A402_PER_DAY_ATOMIC, in A402 smallest units; 1 A402 = 1,000,000), the server prints "A402 (v1) is deprecated and no longer supported; use PREQ." at start, and wallet_status, x402_quote and x402_fetch results carry the same warning.
  • Human confirmation uses MCP elicitation. If your MCP client cannot ask, the payment is not made (confirmation_required).
  • At most one signature per x402_fetch call. If the server answers 402 again after payment, it does not sign again.
  • Redirects are followed manually and each hop must be an allowed domain; a disallowed hop is not contacted.
  • Pass quoteId from x402_quote to x402_fetch to refuse if the amount, asset or recipient changed.
  • If the server sends a signed receipt (X-Agent402-Receipt, from @agent402-dev/pay-server), x402_fetch checks its signature and that it matches the request, the response body and the payment, reports receipt.verified, and keeps the receipt in the local log. A receipt shows which key signed it; whether that key belongs to the seller is for the seller to publish.
  • Daily totals count every payment this server signed, whatever the result.
  • Daily limits are counted from the local payment log file (X402_HISTORY_PATH). Deleting or moving that file resets the daily totals.
  • Per-recipient caps count payments to the same payTo address in the current UTC day, on top of the overall caps.
  • When today's usage reaches 80% of a daily cap (USDC, payment count or PREQ), x402_fetch results and wallet_status carry a near_daily_… warning. The payment itself is still decided by the caps.

Other settings: X402_KEYPAIR_PATH (wallet key file, Solana CLI JSON; without it nothing is paid), X402_NETWORK (mainnet | devnet), X402_RPC_URL, X402_PAY_WITH (USDC | PREQ), X402_HISTORY_PATH (default ~/.agent402/payments.jsonl).

Require a seller lock (optional)

For larger payments you can pay only sellers that have locked funds on-chain for a fixed time. A lock is a commitment signal: nobody can confiscate it, so it does not cover losses.

Rule Variable Default
Require a lock for every payment X402_REQUIRE_LOCK=yes off
Require a lock only for USDC payments at or above this amount (USD) X402_REQUIRE_LOCK_ABOVE_USD off
The minimum must still be locked this many days from now X402_MIN_LOCK_DAYS 90
Minimum PREQ locked (PREQ smallest units; 1 PREQ = 1,000,000) X402_MIN_LOCK_PREQ_ATOMIC not set
Minimum USDC locked (USDC smallest units; 1 USDC = 1,000,000) X402_MIN_LOCK_USDC_ATOMIC not set
Minimum SOL locked as wrapped SOL (smallest units, lamports; 1 SOL = 1,000,000,000) X402_MIN_LOCK_SOL_ATOMIC not set
  • Assets are treated the same way: the seller passes if any asset you set meets its minimum. Turning the requirement on without any minimum stops the server at start.
  • Before signing, pay-mcp reads https://<seller host>/.well-known/agent402.json (made with signRegistration from @agent402-dev/pay-server), checks the signatures, then reads each listed Jupiter Lock escrow on-chain (read-only, through X402_RPC_URL or the public RPC).
  • A lock counts only if nobody can cancel it or change its recipient, it was not cancelled, and its recipient key signed the seller's registration.
  • Results show the facts: each lock, how much is locked now and at the deadline, and why a lock did not count.

Try it first (no wallet)

With only X402_ALLOWED_DOMAINS set and no wallet, bond_find_sellers, x402_quote and wallet_status show live sellers, prices and your limits, and nothing can be paid. Steps: Try it in one minute.

Create a payment wallet

npx -y @agent402-dev/pay-mcp init

Creates a new key file at ~/.agent402/pay-wallet.json and prints its address, a Solana Pay link to fund it with USDC, how to back it up and the command to connect it. It never overwrites an existing file (--path <file> chooses another location, --network devnet uses devnet). The key is generated on your machine and is not sent anywhere. Payments need no SOL: the facilitator pays the network fee.

Connect

Step-by-step guide for agents that install servers themselves (for example Cline): llms-install.md.

Claude Code (example — set your own allowlists and limits):

claude mcp add a402-pay \
  -e X402_KEYPAIR_PATH=<path to a small, dedicated wallet key file> \
  -e X402_ALLOWED_DOMAINS=<api.example.com> \
  -e X402_TRUSTED_PAY_TO=<recipient address> \
  -- npx -y @agent402-dev/pay-mcp

Claude Desktop (claude_desktop_config.json):

{ "mcpServers": { "a402-pay": { "command": "npx", "args": ["-y", "@agent402-dev/pay-mcp"], "env": { "X402_KEYPAIR_PATH": "<key file>", "X402_ALLOWED_DOMAINS": "<api.example.com>", "X402_TRUSTED_PAY_TO": "<recipient address>" } } } }

Node 20+. Without X402_ALLOWED_DOMAINS and X402_TRUSTED_PAY_TO every payment is refused; without X402_KEYPAIR_PATH only x402_quote and wallet_status are useful.

Tools

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @agent402-dev/pay-mcp

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229