Skip to main content
ClaudeWave
hpp-io avatar
hpp-io

x402-mcp-bridge

Ver en GitHub

Gasless x402 payments for MCP agents on HPP — discover and pay for services per call, within a spend cap.

MCP ServersRegistry oficial0 estrellas0 forksTypeScriptNOASSERTIONActualizado today
Install in Claude Code / Claude Desktop
Method: NPX · @hpp-io/x402-mcp-bridge
Claude Code CLI
claude mcp add x402-mcp-bridge -- npx -y @hpp-io/x402-mcp-bridge
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "x402-mcp-bridge": {
      "command": "npx",
      "args": ["-y", "@hpp-io/x402-mcp-bridge"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Casos de uso

Resumen de MCP Servers

# @hpp-io/x402-mcp-bridge

[![npm](https://img.shields.io/npm/v/@hpp-io/x402-mcp-bridge?logo=npm)](https://www.npmjs.com/package/@hpp-io/x402-mcp-bridge)
[![MCP Registry](https://img.shields.io/badge/MCP_Registry-listed-1f6feb)](https://registry.modelcontextprotocol.io/?q=x402-mcp-bridge)
[![License](https://img.shields.io/badge/license-Apache--2.0-green)](./LICENSE)
[![Node](https://img.shields.io/badge/node-%3E%3D20-3c873a?logo=node.js)](https://nodejs.org)

> The agent payment rail for HPP. A stdio MCP bridge + the `hpp-x402` CLI that let
> Claude Desktop / Claude Code / Cursor / Windsurf / OpenClaw make autonomous
> **HPP USDC.e** payments over [x402](https://x402.org) — discover paid services,
> pay per call, within a spend cap. No API keys, no manual signing.

## 📖 Full documentation

**[hpp-io/x402-tools](https://github.com/hpp-io/x402-tools)** — the complete manual:
how it works, every command, buyer **and** seller flows, payment schemes
(exact / upto), wallet modes, and troubleshooting. This README is a quick reference.

## Install

```bash
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/hpp-io/x402-tools/main/install/install.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/hpp-io/x402-tools/main/install/install.ps1 | iex
# …or npm
npm install -g @hpp-io/x402-mcp-bridge
```

Needs Node 20+. On a headless box (no OS keychain) use `setup --print-key` — see
the [manual](https://github.com/hpp-io/x402-tools#requirements).

## Quick start

```bash
hpp-x402 setup --install claude-code   # create a wallet + register into your host
hpp-x402 fund                          # where to send USDC.e (gasless, no native gas)
hpp-x402 status                        # confirm it's wired
```

Restart your host and your agent can discover and pay for services. Browse and pay
from the terminal too:

```bash
hpp-x402 discover "price prediction"               # semantic search; your network only
hpp-x402 describe <id>                             # input args (schema + example) — no payment
hpp-x402 call <url-or-id> --body '{"hi":"there"}'  # pay + call — a URL, or an id from discover
```

Full command reference, selling (`serve`), schemes, and Safe mode →
the **[manual](https://github.com/hpp-io/x402-tools)**.

## Use it from an MCP host

The host spawns the bridge over stdio. A bare entry boots zero-config on HPP
Sepolia with an auto-created keychain wallet:

```jsonc
{ "mcpServers": { "hpp-x402": {
  "command": "npx", "args": ["-y", "@hpp-io/x402-mcp-bridge"]
} } }
```

`hpp-x402 install <host>` writes this for you. Note: a bare
`npx @hpp-io/x402-mcp-bridge` runs the MCP **server** (what the host wants) — for
the CLI use `npx -y -p @hpp-io/x402-mcp-bridge hpp-x402 <command>`.

### Host-facing tools

| Tool | What it does |
|------|--------------|
| `wallet_address` | report your wallet address (to fund it) |
| `hpp_discover` | list/search the curated HPP directory (read-only) |
| `hpp_describe` | one service's input args — schema + example (read-only) |
| `hpp_call` | call a discovered service (HTTP/MCP/A2A); pays via your wallet |
| `x402_http_call` | pay + call any x402 HTTP endpoint |
| `pay_a2a_agent` | pay + message another A2A agent |

Every paid call stays within your spend cap; discovery never holds funds or sees
your keys.

### Key env (all optional)

| Var | Notes |
|-----|-------|
| `DELEGATE_PRIVATE_KEY` | auto-created in the OS keychain if unset |
| `HPP_NETWORK` | `eip155:181228` Sepolia (default) / `eip155:190415` Mainnet |
| `RESOURCE_SERVER_URL` | proxy one upstream MCP server (omit = local tools only) |
| `SAFE_ADDRESS` + `ALLOWANCE_MODULE_ADDRESS` | set both = Safe (governance) mode |

Full environment reference + Safe/governance setup are in the
[manual](https://github.com/hpp-io/x402-tools).

## Related

Building an agent / SDK integration (LangChain, OpenAI function-calling, AgentKit,
A2A)? See the runnable gallery →
[hpp-io/hpp-x402-agent-sample](https://github.com/hpp-io/hpp-x402-agent-sample)

## License

Apache-2.0
agent-paymentshppmcpmcp-serverx402

Lo que la gente pregunta sobre x402-mcp-bridge

¿Qué es hpp-io/x402-mcp-bridge?

+

hpp-io/x402-mcp-bridge es mcp servers para el ecosistema de Claude AI. Gasless x402 payments for MCP agents on HPP — discover and pay for services per call, within a spend cap. Tiene 0 estrellas en GitHub y se actualizó por última vez today.

¿Cómo se instala x402-mcp-bridge?

+

Puedes instalar x402-mcp-bridge clonando el repositorio (https://github.com/hpp-io/x402-mcp-bridge) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar hpp-io/x402-mcp-bridge?

+

hpp-io/x402-mcp-bridge aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.

¿Quién mantiene hpp-io/x402-mcp-bridge?

+

hpp-io/x402-mcp-bridge es mantenido por hpp-io. La última actividad registrada en GitHub es de today, con 1 issues abiertos.

¿Hay alternativas a x402-mcp-bridge?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega x402-mcp-bridge en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: hpp-io/x402-mcp-bridge
[![Featured on ClaudeWave](https://claudewave.com/api/badge/hpp-io-x402-mcp-bridge)](https://claudewave.com/repo/hpp-io-x402-mcp-bridge)
<a href="https://claudewave.com/repo/hpp-io-x402-mcp-bridge"><img src="https://claudewave.com/api/badge/hpp-io-x402-mcp-bridge" alt="Featured on ClaudeWave: hpp-io/x402-mcp-bridge" width="320" height="64" /></a>

Más MCP Servers

Alternativas a x402-mcp-bridge