Payagent MCP logo

Payagent MCP

Pay x402 APIs in USDC on Base, Solana, and BNB Chain with spend mandates, receipts, idempotency.

Install Payagent MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "payagent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@arispay/payagent-mcp"
      ]
    }
  }
}

Settings β†’ Developer β†’ Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio payagent-mcp -- npx -y @arispay/payagent-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passedβ€” started and listed 8 tools correctly ().

Overview

Tools8

What Payagent MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.1k tokens of context

Security & health

What it can reach and how reliably it runs β€” from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 88d

What it can do

From the 8 tools this server returned when we ran it; 8 declare their own safety hints.

Can delete or modify data Β· 2Handles credentials Β· 3Makes network requests Β· 8Read-only tools Β· 6
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age199 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev Β· @arispay/payagent-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

npm downloads1.2kPackage downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed8Callable tools this server registers over MCP.

From the project README

@arispay/payagent-mcp

One coherent USDC payment product for AI agents: call x402-paid APIs, with spend mandates, receipts, and idempotency. Works with Claude Desktop, Cursor, Windsurf, or any MCP client. A thin wrapper around the payagent SDK.

Two ways to hold the wallet:

  • Local key (zero signup). Set PAYAGENT_PRIVATE_KEY to a funded EOA key. pay signs EIP-3009 locally β€” no ArisPay account, no email. The only guardrail is the wallet balance; use a dedicated low-balance wallet.
  • Delegated custody (managed, recommended). setup({ email }) self-provisions an account, a CDP-managed wallet, and a spend mandate in one call. ArisPay enforces per-transaction, daily, and monthly limits server-side before signing; no private key ever lives in this process.

Tools

Seven core tools (the default surface):

ToolWhat it doesMoney
setupCreate or recover an account + payer wallet in one call (delegated mode)moves none
discoverSearch the paid-API catalog by intent + budgetread-only
inspectRead a URL's price and payment requirements without payingread-only
payThe complete machine path: request β†’ 402 β†’ select variant β†’ validate policy β†’ pay β†’ structured receipt. Requires an idempotencyKey; a repeated key returns the cached receipt without paying againspends real money
balanceActive identity, deposit address, on-chain USDC balance, mandate limitsread-only
historyRecent payments β€” server feed (delegated) or local receipts (self-custody)read-only
check_payment_signalBuy ArisPay Signal: recent signed probe evidence about an x402 resource (did a real paid probe settle and deliver?). A still-valid cached artifact returns without spending; an unknown resource is answered freespends 1Β’ per uncached call

Wallet administration (create_agent, fund_agent, list_agents, rename_agent) loads only when the host config sets PAYAGENT_MCP_PROFILE=admin.

Every tool declares MCP safety annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); pay and check_payment_signal are the only destructive tools β€” both spend real money.

Support matrix

AssetNetworkLocal key (self-custody)Delegated (managed mandate)
USDCBase (default)βœ…βœ…
USDCEthereum, Polygonβœ…βœ…
USDCBase Sepolia (testnet)βœ…βœ…
USDC (SPL)Solana, Solana devnet❌ (EVM signing only)βœ… (live on api.arispay.app since 2026-08-25)
USD1BNB Chainβœ…βœ…

Notes:

  • All prices are quoted by sellers in the 402 challenge; pay prefers an EVM variant and falls back to Solana when the seller offers no EVM option.
  • Delegated mandates are integer cents, validated server-side before any signature exists. Local mode has no server-side cap.
  • Settlement is a single on-chain transferWithAuthorization (EIP-3009): it succeeds or reverts atomically. When the seller returns X-PAYMENT-RESPONSE, the receipt carries the settlement transaction hash.
  • ArisPay's own facilitator (facilitator.arispay.app) charges no facilitator fee; sellers may use any facilitator, and their fee/finality policy applies.

Setup

Add the server to your MCP client config. No environment variables are required β€” pick a wallet mode later, from inside the chat, or set one of the env options below.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "arispay": {
      "command": "npx",
      "args": ["-y", "@arispay/payagent-mcp"]
    }
  }
}

For the zero-signup mode, add the key to the env block:

json
      "env": { "PAYAGENT_PRIVATE_KEY": "0x..." }

Cursor

Same server block in .cursor/mcp.json. Windsurf: same pattern in ~/.codeium/windsurf/mcp_config.json.

