MCP directory
X

x402-market

by github.com/AsaiShota · v0.2.0-alpha.1 · updated May 2, 2026

Let AI agents pay-per-call for any HTTP API via x402 on Base mainnet. One tool: pay_and_call.

npm

Run it locally

Install the package and point your AI client at it.

npm

npx -y @x402-market/[email protected]

Environment variables

  • MARKET_API_URL

    Marketplace API base URL.

  • MCP_BUYER_PRIVATE_KEYsecret

    Funded buyer wallet private key (0x-prefixed). Required for pay_and_call; read-only tools work without it.

  • BASE_RPC_URL

    Base RPC endpoint. Defaults to Base mainnet public RPC; Alchemy/QuickNode recommended for higher rate limits.

  • BASE_CHAIN_ID

    8453 = Base mainnet (default, matches live listings). 84532 = Base Sepolia testnet.

  • MCP_MAX_PRICE

    Hard cap on per-call cost (USDC). Refuses to pay above this.

More MCP servers