Skip to content
MCP server

X402 MCP Server

Pay-per-call x402 tools on Base: web extract/render, burn-once secret vault, chart…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.5
Listing updated
5 days ago

About X402 MCP Server

X402 MCP Server is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Pay-per-call x402 tools on Base: web extract/render, burn-once secret vault, chart, GeoTIFF

Install

Run in a terminal

claude mcp add x402-mcp-server --env BASE_PRIVATE_KEY='<BASE_PRIVATE_KEY>' -- npx -y x402-mcp-server_by_milza

Add to claude_desktop_config.json

{
  "mcpServers": {
    "x402-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "x402-mcp-server_by_milza"
      ],
      "env": {
        "BASE_PRIVATE_KEY": "<BASE_PRIVATE_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "x402-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "x402-mcp-server_by_milza"
      ],
      "env": {
        "BASE_PRIVATE_KEY": "<BASE_PRIVATE_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "x402-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "x402-mcp-server_by_milza"
      ],
      "env": {
        "BASE_PRIVATE_KEY": "<BASE_PRIVATE_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "x402-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "x402-mcp-server_by_milza"
      ],
      "env": {
        "BASE_PRIVATE_KEY": "<BASE_PRIVATE_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "x402-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "x402-mcp-server_by_milza"
      ],
      "env": {
        "BASE_PRIVATE_KEY": "<BASE_PRIVATE_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • BASE_PRIVATE_KEY0x-prefixed EVM private key, wallet funded with Base USDC -- signs EIP-3009 payments locally.Required

Pricing

Open source

X402 MCP Server FAQ

Is X402 MCP Server free?

Yes. X402 MCP Server is open source, so you can use and self-host it for free.

How do I add X402 MCP Server to Claude Code?

Run this command in your terminal: claude mcp add x402-mcp-server --env BASE_PRIVATE_KEY='<BASE_PRIVATE_KEY>' -- npx -y x402-mcp-server_by_milza

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers