# HTTPayer

> HTTPayer is a freemium MCP server for agent tooling. MCP server letting AI agents pay for x402-gated APIs with prepaid credits. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API, macOS, Windows, Linux
- **Repository:** https://github.com/httpayer/mcp
- **MCP Registry name:** io.github.HTTPayer/mcp
- **Categories:** [agent tooling](https://ai-powered.com/categories/agent-tooling)
- **Listing updated:** 2026-11-21

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

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

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

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

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

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_balance` (name suggests: reads): Check credit balance and daily usage.
- `fetch` (name 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_link` (name suggests: reads): Return the dashboard URL to add credits.
- `check_limits` (name suggests: reads): Check global system daily limits and remaining capacity.
- `get_webhook_status` (name suggests: reads): Poll the status of an async operation by webhook ID.

## 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.

## Alternatives

- [apihubio](https://ai-powered.com/mcp/apihubio): apihubio is a freemium MCP server for agent tooling.
- [X402engine MCP](https://ai-powered.com/mcp/x402engine-mcp): X402engine MCP is a paid MCP server for agent tooling.
- [Ai Agent Hub](https://ai-powered.com/mcp/ai-agent-hub): Ai Agent Hub is a paid MCP server for agent tooling.
- [x711 — Universal Agent Gas Station](https://ai-powered.com/mcp/x711-universal-agent-gas-station): x711 — Universal Agent Gas Station is a freemium MCP server for agent tooling.
- [Yieldagentx402](https://ai-powered.com/mcp/yieldagentx402): Yieldagentx402 is an MCP server for crypto and web3.
- [X402 Helper MCP](https://ai-powered.com/mcp/x402-helper-mcp): X402 Helper MCP is an MCP server for agent tooling.
- [X402 MCP Server](https://ai-powered.com/mcp/x402-mcp-server-3): X402 MCP Server is a paid MCP server for agent tooling.
- [X402tools](https://ai-powered.com/mcp/x402tools): X402tools is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/httpayer
