wafermap
OfficialAllows gasless USDC payments on Polygon through the wallet's network selection.
Allows the wallet to make gasless USDG payments on Robinhood Chain and to execute token swaps on the Robinhood network.
Allows gasless USDC payments on Solana and derives a Solana address and secret key from the same wallet key for Phantom and Solflare import.
This 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.
wafermap
The CLI, SDK and MCP server behind Wafermap: an x402 wallet for AI agents. One local, encrypted key that can:
call Wafermap's pay-per-call resources (LLMs, image and audio models, web reading, on-chain data, tokenized stocks, prediction markets)
discover third-party x402 services in the open x402 index and pay them
swap tokens through the KyberSwap aggregator
Every payment is checked against a per-payment cap and a daily cap before anything is signed. Swaps have their own per-swap cap. Payments settle in USDG on Robinhood Chain or USDC on Solana, Base, Arbitrum or Polygon and are gasless; swaps need a little ETH for gas.
Install
npm i -g https://wafermap.xyz/cli/wafermap.tgz
wafermap initinit creates a key and encrypts it with your password (scrypt + AES-256-GCM) in ~/.wafermap/keystore.json. Back it up with wafermap export-key. Then send a few dollars of USDC on Solana to the Solana address it prints, or USDG (Robinhood Chain) or USDC (Base, Arbitrum, Polygon) to its EVM address.
The Solana address comes from the same key (derived with HMAC-SHA256), so one backup covers both. wafermap export-key --solana prints the Solana secret key in the form Phantom and Solflare import. wafermap address shows both addresses.
Related MCP server: agentic-pay
CLI
wafermap balance
wafermap limits --per-payment 0.1 --per-day 1 --per-swap 25 --network robinhood
wafermap resources stock
wafermap call prediction-markets query="fed rates"
wafermap call flux-2-dev prompt="a glossy silicon wafer" --out wafer.png
wafermap discover weather
wafermap pay https://x402.agentindex.world/weather city=Jakarta
wafermap swap 0.01 ETH USDG
wafermap historyAdd --yes to skip the confirmation prompt (caps still apply), --network base, arbitrum, polygon or solana to pay in USDC on that network (swaps run on robinhood or base). Set WAFERMAP_PASSWORD to avoid the password prompt in scripts.
MCP server
Give Claude Desktop, Cursor or any MCP client the same wallet:
{
"mcpServers": {
"wafermap": {
"command": "wafermap",
"args": ["mcp"],
"env": { "WAFERMAP_PASSWORD": "your wallet password" }
}
}
}Tools: wafermap_wallet, wafermap_resources, wafermap_call, wafermap_discover, wafermap_pay, wafermap_swap_quote, wafermap_swap, wafermap_history. Swaps from MCP are off until you run wafermap limits --mcp-swaps on.
To approve every payment yourself, run wafermap limits --mcp-confirm on and restart the MCP server. Each payment and swap then waits for you in the client, showing the amount, asset, recipient, network and resource, before the wallet signs. It uses MCP elicitation; a client that cannot show the prompt gets a refusal and nothing is paid. The caps still apply first.
SDK
import { Wafermap } from "wafermap";
const wm = new Wafermap({ privateKey: process.env.AGENT_KEY as `0x${string}`, limits: { perPayment: 0.05, perDay: 2 } });
const { result, receipt } = await wm.call("stock-signal", { symbol: "TSLA" });
const services = await wm.discover("token price");
const paid = await wm.pay(services[0].url, { method: "POST", input: { symbol: "ETH" }, network: "base" });
const quote = await wm.swapQuote("ETH", "USDG", "0.01");
await wm.swap(quote);Pass approve: (a) => boolean to confirm each payment or swap yourself, and ledger to persist spending for the daily cap. Lower level: x402fetch(url, init, { signer }) pays any x402 v1 or v2 endpoint.
Where the limits live
The caps sit with the key, on your machine. Before the wallet signs anything it reads the 402 quote and refuses when the price is above the per-payment cap or would take today's spend past the daily cap, so nothing is signed and nothing can be charged. With --mcp-confirm on, you also approve each MCP payment yourself before it is signed. Wafermap's server only quotes, verifies the signature, runs the resource and settles if it worked; it never sees your key or your caps. A budget written in a prompt is an instruction, not a limit: set it with wafermap limits. More: https://wafermap.xyz/docs#limits
The checks are in src/core.ts (gate), the keystore in src/store.ts, payment signing in shared/x402client.ts and shared/solana.ts.
Build from source
git clone https://github.com/wafermap/wafermap-cli.git && cd wafermap-cli
npm ci
npm run build # dist/cli.js, dist/index.js and type declarations
node dist/cli.js --help
npm i -g . # optional: install this build as `wafermap`Layout: src/ is the CLI, SDK and MCP server; shared/ is the x402 client, the Solana payment builder, the swap helpers and the resource catalog, the same files the Wafermap site uses.
Files
~/.wafermap/keystore.json (encrypted key), config.json (caps, network), spend.jsonl (history). Override the folder with WAFERMAP_HOME, the RPCs with WAFERMAP_RPC_ROBINHOOD / WAFERMAP_RPC_BASE.
Docs: https://wafermap.xyz/docs#cli · Security: SECURITY.md · License: MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
x402 MCP with exact and batched payments for recurring wallet, trading, market and web workflows.
Agent-native MCP for governed commerce, x402 payments, paid capabilities, and verifiable receipts.
x402 pay-per-call APIs over MCP, settled in USDC on Base for autonomous agents and developers.
Paid MCP tools behind one endpoint. Agents pay per call in USDC on Base via x402.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables MCP clients to use paid tools for secret scanning, agent-config auditing, and OG image rendering, with payments handled over the x402 protocol on Base.MIT- AlicenseNot gradedqualityFmaintenanceNon-custodial payment engine for AI agents supporting BTC, ETH, USDT, USDC, XRP, XMR, and ZEC. Exposes wallet, invoice, and payment tools over MCP with per-agent spend limits, plus x402 pay-per-call support.48 npmBusiness Source 1.1

token4u-mcpofficial
AlicenseAqualityBmaintenanceEnables AI agents to call LLM APIs via x402 micropayments in USDC on Base network, manage a local wallet, and query consumption records.359 npmMIT
halowerk-mcpofficial
AlicenseAqualityFmaintenanceProvides access to 70 paid APIs as MCP tools with per-call and session budgets, paying via x402/USDC on Base without requiring an account or login. Includes a built-in allowlist of hosts and safe defaults to prevent unintended payments.1472 npmMIT