Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

a402-pay-mcp

MCP server by agent402-dev Community

Pay x402 APIs in USDC from your own wallet on Solana or Base, within limits you set.

  • Score 84
  • 0 stars
  • 2k a week
  • Apache-2.0
  • Updated

Install a402-pay-mcp

Built from the published package, never by AI.

claude mcp add a402-pay-mcp -- npx -y @agent402-dev/pay-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install a402-pay-mcp in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the a402-pay-mcp block.

What you need

SettingNeededWhat it is
X402_KEYPAIR_PATHEnvironment variableOptionalPath to the payment wallet key file (Solana CLI JSON). Without it nothing is paid.
X402_ALLOWED_DOMAINSEnvironment variableOptionalAllowed domains, comma-separated. Empty: every payment refused.
X402_TRUSTED_PAY_TOEnvironment variableOptionalTrusted recipient addresses, comma-separated. Empty: every payment refused.
X402_ALLOWED_ASSETSEnvironment variableOptionalUSDC (default) or USDC,PREQ. A402 (v1) is deprecated.
X402_MAX_USDEnvironment variableOptionalMax USDC per payment in USD (default 0.05)
X402_MAX_USD_PER_DAYEnvironment variableOptionalMax USDC per UTC day in USD (default 1)
X402_MAX_PAYMENTS_PER_DAYEnvironment variableOptionalMax payments per UTC day (default 20)
X402_MAX_USD_PER_RECIPIENT_PER_DAYEnvironment variableOptionalMax USDC per recipient per UTC day in USD (default off)
X402_MAX_PREQ_ATOMICEnvironment variableOptionalMax PREQ per payment, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused.
X402_MAX_PREQ_PER_DAY_ATOMICEnvironment variableOptionalMax PREQ per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Not set: PREQ refused.
X402_MAX_PREQ_PER_RECIPIENT_PER_DAY_ATOMICEnvironment variableOptionalMax PREQ per recipient per UTC day, in PREQ smallest units (1 PREQ = 1,000,000). Default off.
X402_CONFIRM_ABOVE_USDEnvironment variableOptionalAsk a human at or above this USDC amount (USD). Default off.
X402_CONFIRM_ABOVE_PREQ_ATOMICEnvironment variableOptionalAsk a human at or above this PREQ amount (PREQ smallest units). Default off.
X402_REQUIRE_LOCKEnvironment variableOptionalyes = pay only sellers whose registered on-chain lock meets the minimums (default off)
X402_REQUIRE_LOCK_ABOVE_USDEnvironment variableOptionalRequire a seller lock only for USDC payments at or above this amount (USD)
X402_MIN_LOCK_DAYSEnvironment variableOptionalThe minimum must still be locked this many days from now (default 90)
X402_MIN_LOCK_PREQ_ATOMICEnvironment variableOptionalMinimum PREQ locked by the seller, PREQ smallest units (1 PREQ = 1,000,000)
X402_MIN_LOCK_USDC_ATOMICEnvironment variableOptionalMinimum USDC locked by the seller, USDC smallest units (1 USDC = 1,000,000)
X402_MIN_LOCK_SOL_ATOMICEnvironment variableOptionalMinimum wrapped SOL locked by the seller, lamports (1 SOL = 1,000,000,000)
X402_BOND_SELLERSEnvironment variableOptionalAgent402 Bond: seller addresses you may open deals with, comma-separated. Empty: bond_open refused.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Alternatives to a402-pay-mcp

All alternatives →
mcp stripe
96

Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.

AAA Remote 2.1k
TradingMCPatilaahmettaner
94

Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.

AAA Remote 5.4k
CCXTccxt
94

CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.

AAA Local 45k
Finance ToolkitJerBouma
94

Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.

AAA Local and remote 5.6k
Vapi Network MCP vAPI-Network
94

Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.

AAA Local 6.2k
Finance DatabaseJerBouma
94

Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.

AAA Local and remote 9.7k

Compare with mcp, TradingMCP or CCXT

a402-pay-mcp: common questions

How do I install a402-pay-mcp?

In Claude Code run claude mcp add a402-pay-mcp -- npx -y @agent402-dev/pay-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is a402-pay-mcp the official server?

a402-pay-mcp is a community project by agent402-dev, not verified by a company domain.

Is a402-pay-mcp free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is a402-pay-mcp safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality C. The security check has not run for it yet. Review the code before you install. How grades work.

What are alternatives to a402-pay-mcp?

Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.

Does a402-pay-mcp work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

a402-pay-mcp Install

Add to stack

Loading.