x402-market

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

stdiocommunityinfra

Package Details

@x402-market/mcp-server

Transportstdio

Environment Variables

MARKET_API_URL
Default:https://x402-market-api.lien-studio-akiyama.workers.dev

Marketplace API base URL.

MCP_BUYER_PRIVATE_KEY
Secret

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

BASE_RPC_URL
Default:https://mainnet.base.org

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

BASE_CHAIN_ID(num)
Default:8453

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

MCP_MAX_PRICE
Default:1.0

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