MCP directory

x402 Wallet

by github.com/nirholas · v0.2.3 · updated Oct 10, 2026

Self-custodial x402 wallet for AI agents: pay any service in USDC or $THREE from your own key.

npm

Run it locally

Install the package and point your AI client at it.

npm

npx -y @three-ws/[email protected]

Environment variables

  • SOLANA_SECRET_KEYsecret

    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

    Solana mainnet RPC endpoint. Defaults to the public cluster — bring your own (Helius / Quicknode / Triton) for production traffic.

  • MAX_PAY_USD

    Max USD a single pay_and_call may spend. Bounds a runaway or injected payment.

  • REQUIRE_CONFIRM

    When on (default), pay_and_call refuses until re-issued with confirm:true. Set 0/false to disable the gate.

  • THREE_WS_BASE

    Base URL of the three.ws API that serves /api/bazaar/search for find_services. Override only when self-hosting.

More from github.com/nirholas

More MCP servers