Skip to content
Fourohtwo

Add paid APIs to Claude, Cursor or Codex with MCP

Connect Claude, Cursor or Codex to Fourohtwo's MCP server so the assistant can find x402 APIs and pay for them from a wallet with limits you set.

3 min read · updated Nov 26, 2026

The Model Context Protocol (MCP) lets an assistant use tools you plug in. Fourohtwo's MCP server gives it four: search_apis, get_api, call_api and wallet_status. The assistant can then find an API for the job, check the price and pay for one call, within limits you set in the config.

1. Add the server

In Claude Desktop open Settings, then Developer, then Edit Config. Cursor and Codex use the same block in their MCP settings. AGENT_KEY is the private key of a wallet made just for this; a new wallet gets 5 free calls.

Response
{
  "mcpServers": {
    "fourohtwo": {
      "command": "npx",
      "args": ["-y", "fourohtwo-mcp"],
      "env": { "AGENT_KEY": "0x…", "MAX_PER_CALL_USD": "0.05", "MAX_DAILY_USD": "2" }
    }
  }
}

2. Ask for something

  • "Is this Robinhood Chain token safe to buy? 0x5fc5…d168" calls rug-check.
  • "How is TSLA trading on Robinhood Chain compared with the real stock?" calls stock-premium.
  • "Find an x402 API for weather in Tokyo and get tomorrow's forecast" searches the directory, then pays for one call.

3. Only browsing? Connect without a wallet

To let an assistant search and inspect APIs without paying, add the remote server https://fourohtwo.xyz/mcp (Streamable HTTP). It has search_apis, get_api, list_fourohtwo_apis and how_to_pay, and needs no key.

Stay in control

  • MAX_PER_CALL_USD and MAX_DAILY_USD stop the server before it signs anything pricier.
  • Link the wallet at fourohtwo.xyz/agents for server-side limits, an allowlist and a pause switch.
  • Every payment shows on the agent's history page, with a CSV export.

APIs in this guide

Try it free

Questions

Which coins does it pay with?
USDG on Robinhood Chain or USDC on Base, whichever the API accepts and the wallet holds. Set NETWORKS=base to use only Base.
Is the server listed anywhere?
Yes, in the official MCP Registry as xyz.fourohtwo/mcp, and on npm as fourohtwo-mcp.
Does the assistant see my private key?
No. The key stays in the MCP server's environment on your machine; the assistant only sees tool results.

More guides