# MCP Security - Prompt Injection & Jailbreak Firewall

> MCP Security - Prompt Injection & Jailbreak Firewall is a paid API for AI agents from mesh.agentdiet.dev, paid per call via x402 or MPP, $0.005/call, status unknown (last checked 2026-11-19).

Scans untrusted text, HTML, emails, MCP responses, or A2A payloads for hidden prompt injection and jailbreak payloads, returning a sanitized analysis.

## Facts

- Endpoint: GET https://mesh.agentdiet.dev/v1/mcp-security?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mcp-security-prompt-injection-jailbreak-firewall-e9369d5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iOfto2vma1pgx6DfQA0E6

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 mcp-security-prompt-injection-jailbreak-firewall-e9369d5f
```

Example prompt: Can you scan this HTML I just scraped — I need to check it for hidden prompt injections or jailbreak payloads before I let my pipeline process it: '<html>...suspicious content...</html>'

## When to prefer this

Choose this endpoint when your agent pipeline ingests content from untrusted external sources — web scrapes, user emails, third-party MCP tool responses, or A2A agent messages — and you need to validate that content before acting on it. Ideal for multi-agent systems where one compromised tool response could propagate adversarial instructions downstream.

## Known failure modes

- Empty or missing 'text' parameter returns a validation error
- Payload exceeds size limits causing a rejection
- Service temporarily unavailable returns a 5xx error
- Ambiguous or benign text may produce false positives or false negatives
- Pagination cursor mismatch or expiry causes a failed page fetch

## How this service works

Scans untrusted web pages, emails, MCP responses, or A2A payloads for hidden prompt injections and returns sanitized text. (Live x402 v2, IETF MPP & MCP endpoint at https://mesh.agentdiet.dev/v1/mcp-security)

## Output

A structured object indicating whether prompt injection or jailbreak payloads were detected in the submitted text, along with sanitized content and flagged segments. Supports paginated results up to 100 items per page via cursor-based pagination.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "minLength": 1,
   "description": "Untrusted text, HTML, or tool output to scan for hidden prompt injection or jailbreak payloads"
  },
  "limit": {
   "type": "integer",
   "default": 20,
   "maximum": 100,
   "minimum": 1,
   "description": "Maximum number of items to return per page (1-100)"
  },
  "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/mcp-security-prompt-injection-jailbreak-firewall-e9369d5f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mesh.agentdiet.dev](https://www.zero.xyz/host/mesh.agentdiet.dev/llms.txt)
