PluginBench
MCP Server

x402-market MCP Server

io.github.AsaiShota/mcp-server

What is the x402-market MCP server?

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

How to install x402-market

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • MARKET_API_URL

    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

    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.

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@x402-market/mcp-server"
      ],
      "env": {
        "MARKET_API_URL": "<YOUR_MARKET_API_URL>",
        "MCP_BUYER_PRIVATE_KEY": "<YOUR_MCP_BUYER_PRIVATE_KEY>",
        "BASE_RPC_URL": "<YOUR_BASE_RPC_URL>",
        "BASE_CHAIN_ID": "<YOUR_BASE_CHAIN_ID>",
        "MCP_MAX_PRICE": "<YOUR_MCP_MAX_PRICE>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@x402-market/mcp-server"
      ],
      "env": {
        "MARKET_API_URL": "<YOUR_MARKET_API_URL>",
        "MCP_BUYER_PRIVATE_KEY": "<YOUR_MCP_BUYER_PRIVATE_KEY>",
        "BASE_RPC_URL": "<YOUR_BASE_RPC_URL>",
        "BASE_CHAIN_ID": "<YOUR_BASE_CHAIN_ID>",
        "MCP_MAX_PRICE": "<YOUR_MCP_MAX_PRICE>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@x402-market/mcp-server"
      ],
      "env": {
        "MARKET_API_URL": "<YOUR_MARKET_API_URL>",
        "MCP_BUYER_PRIVATE_KEY": "<YOUR_MCP_BUYER_PRIVATE_KEY>",
        "BASE_RPC_URL": "<YOUR_BASE_RPC_URL>",
        "BASE_CHAIN_ID": "<YOUR_BASE_CHAIN_ID>",
        "MCP_MAX_PRICE": "<YOUR_MCP_MAX_PRICE>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@x402-market/mcp-server"
      ],
      "env": {
        "MARKET_API_URL": "<YOUR_MARKET_API_URL>",
        "MCP_BUYER_PRIVATE_KEY": "<YOUR_MCP_BUYER_PRIVATE_KEY>",
        "BASE_RPC_URL": "<YOUR_BASE_RPC_URL>",
        "BASE_CHAIN_ID": "<YOUR_BASE_CHAIN_ID>",
        "MCP_MAX_PRICE": "<YOUR_MCP_MAX_PRICE>"
      }
    }
  }
}
Claude Code
claude mcp add mcp-server --env MARKET_API_URL=<YOUR_MARKET_API_URL> --env MCP_BUYER_PRIVATE_KEY=<YOUR_MCP_BUYER_PRIVATE_KEY> --env BASE_RPC_URL=<YOUR_BASE_RPC_URL> --env BASE_CHAIN_ID=<YOUR_BASE_CHAIN_ID> --env MCP_MAX_PRICE=<YOUR_MCP_MAX_PRICE> -- npx -y @x402-market/mcp-server

Related MCP servers

Give your AI agent stealth web scraping with Cloudflare bypass and CSS selection, powered by Scrapling.

67k
Python
BSD-3-Clause
View repository →

Give your AI coding agent full control of a live Chrome browser for automation, debugging, and performance analysis.

45k
TypeScript
Apache-2.0
View repository →

Let AI agents manage your Puter files, websites, and serverless workers over MCP.

43k
TypeScript
AGPL-3.0
View repository →

Browser automation for AI agents via MCP, powering ByteDance's Agent TARS hybrid GUI/DOM browser control.

37k
TypeScript
Apache-2.0
View repository →

Run arbitrary shell commands from an MCP-connected AI agent.

37k
TypeScript
Apache-2.0
View repository →

Filesystem access MCP server from ByteDance's UI-TARS/Agent TARS ecosystem.

37k
TypeScript
Apache-2.0
View repository →