AgentPay402 MCP
by github.com/kato9292929 · v0.4.0 · updated Nov 20, 2026
Pay for x402 APIs safely with your own wallet: Seller Probe check, on-chain proof, receipt refetch.
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
WALLET_PROVIDERrequiredWallet that pays: cdp, privy or crossmint; none runs only the discovery and checking tools.
CDP_API_KEY_IDsecretCDP API key ID (WALLET_PROVIDER=cdp).
CDP_API_KEY_SECRETsecretCDP API key secret (WALLET_PROVIDER=cdp).
CDP_WALLET_SECRETsecretCDP wallet secret (WALLET_PROVIDER=cdp).
PRIVY_APP_IDsecretPrivy app ID (WALLET_PROVIDER=privy).
PRIVY_APP_SECRETsecretPrivy app secret (WALLET_PROVIDER=privy).
PRIVY_WALLET_IDsecretPrivy Ethereum server wallet ID that pays on Base (WALLET_PROVIDER=privy).
CROSSMINT_SERVER_API_KEYsecretCrossmint server-side API key (WALLET_PROVIDER=crossmint).
CROSSMINT_SIGNER_SECRETsecretCrossmint server signer secret (WALLET_PROVIDER=crossmint).
CROSSMINT_WALLET_ADDRESSsecretCrossmint smart wallet address (WALLET_PROVIDER=crossmint).
NVM_API_KEYsecretOptional Nevermined API key for nvm:erc4337 credit plans (sandbox: with testnet, live: with mainnet).
X402_NETWORKtestnet (Base Sepolia, Solana Devnet) or mainnet (real USDC on Base and Solana).
X402_PER_CALL_MAX_USDLargest single payment in USD; anything above it is refused before signing.
X402_PER_SESSION_MAX_USDTotal USD that may be paid while the server runs.
X402_ALLOWED_HOSTSComma-separated hosts that may be paid; empty allows every host.
X402_PROBE_MODEWhen Seller Probe recorded the host as paid but not delivered: block, warn or off.
X402_PRICE_MISMATCHWhen the 402 price differs from the Bazaar listing: block, warn or off.
X402_RETRY_WITH_RECEIPTRefetch once with the same payment from Delivery Receipt sellers after a failed delivery.
X402_REPORT_TO_PROBESend an anonymous not_delivered report to Seller Probe.
More MCP servers
Track
github.com/katrinalaszlo
Read which AI agents call your API, which paths convert, and which journeys pay.
알뜰리 (alttelly)
github.com/kattpish
Korean cashback app 알뜰리: partner stores, member cashback rates and how to earn. Read-only.
CAM — Product Viability Standard
github.com/kau17033
For items sold but no profit left — 「売れたのに残らない」 — verdicts counting all six cost items.
gleanyard (read-only)
github.com/kausalflow
Search gleanyard source recipes and read public gleanyard projects' records and health.
APEX PSI
github.com/kawal393
Append-only evidence receipts for AI records: seal, verify, cite, chain-check, anchor status.
Studycards
github.com/kayalie
Flashcards for Claude: create, edit and study StudyCards decks with FSRS spaced repetition.