x402-bridge
x402 Universal Payer
Pay any x402 endpoint on the open web: auto-paying bridge with Bazaar discovery and spend caps.
Package Details
@three-ws/mcp-bridge
Environment Variables
0x-prefixed 32-byte hex private key that funds USDC payments on EVM chains (Base, Arbitrum, …). At least one of the EVM/SVM keys is required. Treat like cash — use a dedicated low-balance wallet.
Solana secret key that funds USDC payments: base58 64-byte secret key (Phantom / solana-keygen format) or a JSON array of 64 integers. At least one of the EVM/SVM keys is required. Treat like cash.
100000Per-call spending cap in atomic units (USDC has 6 decimals). Payments above this abort with a clear reason.
1000000Cumulative session spending ceiling in atomic units. Once total spend would exceed it, further payments abort until restart.
Comma-separated payee allowlist. When set, any payment whose payTo address is not listed is refused.
Comma-separated hostname allowlist for outbound paid requests. When set, any other host is refused before a request is signed.
0Set to 1 to allow http:// targets (local development only). https is enforced otherwise.
20Max number of x402 Bazaar resources to register as dynamic tools at startup. Set 0 to disable discovery.
https://api.cdp.coinbase.com/platform/v2/x402/discovery/resourcesx402 Bazaar discovery endpoint. Override to point at a self-hosted or alternative bazaar.
5How many request-amounts to deposit at once when opening an EVM batch-settlement channel.
5000000Hard cap in atomic units on a single batch-settlement channel deposit or top-up.
~/.x402-mcp-bridge/channelsDirectory for persisted batch-settlement channel state (survives client restarts).
Per-chain RPC override, one variable per chain id (RPC_URL_<chainId>, e.g. RPC_URL_8453 for Base). Defaults to viem's public RPC for that chain.