L402 + x402 client MCP. AI agents discover, pay for, and consume any payment-gated API autonomously. Supports Lightning (NWC), Cashu ecash, stablecoins, and human-in-the-loop payments.
Install from
M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.
process.env. You'll be asked to provide them before it can run.ALLOW_INSECURE_TLSBIND_ADDRESSCASHU_TOKENS— Path to Cashu token store fileCORS_ORIGINCREDENTIAL_STORE— ~/.402-mcp/credentials.json Persistent macaroon/credential storageFETCH_MAX_RESPONSE_BYTESFETCH_MAX_RETRIESFETCH_TIMEOUT_MSHNS_GATEWAY_URL— HTTP gateway for Handshake (.hns) domains (e.g. https://hns.to)HUMAN_PAY_POLL_SHUMAN_PAY_TIMEOUT_SMAX_AUTO_PAY_SATS— 1000 Safety cap; payments above this require human confirmationMAX_SPEND_PER_MINUTE_SATSNWC_URI— Nostr Wallet Connect URI for autonomous Lightning paymentsPORT— 3402 HTTP server port (when TRANSPORT=http)SOCKS_PROXY— Generic SOCKS5 proxy for all requests when setSSRF_ALLOW_PRIVATETOR_PROXY— SOCKS5 proxy for .onion addresses (e.g. socks5h://127.0.0.1:9050)TRANSPORT— stdio Transport mode: stdio or httpTRANSPORT_PREFERENCE— onion,hns,https,http Preferred transport order for multi-URL services (comma-separated)[](https://m8ven.ai/mcp/forgesworn-402-mcp-wlfpmx)