Back to MCP Servers
🧩

x402 Universal Payer MCP Server

API key required

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

To add x402 Universal Payer to Claude, run the install command below or copy the ready-made config for Claude Code, Claude Desktop, Cursor and VS Code further down. Restart your client after adding it and its tools show up in your next conversation. It needs 13 environment variables, listed below.

DevTools

Install

npx -y @three-ws/mcp-bridge@1.0.2

Environment variables

MCP_BRIDGE_EVM_PRIVATE_KEYSet in your MCP config
MCP_BRIDGE_SVM_PRIVATE_KEYSet in your MCP config
MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMICSet in your MCP config
MCP_BRIDGE_MAX_TOTAL_ATOMICSet in your MCP config
MCP_BRIDGE_ALLOWED_PAYTOSet in your MCP config
MCP_BRIDGE_ALLOWED_HOSTSSet in your MCP config
MCP_BRIDGE_ALLOW_HTTPSet in your MCP config
MCP_BRIDGE_DISCOVER_LIMITSet in your MCP config
MCP_BRIDGE_BAZAAR_URLSet in your MCP config
MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIERSet in your MCP config
MCP_BRIDGE_MAX_DEPOSIT_ATOMICSet in your MCP config
X402_MCP_BRIDGE_CHANNELS_DIRSet in your MCP config
RPC_URL_8453Set in your MCP config

Install with your client

Terminal
claude mcp add x402-universal-payer --env MCP_BRIDGE_EVM_PRIVATE_KEY=<YOUR_MCP_BRIDGE_EVM_PRIVATE_KEY> --env MCP_BRIDGE_SVM_PRIVATE_KEY=<YOUR_MCP_BRIDGE_SVM_PRIVATE_KEY> --env MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC=<YOUR_MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC> --env MCP_BRIDGE_MAX_TOTAL_ATOMIC=<YOUR_MCP_BRIDGE_MAX_TOTAL_ATOMIC> --env MCP_BRIDGE_ALLOWED_PAYTO=<YOUR_MCP_BRIDGE_ALLOWED_PAYTO> --env MCP_BRIDGE_ALLOWED_HOSTS=<YOUR_MCP_BRIDGE_ALLOWED_HOSTS> --env MCP_BRIDGE_ALLOW_HTTP=<YOUR_MCP_BRIDGE_ALLOW_HTTP> --env MCP_BRIDGE_DISCOVER_LIMIT=<YOUR_MCP_BRIDGE_DISCOVER_LIMIT> --env MCP_BRIDGE_BAZAAR_URL=<YOUR_MCP_BRIDGE_BAZAAR_URL> --env MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER=<YOUR_MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER> --env MCP_BRIDGE_MAX_DEPOSIT_ATOMIC=<YOUR_MCP_BRIDGE_MAX_DEPOSIT_ATOMIC> --env X402_MCP_BRIDGE_CHANNELS_DIR=<YOUR_X402_MCP_BRIDGE_CHANNELS_DIR> --env RPC_URL_8453=<YOUR_RPC_URL_8453> -- npx -y @three-ws/mcp-bridge@1.0.2

Run this in a terminal to add the server to Claude Code.

What this does

x402 Universal Payer exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation.

Requirements

This server needs the following environment variables to be set before it can run:

MCP_BRIDGE_EVM_PRIVATE_KEY
MCP_BRIDGE_SVM_PRIVATE_KEY
MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC
MCP_BRIDGE_MAX_TOTAL_ATOMIC
MCP_BRIDGE_ALLOWED_PAYTO
MCP_BRIDGE_ALLOWED_HOSTS
MCP_BRIDGE_ALLOW_HTTP
MCP_BRIDGE_DISCOVER_LIMIT
MCP_BRIDGE_BAZAAR_URL
MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER
MCP_BRIDGE_MAX_DEPOSIT_ATOMIC
X402_MCP_BRIDGE_CHANNELS_DIR
RPC_URL_8453

Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).

Frequently asked questions

How do I install x402 Universal Payer?

Run the Claude Code command in the install section to add x402 Universal Payer to Claude Code, or copy the ready-made config for your client from the install section on this page. Restart your client afterwards and the tools appear in your next conversation.

Which clients work with x402 Universal Payer?

This page carries setup and config for Claude Code, Claude Desktop, Cursor and VS Code. Any other MCP client that accepts a standard server config can connect to x402 Universal Payer as well.

Does x402 Universal Payer need an API key?

Yes. Before it can run, set these environment variables: MCP_BRIDGE_EVM_PRIVATE_KEY, MCP_BRIDGE_SVM_PRIVATE_KEY, MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC, MCP_BRIDGE_MAX_TOTAL_ATOMIC, MCP_BRIDGE_ALLOWED_PAYTO, MCP_BRIDGE_ALLOWED_HOSTS, MCP_BRIDGE_ALLOW_HTTP, MCP_BRIDGE_DISCOVER_LIMIT, MCP_BRIDGE_BAZAAR_URL, MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER, MCP_BRIDGE_MAX_DEPOSIT_ATOMIC, X402_MCP_BRIDGE_CHANNELS_DIR, RPC_URL_8453. They go in the env block of your MCP config.

Imported from the Official MCP Registry. The details above come from the registry entry; the maker can claim this listing to correct them, add docs, and see its traffic.

Is this your MCP server?

Claim this listing to see its traffic, fix details yourself, and skip the review queue on future updates.

Listed on clauderules.net

Add this badge to your README

Show visitors this server is listed in the ClaudeRules directory. The badge links straight to this listing.

Markdown
[![Listed on clauderules.net](https://clauderules.net/api/badge/io-github-nirholas-x402-bridge)](https://clauderules.net/mcp/io-github-nirholas-x402-bridge)
HTML
<a href="https://clauderules.net/mcp/io-github-nirholas-x402-bridge" target="_blank" rel="noopener noreferrer"><img src="https://clauderules.net/api/badge/io-github-nirholas-x402-bridge" alt="Listed on clauderules.net" /></a>