x402-market

MCP

by AsaiShota · v0.2.0-alpha.1

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

mcplocal

MCP configuration

stdio

Command

npx -y @x402-market/mcp-server@0.2.0-alpha.1

Environment

  • 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.

Install in one click with Zurek

Browse here, install from the native macOS app — pick targets, fill env vars, and write configs safely.