# AgentDiet MCP Gateway – X402 Broker

> AgentDiet MCP Gateway – X402 Broker is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Routes agent requests through a unified gateway to 31,390+ MCP servers, x402 APIs, and A2A agents, settling micro-payments in USDC on Base.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-mcp-gateway-x402-broker-f989c153
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LTdcWu0TLBSJkX8JPSy82

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentdiet-mcp-gateway-x402-broker-f989c153
```

Example prompt: Route a GET request to the target MCP server URL I need through the AgentDiet broker and return the result — it'll settle the $0.001 USDC fee automatically on Base.

## When to prefer this

Choose this endpoint when your agent needs to access any of 31,390+ MCP servers, x402 APIs, or A2A agents through a single unified gateway without building custom per-service payment logic. It is ideal when you want deterministic USDC micropayment settlement on Base handled transparently, or when you need a single broker interface rather than managing individual MCP server connections.

## Known failure modes

- Invalid or unreachable target URL returns an error status
- Insufficient USDC balance on Base causes payment failure and request rejection
- Unsupported HTTP method (not GET or POST) results in schema validation error
- Missing required 'type' or 'method' fields in input returns a 400-level error
- Target MCP server timeout or unavailability propagates as a gateway error

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a 'data' field containing the proxied response payload, a 'status' field ('ok' on success), and an 'roi_proof' object including a compression_ratio_pct metric demonstrating efficiency of the routed call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "mode": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-mcp-gateway-x402-broker-f989c153/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-gateway.agentdiet.dev](https://www.zero.xyz/host/mcp-gateway.agentdiet.dev/llms.txt)
