MCP directory

Agent Clinic

by github.com/mohammedalmohaish-cyber · v0.2.0 · updated Nov 26, 2026

House calls for AI agents: pay once in USDC over x402, run the instructions on your own model.

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • AGENT_PRIVATE_KEYsecret

    The agent's wallet key (0x and 64 hex characters), needed for clinic_house_call only. Use a wallet that holds only what you will spend on the clinic. Never printed or logged.

  • MAX_SPEND_USD_PER_CALL

    Per-call cap in US dollars: a visit that costs more is refused before anything is signed.

  • MAX_SPEND_USD_PER_DAY

    Daily cap in US dollars (UTC day): a visit that would go above it is refused before anything is signed.

  • NETWORK

    eip155:8453 is Base mainnet (real USDC); eip155:84532 is Base Sepolia testnet (test USDC). The server refuses to pay a clinic on another network.

  • CLINIC_URL

    The clinic's address. https only (plain http only for localhost).

  • SPEND_FILE

    Where today's spending total is kept, so a restart does not reset it.

More MCP servers