@hpp-io/x402-mcp-bridge
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@hpp-io/x402-mcp-bridge
The agent payment rail for HPP. A stdio MCP bridge + the
hpp-x402CLI 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.
Related MCP server: @coinbase/payments-mcp
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-bridgeNeeds 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 wiredRestart 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 discoverPay 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
Tool | What it does |
| report your wallet address (to fund it) |
| list/search the curated HPP directory (read-only) |
| one service's input args β schema + example (read-only) |
| call a discovered service (HTTP/MCP/A2A); pays via your wallet |
| pay + call any x402 HTTP endpoint |
| pay + 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)
Var | Notes |
| auto-created in the OS keychain if unset |
|
|
| extra tokens the bridge may pay in (comma-separated addresses). By default only USDC.e (both networks) and HAC (Sepolia test token); a 402 priced in any other token is refused before signing |
| proxy one upstream MCP server (omit = local tools only) |
| set both = Safe (governance) mode |
| ERC-7710 payment delegation a wallet granted to this key: pays |
Full environment reference + Safe/governance setup are in the manual.
Related
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Machine-payable API infrastructure for autonomous agents. Per-call x402 settlement in USDC.
Give your AI agent an x402 wallet: discover and pay for services in USDC, or earn from your own.
Let an AI agent find and pay for x402 APIs and products in USDC on Base, within owner-set limits.
x402 pay-per-call APIs over MCP, settled in USDC on Base for autonomous agents and developers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to discover and pay for x402-enabled services using natural language, with multi-chain support for Solana and EVM payments.34 npm1MIT

@coinbase/payments-mcpofficial
AlicenseNot gradedqualityDmaintenanceCombines wallets, onramps, and payments via x402 to enable AI agents to autonomously discover and pay for services without API keys or complex setup.48 npm58Apache 2.0- AlicenseNot gradedqualityCmaintenanceEnables agents to discover, sample, and pay per call in USDC for live threat intelligence, ZK proof generation, and arbitrage signals via the x402 protocol.MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to pay per tool call in USDC via the x402 micropayment protocol, with no API keys or subscriptions required.-