Cold start, from nothing

  • Zero signup: generate a key with npx payagent wallet new, put it in the host config as PAYAGENT_PRIVATE_KEY, send USDC on Base to the printed address. balance shows the deposit address; pay pays.
  • Managed: ask the agent to run setup({ email: "you@example.com" }) β€” it returns the wallet address and mandate. Fund the wallet with USDC, confirm with balance, then pay. Credentials persist to ~/.payagent/config.json and are shared with the payagent CLI.

Environment variables (all optional)

VariableDescription
PAYAGENT_PRIVATE_KEYFunded EOA key for local self-custody signing (zero-signup mode).
ARISPAY_API_KEYDeveloper key β€” usually unneeded; setup self-provisions one.
ARISPAY_URLArisPay API base URL. Default https://api.arispay.app.
PAYAGENT_MCP_PROFILEadmin additionally loads the four wallet-administration tools. Default: core (seven tools).
ARISPAY_AGENT_KEY / PAYAGENT_WALLETLegacy single-agent pair for v2.0.x hosts.

Migrating from v3

v4 is a breaking release: the surface collapsed to one x402/USDC product.

v3 toolv4
create_usersetup
pay_apipay (now requires idempotencyKey, returns a structured receipt)
discover_paid_apidiscover
inspect_paid_apiinspect
check_wallet, get_balance_agentbalance
β€”history (new)
create_agent, fund_agent, list_agents, rename_agentunchanged, behind PAYAGENT_MCP_PROFILE=admin
create_wallet, list_wallets, fund_wallet, get_balance, pay_merchant, create_enduser, attach_card_for_user, set_user_limits, get_user_statusremoved β€” the fiat funding and platform (end-user) surfaces left the public MCP

Receipts and idempotency

pay requires a caller-chosen idempotencyKey (min 8 chars β€” use a UUID). Every completed payment writes a machine-readable receipt (amount, asset, network, wallet, settlement tx, remaining mandate) to ~/.payagent/mcp-receipts.json. Re-calling pay with a key that already paid returns the stored receipt and does not pay again β€” including when the paid request failed mid-flight. history lists receipts in self-custody mode; delegated mode reads the authoritative server feed.

How it works

  1. The agent calls pay with a URL and an idempotencyKey; the seller answers HTTP 402 with its price.
  2. With PAYAGENT_PRIVATE_KEY set, payagent signs the EIP-3009 authorization locally. Otherwise ArisPay validates the request against the agent's mandate and signs via Coinbase CDP.
  3. payagent retries with the signed payment header; the seller's facilitator settles USDC on-chain.
  4. The tool returns the paid response plus a structured receipt.

In delegated mode, no private key lives in this process and payments that breach the mandate are rejected before any on-chain action. In local mode, the key is yours and stays in your process.

Install

Terminal
npm install @arispay/payagent-mcp

Or invoke directly via npx @arispay/payagent-mcp from an MCP client config β€” no pre-install required. npx buyforme-mcp is the same server under the consumer brand.

Related

License

MIT

Reviews

No reviews yet β€” be the first to share how it worked for you.

Frequently Asked Questions about Payagent MCP

payagent-mcp is an MCP server that lets AI agents call x402-paid APIs and pay for them with supported tokens and networks, while providing spend mandates, structured receipts, and idempotency. It offers setup, discovery, inspection, balance, history, and payment tools through MCP clients, and wraps the payagent SDK.

Add @arispay/payagent-mcp as an npx MCP server with the command "npx" and argument "-y @arispay/payagent-mcp". This configuration works with Claude Desktop, Cursor, Windsurf, and other MCP clients, and requires no environment variables initially.

payagent-mcp supports local-key self-custody and delegated managed custody. Local mode uses PAYAGENT_PRIVATE_KEY to sign payments from a funded EOA without signup, while delegated mode uses setup({ email }) to provision an account, CDP-managed wallet, and server-enforced spend mandate without storing a private key in the process.

Only pay and check_payment_signal spend real money. pay completes an x402 payment and requires an idempotencyKey, while check_payment_signal costs 1Β’ per uncached call; cached valid evidence and unknown resources do not require a paid probe.

pay prevents duplicate charges by requiring an idempotencyKey and returning the cached receipt when the same key is repeated. A successful payment receipt can include the settlement transaction hash when the seller returns X-PAYMENT-RESPONSE.

Related MCP servers

Add a badge to your READMEShow it’s listed β€” live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPayagent MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/payagent-mcp?style=directory)](https://allmcps.com/mcp/payagent-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/payagent-mcp"><img src="https://allmcps.com/api/badge/payagent-mcp?style=directory" alt="Payagent MCP on AllMCPs" /></a>