# AgentDiet MCP Gateway — Meta-Router & Context Window Distiller

> AgentDiet MCP Gateway — Meta-Router & Context Window Distiller is a paid API for AI agents from mcp-security.agentdiet.dev, paid per call via x402 or MPP, $0.01/call, status unknown (last checked 2026-11-20).

Searches a unified index of 500+ MCP servers and A2A tools with 85% token compression, returning matching capabilities with pagination support

## Facts

- Endpoint: GET https://mcp-security.agentdiet.dev/v1/mcp-gateway?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-mcp-gateway-meta-router-context-window-distiller-ea2a04a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XeBbSQuxf1egyNOQDgEsC

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-meta-router-context-window-distiller-ea2a04a2
```

Example prompt: Search the AgentDiet MCP gateway for up to 20 tools related to 'context compression' so I can find the right capability without blowing my token budget.

## When to prefer this

Choose this endpoint when an AI agent needs to discover which MCP servers or A2A tools exist for a given capability without connecting to each individually, especially when token budget is a concern — the 85% compression makes it far more efficient than querying multiple registries separately. Ideal for meta-routing, tool orchestration, and agent bootstrapping scenarios.

## Known failure modes

- Empty query string returns validation error (minLength:1 violated)
- Limit outside 1-100 range returns schema validation error
- Invalid or expired cursor causes pagination error
- No matching results for highly specific queries returns empty list
- Gateway connectivity issues to upstream MCP servers may yield partial results

## How this service works

Single-connection meta-router indexing 500+ MCP servers & A2A tools with 85% token compression and Prompt-Guard firewall. (Live x402 v2, IETF MPP & MCP endpoint at https://mcp-security.agentdiet.dev/v1/mcp-gateway)

## Output

Returns a paginated list of matching MCP server or A2A tool entries from the 500+ endpoint index, with capability metadata and an optional next-page cursor, all delivered in a token-compressed format to minimize context window usage.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "limit": {
   "type": "integer",
   "default": 20,
   "maximum": 100,
   "minimum": 1,
   "description": "Maximum number of items to return per page (1-100)"
  },
  "query": {
   "type": "string",
   "minLength": 1,
   "description": "Capability search query (e.g. 'context compression', 'github security', 'sec filings', 'company enrichment') or endpoint URL to verify"
  },
  "cursor": {
   "type": "string",
   "description": "Opaque pagination cursor for fetching the next page"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-mcp-gateway-meta-router-context-window-distiller-ea2a04a2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-security.agentdiet.dev](https://www.zero.xyz/host/mcp-security.agentdiet.dev/llms.txt)
