Pay x402 APIs on Solana (USDC, A402) from your own wallet within your limits. Refuses by default.
Maintain this server? Claim it
This server only runs locally, from a package. Install it with the instructions on this page to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add a402-pay-mcp \ -- npx -y @agent402-dev/[email protected]
Environment
X402_KEYPAIR_PATH (optional, not in the config above): Path to the payment wallet key file (Solana CLI JSON). Without it nothing is paid.X402_ALLOWED_DOMAINS (optional, not in the config above): Allowed domains, comma-separated. Empty: every payment refused.X402_TRUSTED_PAY_TO (optional, not in the config above): Trusted recipient addresses, comma-separated. Empty: every payment refused.X402_ALLOWED_ASSETS (optional, not in the config above): USDC (default) or USDC,A402X402_MAX_USD (optional, not in the config above): Max USDC per payment in USD (default 0.05)X402_MAX_USD_PER_DAY (optional, not in the config above): Max USDC per UTC day in USD (default 1)X402_MAX_PAYMENTS_PER_DAY (optional, not in the config above): Max payments per UTC day (default 20)X402_MAX_A402_ATOMIC (optional, not in the config above): Max A402 per payment, in A402 smallest units (1 A402 = 1,000,000). Not set: A402 refused.X402_MAX_A402_PER_DAY_ATOMIC (optional, not in the config above): Max A402 per UTC day, in A402 smallest units (1 A402 = 1,000,000). Not set: A402 refused.X402_CONFIRM_ABOVE_USD (optional, not in the config above): Ask a human at or above this USDC amount (USD). Default off.X402_CONFIRM_ABOVE_A402_ATOMIC (optional, not in the config above): Ask a human at or above this A402 amount (A402 smallest units). Default off.X402_NETWORK (optional, not in the config above): mainnet or devnetX402_RPC_URL (optional, not in the config above): Solana RPC URL used to build payment transactionsX402_PAY_WITH (optional, not in the config above): Preferred asset: USDC or A402X402_HISTORY_PATH (optional, not in the config above): Local payment log (JSONL). Daily limits are counted from this file.We don't run packages, so we can't list this server's tools.
Runs on your machine from a package. We don't run packages, so it isn't checked.
How we check