Skip to content
Claude Code

x402 Universal Payer for Claude Code

io.github.nirholas/x402-bridge

Pay any x402 endpoint on the open web: auto-paying bridge with Bazaar discovery and spend caps.

client:Claude Code transport:stdio runtime:npm

Install x402 Universal Payer in Claude Code

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add x402-bridge -e MCP_BRIDGE_EVM_PRIVATE_KEY=<MCP_BRIDGE_EVM_PRIVATE_KEY> -e MCP_BRIDGE_SVM_PRIVATE_KEY=<MCP_BRIDGE_SVM_PRIVATE_KEY> -e MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC=<MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC> -e MCP_BRIDGE_MAX_TOTAL_ATOMIC=<MCP_BRIDGE_MAX_TOTAL_ATOMIC> -e MCP_BRIDGE_ALLOWED_PAYTO=<MCP_BRIDGE_ALLOWED_PAYTO> -e MCP_BRIDGE_ALLOWED_HOSTS=<MCP_BRIDGE_ALLOWED_HOSTS> -e MCP_BRIDGE_ALLOW_HTTP=<MCP_BRIDGE_ALLOW_HTTP> -e MCP_BRIDGE_DISCOVER_LIMIT=<MCP_BRIDGE_DISCOVER_LIMIT> -e MCP_BRIDGE_BAZAAR_URL=<MCP_BRIDGE_BAZAAR_URL> -e MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER=<MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER> -e MCP_BRIDGE_MAX_DEPOSIT_ATOMIC=<MCP_BRIDGE_MAX_DEPOSIT_ATOMIC> -e X402_MCP_BRIDGE_CHANNELS_DIR=<X402_MCP_BRIDGE_CHANNELS_DIR> -e RPC_URL_8453=<RPC_URL_8453> -- npx -y @three-ws/mcp-bridge

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

x402 Universal Payer in other clients