# x402 Universal Payer

> x402 Universal Payer is an open-source MCP server. Pay any x402 endpoint on the open web: auto-paying bridge with Bazaar discovery and spend caps. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://three.ws
- **Repository:** https://github.com/nirholas/three.ws/tree/HEAD/mcp-bridge
- **MCP Registry name:** io.github.nirholas/x402-bridge
- **Listing updated:** 2026-11-13

## About

Pay any x402 endpoint on the open web: auto-paying bridge with Bazaar discovery and spend caps.

## Install

### Claude Code (Terminal)

```sh
claude mcp add x402-bridge --env MCP_BRIDGE_EVM_PRIVATE_KEY='<MCP_BRIDGE_EVM_PRIVATE_KEY>' --env MCP_BRIDGE_SVM_PRIVATE_KEY='<MCP_BRIDGE_SVM_PRIVATE_KEY>' -- npx -y @three-ws/mcp-bridge
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "x402-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/mcp-bridge"
      ],
      "env": {
        "MCP_BRIDGE_EVM_PRIVATE_KEY": "<MCP_BRIDGE_EVM_PRIVATE_KEY>",
        "MCP_BRIDGE_SVM_PRIVATE_KEY": "<MCP_BRIDGE_SVM_PRIVATE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "x402-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/mcp-bridge"
      ],
      "env": {
        "MCP_BRIDGE_EVM_PRIVATE_KEY": "<MCP_BRIDGE_EVM_PRIVATE_KEY>",
        "MCP_BRIDGE_SVM_PRIVATE_KEY": "<MCP_BRIDGE_SVM_PRIVATE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "x402-bridge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/mcp-bridge"
      ],
      "env": {
        "MCP_BRIDGE_EVM_PRIVATE_KEY": "<MCP_BRIDGE_EVM_PRIVATE_KEY>",
        "MCP_BRIDGE_SVM_PRIVATE_KEY": "<MCP_BRIDGE_SVM_PRIVATE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "x402-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/mcp-bridge"
      ],
      "env": {
        "MCP_BRIDGE_EVM_PRIVATE_KEY": "<MCP_BRIDGE_EVM_PRIVATE_KEY>",
        "MCP_BRIDGE_SVM_PRIVATE_KEY": "<MCP_BRIDGE_SVM_PRIVATE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "x402-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/mcp-bridge"
      ],
      "env": {
        "MCP_BRIDGE_EVM_PRIVATE_KEY": "<MCP_BRIDGE_EVM_PRIVATE_KEY>",
        "MCP_BRIDGE_SVM_PRIVATE_KEY": "<MCP_BRIDGE_SVM_PRIVATE_KEY>"
      }
    }
  }
}
```

## FAQ

### Is x402 Universal Payer free?

Yes. x402 Universal Payer is open source, so you can use and self-host it for free.

### How do I add x402 Universal Payer to Claude Code?

Run this command in your terminal: claude mcp add x402-bridge --env MCP_BRIDGE_EVM_PRIVATE_KEY='<MCP_BRIDGE_EVM_PRIVATE_KEY>' --env MCP_BRIDGE_SVM_PRIVATE_KEY='<MCP_BRIDGE_SVM_PRIVATE_KEY>' -- npx -y @three-ws/mcp-bridge

## 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-universal-payer
