Skip to main content

x402-market

io.github.AsaiShota/mcp-server

v0.2.0-alpha.1Updated May 2, 2026stdio · npm

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add mcp-server -e MARKET_API_URL=https://x402-market-api.lien-studio-akiyama.workers.dev -e BASE_RPC_URL=https://mainnet.base.org -e BASE_CHAIN_ID=8453 -e MCP_MAX_PRICE=1.0 -- npx -y @x402-market/[email protected]

Configuration

5 settings.

  • MCP_BUYER_PRIVATE_KEY
    Env var· optional· secret
    Funded buyer wallet private key (0x-prefixed). Required for pay_and_call; read-only tools work without it.
  • MARKET_API_URL
    Env var· optional
    Marketplace API base URL.Default: https://x402-market-api.lien-studio-akiyama.workers.dev
  • BASE_RPC_URL
    Env var· optional
    Base RPC endpoint. Defaults to Base mainnet public RPC; Alchemy/QuickNode recommended for higher rate limits.Default: https://mainnet.base.org
  • BASE_CHAIN_ID
    Env var· optional
    8453 = Base mainnet (default, matches live listings). 84532 = Base Sepolia testnet.Default: 8453
  • MCP_MAX_PRICE
    Env var· optional
    Hard cap on per-call cost (USDC). Refuses to pay above this.Default: 1.0

Listed in the official MCP Registry since May 2, 2026. Mirrored daily; last checked Nov 26, 2026.