Repository avatar
Other Tools
v1.0.1
active

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" in env, then ask your agent to call x402_wallet_status to get the deposit address.
  • No-key browser OAuth wallet: If you already run Coinbase @coinbase/payments-mcp, point your agent directly at https://extract.hackerwalablog.in/llms.txt and /.well-known/x402 — no separate stdio MCP needed.
  • Developer / CI hot key: Set EVM_PRIVATE_KEY (or BUYER_PRIVATE_KEY) in env using a dedicated spending key.
  • Read-only discovery mode: Omit all wallet config; agents still see all 21 tool schemas and inspect exact HTTP 402 pricing requirements without spending funds.

Environment Variables & Guardrails

VariableDefaultPurpose
X402_MAX_PER_CALL_USD0.05Hard per-request cap enforced before signing
X402_MAX_SESSION_USD1.00Cumulative session spend cap enforced before signing
X402_WALLET_FILE~/.x402-web-tools/wallet.jsonCustom keystore path
X402_WALLET_PASSPHRASEunsetEnables AES-256-GCM encryption for the burner file
X402_AUTO_WALLETfalseAuto-generate burner wallet on startup if missing
EVM_PRIVATE_KEYunsetDedicated 0x hex spending key (alias: BUYER_PRIVATE_KEY)
X402_API_BASE_URLhttps://extract.hackerwalablog.inOverride target x402 API base URL
NPM
@nitish800/x402-web-tools-mcp
Install Command
npm install @nitish800/x402-web-tools-mcp