← Back to browse

x402-market

Indexed by io.github.AsaiShota

About

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

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsMARKET_API_URL MCP_BUYER_PRIVATE_KEY BASE_RPC_URL BASE_CHAIN_ID MCP_MAX_PRICE
Claude Code
claude mcp add --env MARKET_API_URL= --env MCP_BUYER_PRIVATE_KEY= --env BASE_RPC_URL= --env BASE_CHAIN_ID= --env MCP_MAX_PRICE= mcp-server -- npx @x402-market/mcp-server
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"mcp-server","command":"npx","args":["@x402-market/mcp-server"],"env":{"MARKET_API_URL":"","MCP_BUYER_PRIVATE_KEY":"","BASE_RPC_URL":"","BASE_CHAIN_ID":"","MCP_MAX_PRICE":""}}'
JSON
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "@x402-market/mcp-server"
      ],
      "env": {
        "MARKET_API_URL": "",
        "MCP_BUYER_PRIVATE_KEY": "",
        "BASE_RPC_URL": "",
        "BASE_CHAIN_ID": "",
        "MCP_MAX_PRICE": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.