onchainexpat

Open-Source MCP Server

Give your AI agent a wallet.

One command installs a self-custodial USDC wallet. Your agent pays x402 endpoints automatically—no API keys, no accounts, no config.

x402 is an open payment protocol · USDC is a dollar-pegged stablecoin · Base is Coinbase's Ethereum L2

terminal
claude mcp add x402-wallet \
  -- npx x402-wallet-mcp

# ✓ Wallet created

# ✓ All endpoints ready

# ✓ Pay with USDC on Base

Works with Claude Code, Cursor, Windsurf, and Claude Desktop. Claude Desktop setup guide →

Self-custodial

Your keys never leave your machine. Export anytime. No seed phrases, no extensions.

Zero config

One command to install. No API keys, no signup, no OAuth. Works out of the box.

Coinbase Onramp

Fund with debit card or Apple Pay. No exchange account. Your agent handles it.

How It Works

Three steps to a funded agent.

01

Install

One command adds the wallet MCP server to your editor.

claude mcp add x402-wallet -- npx x402-wallet-mcp@latest
02

Fund

Buy USDC via Coinbase Onramp, Peer, or transfer on Base. Just ask your agent.

03

Use

Ask anything. Your agent calls x402 endpoints and pays automatically. Sub-penny pricing.

Setup

Install in one minute.

terminal
claude mcp add x402-wallet -- npx x402-wallet-mcp@latest

Restart Claude Code. That's it.

npm downloadsGitHub stars

Try These

Start with a prompt.

Install the wallet, then try any of these in Claude.

Check my wallet balance

Free

What's the weather in Tokyo?

$0.001

Get the latest Ether price

$0.001

Review this endpoint: x402.org/weather

$0.25

Verified On-Chain Identity

Agent #22778

ERC-8004 on Ethereum

80.62

Reputation Score

Protocols

x402MCPA2A

Chains

BaseSolana