x402-market

Official registry AI and agents

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

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @x402-market/mcp-server
Claude Code
claude mcp add x402-market -e 'MARKET_API_URL=https://x402-market-api.lien-studio-akiyama.workers.dev' -e 'MCP_BUYER_PRIVATE_KEY=<your mcp_buyer_private_key>' -e 'BASE_RPC_URL=https://mainnet.base.org' -e 'BASE_CHAIN_ID=8453' -e 'MCP_MAX_PRICE=1.0' -- npx -y @x402-market/mcp-server@0.2.0-alpha.1
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "x402-market": {
            "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_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.

Frequently asked questions

What is x402-market?

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

How do I install x402-market?

It runs on your machine. In Claude Code: claude mcp add x402-market -e 'MARKET_API_URL=https://x402-market-api.lien-studio-akiyama.workers.dev' -e 'MCP_BUYER_PRIVATE_KEY=<your mcp_buyer_private_key>' -e 'BASE_RPC_URL=https://mainnet.base.org' -e 'BASE_CHAIN_ID=8453' -e 'MCP_MAX_PRICE=1.0' -- npx -y @x402-market/mcp-server@0.2.0-alpha.1. For other clients, paste the JSON configuration from this page into their MCP settings.

Does x402-market need an API key?

Yes. It expects MCP_BUYER_PRIVATE_KEY, which you set in its configuration.

Is x402-market open source?

Its code is public on GitHub, but the repository does not declare a standard license.

Who maintains x402-market?

It is published by AsaiShota. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.