Package

x402 Universal Payer

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

io.github.nirholas/x402-bridgeSource repository
Version1.0.2latest catalog version
ConnectionPackagenpm
PublishedAug 19, 2026catalog
UpdatedAug 19, 2026catalog
Overview

What this server provides

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

Install

Packages

1
Package 1npm
@three-ws/mcp-bridge1.0.2
  • MCP_BRIDGE_EVM_PRIVATE_KEY

    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.

    Format: string
    Optional
  • MCP_BRIDGE_SVM_PRIVATE_KEY

    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.

    Format: string
    Optional
  • MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC

    Per-call spending cap in atomic units (USDC has 6 decimals). Payments above this abort with a clear reason.

    Format: number · Default: 100000
    Optional
  • MCP_BRIDGE_MAX_TOTAL_ATOMIC

    Cumulative session spending ceiling in atomic units. Once total spend would exceed it, further payments abort until restart.

    Format: number · Default: 1000000
    Optional
  • MCP_BRIDGE_ALLOWED_PAYTO

    Comma-separated payee allowlist. When set, any payment whose payTo address is not listed is refused.

    Format: string
    Optional
  • MCP_BRIDGE_ALLOWED_HOSTS

    Comma-separated hostname allowlist for outbound paid requests. When set, any other host is refused before a request is signed.

    Format: string
    Optional
  • MCP_BRIDGE_ALLOW_HTTP

    Set to 1 to allow http:// targets (local development only). https is enforced otherwise.

    Format: boolean · Default: 0
    Optional
  • MCP_BRIDGE_DISCOVER_LIMIT

    Max number of x402 Bazaar resources to register as dynamic tools at startup. Set 0 to disable discovery.

    Format: number · Default: 20
    Optional
  • MCP_BRIDGE_BAZAAR_URL

    x402 Bazaar discovery endpoint. Override to point at a self-hosted or alternative bazaar.

    Format: string · Default: https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources
    Optional
  • MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER

    How many request-amounts to deposit at once when opening an EVM batch-settlement channel.

    Format: number · Default: 5
    Optional
  • MCP_BRIDGE_MAX_DEPOSIT_ATOMIC

    Hard cap in atomic units on a single batch-settlement channel deposit or top-up.

    Format: number · Default: 5000000
    Optional
  • X402_MCP_BRIDGE_CHANNELS_DIR

    Directory for persisted batch-settlement channel state (survives client restarts).

    Format: string · Default: ~/.x402-mcp-bridge/channels
    Optional
  • RPC_URL_8453

    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.

    Format: string
    Optional
View server metadata