Skip to main content
Glama

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

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"
    }
  }
}

Related MCP server: coinopai-mcp

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

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers