x402-market

io.github.AsaiShota/mcp-server

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@x402-market/mcp-server@0.2.0-alpha.1"
      ],
      "env": {
        "MARKET_API_URL": "https://x402-market-api.lien-studio-akiyama.workers.dev",
        "MCP_BUYER_PRIVATE_KEY": "<your MCP_BUYER_PRIVATE_KEY>",
        "BASE_RPC_URL": "https://mainnet.base.org",
        "BASE_CHAIN_ID": "8453",
        "MCP_MAX_PRICE": "1.0"
      }
    }
  }
}
Environment variables
  • MARKET_API_URLMarketplace API base URL.
  • MCP_BUYER_PRIVATE_KEYsecretFunded buyer wallet private key (0x-prefixed). Required for pay_and_call; read-only tools work without it.
  • BASE_RPC_URLBase RPC endpoint. Defaults to Base mainnet public RPC; Alchemy/QuickNode recommended for higher rate limits.
  • BASE_CHAIN_ID8453 = Base mainnet (default, matches live listings). 84532 = Base Sepolia testnet.
  • MCP_MAX_PRICEHard cap on per-call cost (USDC). Refuses to pay above this.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
0.2.0-alpha.1
Registry
active
Published
5/2/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that x402-market is listed here — it’s also the link we check for a free listing.

x402-market — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-asaishota-mcp-server?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="x402-market — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![x402-market — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-asaishota-mcp-server?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.