# x402-gateway

> x402-gateway is a paid MCP server for mcp data access. Pay-per-call MCP server for citation checks, JSON extraction and crypto audits on Base. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API
- **Website:** https://x402-gateway.grokrepay.workers.dev
- **Repository:** https://github.com/ettathejetta/x402-gateway-mcp
- **GitHub stars:** 0
- **MCP Registry name:** io.github.ettathejetta/x402-gateway
- **Categories:** [mcp data access](https://ai-powered.com/categories/mcp-data-access)
- **Listing updated:** 2026-11-30

## About

Instead of a monthly subscription, this server charges a few cents each time an AI client calls one of its tools. Payments use the x402 protocol with USDC on the Base network, so a client settles each request on-chain before the result is returned.

The service is reachable as a remote MCP endpoint over streamable HTTP, and the same tools are also offered as plain HTTP routes with an OpenAPI description and x402 discovery files. Tool calls return 402 Payment Required until a valid payment signature accompanies the request.

It suits developers and agents that need occasional verification or extraction work without managing API keys or billing accounts. Prices run from $0.01 for citation and JSON tasks up to $0.02 for the crypto audit.

## Features

- **Pay per tool call:** Each request is billed individually in USDC on Base, with no account or subscription needed.
- **Citation verification:** Fetches a public page and checks whether it supports a quoted claim using Workers AI.
- **Schema-based JSON extraction:** Pulls structured JSON from a URL or pasted text according to a schema you supply.
- **Crypto signal audit:** Runs a sanity check on a token or contract claim using on-chain and public data on Base.
- **Standard MCP transport:** Works with MCP clients over streamable HTTP at a single endpoint.
- **Discovery endpoints:** Publishes x402, OpenAPI and llms.txt files so clients can find pricing and routes automatically.

## Good for

- Verifying that a cited web source actually supports the claim attributed to it
- Turning web pages or raw text into structured JSON for an agent pipeline
- Running a quick on-chain sanity check on a token or contract before acting on a claim
- Adding paid verification tools to an agent without setting up API keys

## Install

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

```sh
claude mcp add --transport http x402-gateway https://x402-gateway.grokrepay.workers.dev/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": {
    "x402-gateway": {
      "type": "http",
      "url": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://x402-gateway.grokrepay.workers.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "x402-gateway": {
      "url": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "x402-gateway": {
      "type": "http",
      "url": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

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

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://x402-gateway.grokrepay.workers.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

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

```sh
codex mcp add x402-gateway --url https://x402-gateway.grokrepay.workers.dev/mcp
```

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

```toml
[mcp_servers.x402-gateway]
url = "https://x402-gateway.grokrepay.workers.dev/mcp"
```

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

```json
{
  "mcpServers": {
    "x402-gateway": {
      "httpUrl": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http x402-gateway https://x402-gateway.grokrepay.workers.dev/mcp

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

```json
{
  "mcpServers": {
    "x402-gateway": {
      "serverUrl": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "x402-gateway": {
      "url": "https://x402-gateway.grokrepay.workers.dev/mcp",
      "transport": "http"
    }
  }
}
```

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": {
    "x402-gateway": {
      "type": "streamableHttp",
      "url": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "x402-gateway": {
      "url": "https://x402-gateway.grokrepay.workers.dev/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": {
    "x402-gateway": {
      "url": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "x402-gateway": {
      "url": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "x402-gateway": {
      "url": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

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

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://x402-gateway.grokrepay.workers.dev/mcp
```

Enter a Name (for example "x402-gateway"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "x402-gateway": {
      "type": "http",
      "url": "https://x402-gateway.grokrepay.workers.dev/mcp"
    }
  }
}
```

## Tools

Going by the tool names, 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `verify-citation`: Fetch a public web page and verify whether it supports a quoted claim using Workers AI.
- `extract-json`: Extract structured JSON from a URL or text against a provided JSON schema using Workers AI.
- `crypto-signal-audit`: On-chain/public-data sanity audit of a token or contract claim on Base.
- `prediction-mispricing`: Compare Polymarket prices with recent public news headlines and return markets where the price appears to have moved less than the news suggests.

## FAQ

### How is the server paid for?

Each tool call returns 402 Payment Required until a valid PAYMENT-SIGNATURE header is supplied. Payments are made in USDC on Base (eip155:8453) under the x402 v2 protocol.

### What does each tool cost?

verify-citation and extract-json cost $0.01 per call, crypto-signal-audit costs $0.02, and prediction-mispricing costs $0.05.

### Which endpoint should an MCP client use?

The MCP streamable-HTTP endpoint is https://x402-gateway.grokrepay.workers.dev/mcp.

### How do I add x402-gateway to Claude Code?

Run this command in your terminal: claude mcp add --transport http x402-gateway https://x402-gateway.grokrepay.workers.dev/mcp

### What are the best alternatives to x402-gateway?

The closest alternatives to x402-gateway are x402 Tools, Gate402 MCP, X402 MCP Tools, x402 Data for Agents and X402 Tools MCP.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 3 December 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [x402 Tools](https://ai-powered.com/mcp/x402-tools-2): x402 Tools is a freemium MCP server for mcp data access.
- [Gate402 MCP](https://ai-powered.com/mcp/gate402-mcp): Gate402 MCP is a freemium MCP server for mcp data access.
- [X402 MCP Tools](https://ai-powered.com/mcp/x402-mcp-tools): X402 MCP Tools is a paid MCP server for mcp data access.
- [x402 Data for Agents](https://ai-powered.com/mcp/x402-data-for-agents): x402 Data for Agents is a free MCP server for mcp data access.
- [X402 Tools MCP](https://ai-powered.com/mcp/x402-tools-mcp): X402 Tools MCP is a paid MCP server for mcp data access.
- [Nullroute x402 Agent Toolkit](https://ai-powered.com/mcp/nullroute-x402-agent-toolkit): Nullroute x402 Agent Toolkit is a paid MCP server for mcp data access.
- [x402 tools](https://ai-powered.com/mcp/x402-tools-3): x402 tools is a paid MCP server for web search and scraping.
- [AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools](https://ai-powered.com/mcp/agentx402-pay-per-call-ai-web-render-search-and-defi-tools): AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools is a freemium MCP server for cloud and infrastructure.

---
Source: https://ai-powered.com/mcp/x402-gateway-2
