# X402 MCP Server

> X402 MCP Server is an open-source MCP server. Pay-per-call x402 tools on Base: web extract/render, burn-once secret vault, chart, GeoTIFF. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/jannis-e/x402-mcp-server
- **MCP Registry name:** io.github.Jannis-E/x402-mcp-server
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## 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.

---
Source: https://ai-powered.com/mcp/x402-mcp-server
