Skip to content
MCP serverOfficial: Published to the official MCP Registry by the GitHub account or domain it is named after, which owns its code or website.

HTTPayer

MCP server letting AI agents pay for x402-gated APIs with prepaid credits

Runs locally

HTTPayer is a freemium MCP server for agent tooling. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
CLI, API, macOS
Runs
Locally
Version
0.1.7
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add mcp -- npx -y @httpayer/mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@httpayer/mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@httpayer/mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@httpayer/mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@httpayer/mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add mcp -- npx -y @httpayer/mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.mcp]
command = "npx"
args = ["-y", "@httpayer/mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@httpayer/mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@httpayer/mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user mcp npx -- -y @httpayer/mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@httpayer/mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@httpayer/mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@httpayer/mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@httpayer/mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@httpayer/mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@httpayer/mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@httpayer/mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About HTTPayer

HTTPayer gives AI agents a way to call APIs that charge per request under the x402 protocol, without the agent or its operator managing a crypto wallet. Credits are topped up in a dashboard and the proxy settles the on-chain payment behind the scenes whenever a target API answers with a 402.

The package runs locally over stdio through npx and attaches to MCP clients such as Claude Code, Claude Desktop, Cursor, Windsurf, Cline, OpenCode, Zed and Codex. Its tools cover fetching a paid endpoint, dry-running a request to see the cost before spending anything, checking credit balance and daily limits, and polling asynchronous webhook results.

It suits developers who want agents to consume paid data or API services with a simple balance instead of per-service API keys or blockchain setup.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 5 of 6 tools read data; 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

get_balanceName suggests: reads
Check credit balance and daily usage.
fetchName suggests: reads
Make an HTTP request to an x402-enabled endpoint with automatic payment.
simulate
Dry-run a fetch to get a cost estimate without spending credits.
get_topup_linkName suggests: reads
Return the dashboard URL to add credits.
check_limitsName suggests: reads
Check global system daily limits and remaining capacity.
get_webhook_statusName suggests: reads
Poll the status of an async operation by webhook ID.

What it does

Credit-based payments
Agents pay for x402 endpoints from a prepaid credit balance rather than a crypto wallet.
Cost simulation
A dry-run tool returns the estimated charge for a request before any credits are spent.
Balance and limit checks
Tools report current credit balance, daily spend and remaining global capacity.
Automatic retry on 402
The proxy handles payment challenges from the target API and returns the final response.
Async webhook polling
Requests that return a 502 with a webhook ID can be polled until they succeed, fail or are refunded.
Broad client support
Setup targets many MCP clients, with an interactive or non-interactive CLI installer.

Good for

  • Letting an agent fetch paid data feeds without the user setting up a wallet
  • Estimating the cost of an agent's API calls before running them
  • Monitoring credit balance and topping up when it runs low
  • Building agent workflows that call multiple x402-enabled services through one key

Pricing

Freemium

Credit-based; pay by topping up credits, with a 3% proxy fee on target payments

HTTPayer FAQ

Do I need a crypto wallet to use HTTPayer?

No. Payments are made from a credit balance, and the blockchain interaction happens on HTTPayer's side.

How is the server installed?

Run npx @httpayer/mcp setup with an API key, then add the server to your MCP client using npx -y @httpayer/mcp@latest.

What does HTTPayer charge on top of the target price?

A proxy fee of 3% of the target payment is added, and one credit equals 0.001 USDC.

Where is the API key stored?

It is saved in ~/.httpayer/mcp-config.json and can be replaced with the setup command's update-key flag.

How do I add HTTPayer to Claude Code?

Run this command in your terminal: claude mcp add mcp -- npx -y @httpayer/mcp

What are the best alternatives to HTTPayer?

The closest alternatives to HTTPayer are apihubio, X402engine MCP, Ai Agent Hub, x711 — Universal Agent Gas Station and Yieldagentx402.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers