io.github.nirholas
x402-mcp
x402 Wallet
Self-custodial x402 wallet for AI agents: discover, inspect, and pay any x402 service in USDC.
stdioofficialinfra
Package Details
@three-ws/x402-mcp
Transportstdio
Runtimenpx
Environment Variables
SOLANA_SECRET_KEY(str)
Secret
Base58 (or JSON byte-array) Solana secret key that signs payments and holds the USDC. Not needed for the read tools (find_services, inspect_endpoint, or x402_wallet with an explicit address). Treat like cash.
SOLANA_RPC_URL(str)
Default:
https://api.mainnet-beta.solana.comSolana mainnet RPC endpoint. Defaults to the public cluster — bring your own (Helius / QuickNode / Triton) for production traffic.
MAX_PAY_USD(num)
Default:
1Max USD a single pay_and_call may spend. Bounds a runaway or injected payment.
REQUIRE_CONFIRM(bool)
Default:
trueWhen on (default), pay_and_call refuses until re-issued with confirm:true. Set 0/false to disable the gate.
THREE_WS_BASE(str)
Default:
https://three.wsBase URL of the three.ws API that serves /api/bazaar/search for find_services. Override only when self-hosting.