Skip to content

X402 Config Generator MCP tool

MCP findutils:x402_config_generator

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.

Arguments

application/json
  • role

    string optional

    Generate code for the seller (server) or the buyer (client). One of server · client. Default "server".

  • framework

    string optional

    Server framework (role=server). One of express · hono · nextjs · fastify · gin · fastapi · flask. Default "express".

  • facilitator_url

    string optional

    x402 facilitator URL (role=server). Default "https://x402.org/facilitator".

  • routes

    array optional

    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 optional

    Advertise routes in the x402 Bazaar discovery list (role=server). Default false.

  • enable_payment_id

    boolean optional

    Attach a payment id to each settlement (role=server). Default false.

  • client_type

    string optional

    Client library (role=client). One of fetch · axios · go · python-httpx · python-requests. Default "fetch".

  • networks

    array optional

    Networks the client can pay on (role=client).

  • base_url

    string optional

    Base URL of the paid API (role=client). Default "https://api.example.com".

Example arguments

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