x402 MCP bridge for HPP agent payments

x402 MCP bridge for HPP agent payments

x402-mcp-bridge•byhpp-io

A stdio MCP server that lets MCP hosts discover and pay for x402 services in HPP USDC.e within a spend cap, without API keys or manual signing.

License: Apache-2.0•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Exposes host-facing tools for reporting wallet address, discovering and describing services, calling services, paying x402 HTTP endpoints, and messaging A2A agents.
  • •Keeps every paid call within a spend cap (default per-call cap of 1 USDC.e) and pays only in allowlisted tokens.
  • •Boots zero-config on HPP Sepolia with an auto-created keychain wallet when no key is supplied.
  • •Can pay from a user's HPP Smart Wallet via an ERC-7710 payment delegation under on-chain caps, checked at install and at boot.

BEST FOR

  • •Agents in Claude Desktop, Claude Code, Cursor, Windsurf, or OpenClaw that need to pay for services per call autonomously.
  • •Discovering and calling paid services from an MCP host, searching a curated directory and paying per call.
  • •Paying x402 HTTP endpoints or messaging other A2A agents from within an MCP-enabled agent.

ABOUT X402-MCP-BRIDGE

x402 MCP bridge for HPP agent payments is cataloged as an MCP server attributed to hpp-io. A stdio MCP server that lets MCP hosts discover and pay for x402 services in HPP USDC.e within a spend cap, without API keys or manual signing. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache-2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for x402 MCP bridge for HPP agent payments are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Are API keys or manual signing required?

No; the bridge is described as requiring no API keys and no manual signing.

How are spending limits enforced?

Each paid call stays within a spend cap, with the per-call cap defaulting to 1 USDC.e and raised via wallet_set_limit, paying only in allowlisted tokens.

Can the agent pay from a Smart Wallet instead of funding its own key?

Yes; a Smart Wallet can grant an ERC-7710 payment delegation so the bridge pays from the user's smart account under on-chain caps, with the key holding no USDC.e.

Upstream README

View this exact version on GitHub

README.md · fb81e1936f89 · Fetched 2026-11-13 11:26:38 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

@hpp-io/x402-mcp-bridge

npm MCP Registry License Node

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 — discover paid services, pay per call, within a spend cap. No API keys, no manual signing.

📖 Full documentation

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

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

Quick start

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:

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

Pay from your HPP Smart Wallet instead

Rather than funding the agent's key, let it pay from your HPP Smart Wallet under a spending limit you set. In the wallet, open Agents → New, paste the agent's address (hpp-x402 wallet address), issue the delegation, then run the command the wallet shows — it is this, with the value filled in:

hpp-x402 install claude-code -n eip155:190415 --delegation 0x…

Run it on the machine where the agent's key lives. The value is checked against that key and the network before it is written, and again each time the bridge starts. The value can only be used by that key, within the limit, until it expires — but it does end up in your shell history, so treat it like a card with a cap. To stop the agent, revoke the delegation in the wallet.

Full command reference, selling (serve), schemes, and Safe mode → the manual.

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:

{ "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

ToolWhat it does
wallet_addressreport your wallet address (to fund it)
hpp_discoverlist/search the curated HPP directory (read-only)
hpp_describeone service's input args — schema + example (read-only)
hpp_callcall a discovered service (HTTP/MCP/A2A); pays via your wallet
x402_http_callpay + call any x402 HTTP endpoint
pay_a2a_agentpay + message another A2A agent

Every paid call stays within your spend cap (per-call cap defaults to 1 USDC.e; raise it with wallet_set_limit) and is paid only in allowlisted tokens; discovery never holds funds or sees your keys.

Key env (all optional)

VarNotes
DELEGATE_PRIVATE_KEYauto-created in the OS keychain if unset
HPP_NETWORKeip155:181228 Sepolia (default) / eip155:190415 Mainnet
HPP_X402_ALLOWED_ASSETSextra tokens the bridge may pay in (comma-separated addresses). By default USDC.e, CHIP and HPP (both networks) and HAC (Sepolia test token). HPP pays usage-based (upto) prices only; a 402 priced in any other token is refused before signing
HPP_X402_RATES_URLwhere the HPP/USD rate is read for valuing HPP payments against the spend caps (default: the HPP paymaster's public /wallet/rates for the network). If it cannot be read, a built-in reference price is used
RESOURCE_SERVER_URLproxy one upstream MCP server (omit = local tools only)
SAFE_ADDRESS + ALLOWANCE_MODULE_ADDRESSset both = Safe (governance) mode
HPP_PAYMENT_DELEGATIONERC-7710 payment delegation a wallet granted to this key: pays erc7710 accepts from the user's smart account under on-chain caps — this key needs no USDC.e. hpp-x402 install <host> --delegation <value> writes it. Checked against the key and the network at install and at boot (a value issued on the other network, revoked, or expired stops the bridge with the reason); without it such accepts are skipped

Full environment reference + Safe/governance setup are in the manual.

Building an agent / SDK integration (LangChain, OpenAI function-calling, AgentKit, A2A)? See the runnable gallery → hpp-io/hpp-x402-agent-sample

License

Apache-2.0

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for x402 MCP bridge for HPP agent payments from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/x402-mcp-bridge)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics