
x402-web-tools-mcp
io.github.nitish800/x402-web-tools-mcp
21 pay-per-call x402 tools (Base USDC): web extract, DNS/TLS/RDAP, SEC, EVM & spend caps.
Documentation
x402 Web Tools MCP Server
Standalone Model Context Protocol (stdio) wrapper that dynamically discovers all 21+ endpoints from https://extract.hackerwalablog.in/openapi.json (plus any future endpoints added to the API) and handles x402 v2 Base Mainnet USDC micropayments with client-side spending caps.
Repository: https://github.com/nitish800/x402-web-tools-mcp
Quick Setup (Recommended: Isolated Burner Wallet)
Never paste your main wallet seed phrase into an MCP config. Create a dedicated micro-spending wallet (chmod 600 in ~/.x402-web-tools/wallet.json) and fund it with only $1–$5 of USDC on Base:
npx -y @nitish800/x402-web-tools-mcp --init
(From source in this repo: cd mcp && npm install && npm run build && node dist/src/index.js --init)
Send $1–$5 Base USDC to the printed 0x... address, then add to Claude Desktop / Cursor / Antigravity mcpServers:
{
"x402-web-tools": {
"command": "npx",
"args": ["-y", "@nitish800/x402-web-tools-mcp"],
"env": {
"X402_MAX_PER_CALL_USD": "0.05",
"X402_MAX_SESSION_USD": "1.00"
}
}
}
Alternative Connection Modes
- Auto-create burner on first launch: Set
"X402_AUTO_WALLET": "true"inenv, then ask your agent to callx402_wallet_statusto get the deposit address. - No-key browser OAuth wallet: If you already run Coinbase
@coinbase/payments-mcp, point your agent directly athttps://extract.hackerwalablog.in/llms.txtand/.well-known/x402— no separate stdio MCP needed. - Developer / CI hot key: Set
EVM_PRIVATE_KEY(orBUYER_PRIVATE_KEY) inenvusing a dedicated spending key. - Read-only discovery mode: Omit all wallet config; agents still see all 21 tool schemas and inspect exact HTTP
402pricing requirements without spending funds.
Environment Variables & Guardrails
| Variable | Default | Purpose |
|---|---|---|
X402_MAX_PER_CALL_USD | 0.05 | Hard per-request cap enforced before signing |
X402_MAX_SESSION_USD | 1.00 | Cumulative session spend cap enforced before signing |
X402_WALLET_FILE | ~/.x402-web-tools/wallet.json | Custom keystore path |
X402_WALLET_PASSPHRASE | unset | Enables AES-256-GCM encryption for the burner file |
X402_AUTO_WALLET | false | Auto-generate burner wallet on startup if missing |
EVM_PRIVATE_KEY | unset | Dedicated 0x hex spending key (alias: BUYER_PRIVATE_KEY) |
X402_API_BASE_URL | https://extract.hackerwalablog.in | Override target x402 API base URL |
@nitish800/x402-web-tools-mcpnpm install @nitish800/x402-web-tools-mcp