X402 Config Generator

Generators REST API MCP

Return ready-to-paste x402 payment integration code plus the install command: a paywalled SERVER (Express, Hono, Next.js, Fastify, Gin, FastAPI, Flask) with priced routes, or a paying CLIENT (fetch, axios, Go, Python httpx/requests) for the chosen networks.

This page documents the MCP tool findutils:x402_config_generator. See the REST reference →

Call it over MCP

Tool name findutils:x402_config_generator · no API keys · 120 requests/min per IP

Claude Code

claude mcp add findutils --transport http https://mcp.findutils.com/

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "findutils": {
      "url": "https://mcp.findutils.com/"
    }
  }
}

Raw JSON-RPC (any MCP client) — verified example

curl -X POST https://mcp.findutils.com/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "x402_config_generator",
      "arguments": {
        "role": "server",
        "framework": "express"
      }
    }
  }'

Input schema

Argument Type Required Description
role string (server | client) no Generate code for the seller (server) or the buyer (client). Default: "server".
framework string (express | hono | nextjs | fastify | gin | fastapi | flask) no Server framework (role=server). Default: "express".
facilitator_url string no x402 facilitator URL (role=server). Default: "https://x402.org/facilitator".
routes array no Paid routes (role=server): objects with path, method, price (e.g. "$0.001"), scheme (exact|upto), network (CAIP-2 id such as "eip155:8453"), pay_to (wallet address), description, mime_type.
enable_bazaar boolean no Advertise routes in the x402 Bazaar discovery list (role=server). Default: false.
enable_payment_id boolean no Attach a payment id to each settlement (role=server). Default: false.
client_type string (fetch | axios | go | python-httpx | python-requests) no Client library (role=client). Default: "fetch".
networks array no Networks the client can pay on (role=client).
base_url string no Base URL of the paid API (role=client). Default: "https://api.example.com".

Example arguments (verified)

{
  "role": "server",
  "framework": "express"
}

Also a REST endpoint

The same tool answers plain HTTP at POST /api/tools/x402-config-generator/execute — no key, 60 requests/min.

Open the REST reference for X402 Config Generator →

More Generators tools