# AI Agent Guardrail MCP

> AI Agent Guardrail MCP is a paid MCP server for ai models and llm tooling. Zero-LLM guardrail MCP server for prompt injection detection and PII redaction. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web, CLI
- **Website:** https://apify.com/shikitoka/ai-agent-guardrail-mcp
- **MCP Registry name:** io.github.dev-shiki/ai-agent-guardrail-mcp
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-27

## About

Sits between untrusted text and an agent's next step, scanning scraped pages, emails and retrieved documents for injection attempts and invisible Unicode tricks before the content reaches a model. It runs deterministic rules rather than calling another language model, so each check is fast and repeatable.

Beyond injection scanning, it masks or replaces personal data such as emails, phone numbers, card numbers, national IDs, IBANs, IP addresses and secrets, with a choice of mask, placeholder or HMAC-SHA256 output. A separate repair tool fixes broken JSON from LLM or scraper output, including truncated, single-quoted, trailing-comma and markdown-fenced payloads, and can coerce it to a supplied JSON Schema.

It suits developers wiring RAG pipelines, MCP-connected assistants or n8n and Make workflows who need a sanitising step with predictable cost. Usage is billed per item through Apify, and failed or invalid inputs are not charged.

## Features

- **Prompt injection scanning:** Flags instruction overrides, role-delimiter spoofing, system prompt leak attempts, jailbreaks and tool hijacking phrases.
- **Invisible character detection:** Catches zero-width characters, bidirectional overrides and Unicode tag smuggling hidden in text.
- **PII redaction modes:** Redacts emails, phones, cards, SSNs, IBANs, IPs and secrets using mask, placeholder or HMAC-SHA256 output.
- **Combined guard call:** One operation injects scanning and redaction together for untrusted scraped text and emails.
- **Malformed JSON repair:** Repairs truncated, single-quoted, trailing-comma or markdown-fenced JSON with optional schema coercion.
- **Batch and MCP access:** Available as a streamable HTTP MCP endpoint or as synchronous API runs for n8n and similar tools.

## Good for

- Screening scraped web pages before they enter a RAG knowledge base
- Stripping personal data from inbound emails before an agent summarises them
- Validating tool arguments and repairing malformed JSON returned by an LLM
- Adding a deterministic safety step inside n8n or Make automations
- Hashing identifiers with HMAC so records stay linkable without exposing raw values

## Install

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

```sh
claude mcp add --transport http ai-agent-guardrail-mcp https://shikitoka--ai-agent-guardrail-mcp.apify.actor/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": {
    "ai-agent-guardrail-mcp": {
      "type": "http",
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp"
    }
  }
}
```

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

```text
https://shikitoka--ai-agent-guardrail-mcp.apify.actor/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": {
    "ai-agent-guardrail-mcp": {
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "ai-agent-guardrail-mcp": {
      "type": "http",
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/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://shikitoka--ai-agent-guardrail-mcp.apify.actor/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 ai-agent-guardrail-mcp --url https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp
```

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

```toml
[mcp_servers.ai-agent-guardrail-mcp]
url = "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp"
```

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

```json
{
  "mcpServers": {
    "ai-agent-guardrail-mcp": {
      "httpUrl": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http ai-agent-guardrail-mcp https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp

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

```json
{
  "mcpServers": {
    "ai-agent-guardrail-mcp": {
      "serverUrl": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "ai-agent-guardrail-mcp": {
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/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": {
    "ai-agent-guardrail-mcp": {
      "type": "streamableHttp",
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ai-agent-guardrail-mcp": {
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/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": {
    "ai-agent-guardrail-mcp": {
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "ai-agent-guardrail-mcp": {
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "ai-agent-guardrail-mcp": {
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/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://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp
```

Enter a Name (for example "AI Agent Guardrail MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for sign-in. Add the credentials it needs under HTTP headers or in the OAuth fields, as its docs describe.

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

```json
{
  "mcpServers": {
    "ai-agent-guardrail-mcp": {
      "type": "http",
      "url": "https://shikitoka--ai-agent-guardrail-mcp.apify.actor/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.

- `guard_and_sanitize`: Scans untrusted text for prompt injection and redacts PII in one call.
- `scan_prompt_injection`: Detects instruction overrides, jailbreaks, tool hijacks and invisible Unicode attacks.
- `redact_pii`: Redacts PII in mask, placeholder or hmac-sha256 mode.
- `heal_json`: Repairs broken, truncated or fenced JSON with optional JSON Schema coercion.

## FAQ

### Does AI Agent Guardrail MCP use an LLM to make its decisions?

No. The guardrail checks are deterministic and do not call a language model.

### How is usage charged?

Per item: text-guarded and json-healed calls are each listed at $0.002 per item, and failed or invalid inputs are not charged.

### How do I connect AI Agent Guardrail MCP to Claude or Cursor?

Add it as an HTTP MCP server at the listed endpoint with an Apify API token in the Authorization header.

### Which PII types are covered?

Emails, phone numbers, credit card numbers, SSNs, IBANs, IP addresses and secrets.

### Is AI Agent Guardrail MCP free?

No. AI Agent Guardrail MCP is a paid product.

### How do I add AI Agent Guardrail MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http ai-agent-guardrail-mcp https://shikitoka--ai-agent-guardrail-mcp.apify.actor/mcp

### What are the best alternatives to AI Agent Guardrail MCP?

The closest alternatives to AI Agent Guardrail MCP are Prompt Injection Scanner, Prompt Guard MCP, Agent Guard Prompt Injection & PII Firewall (x402), Nexus MCP and Agent Firewall MCP.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status: checked automatically by AIPoweredBot on 28 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Prompt Injection Scanner](https://ai-powered.com/mcp/prompt-injection-scanner-2): Prompt Injection Scanner is a free MCP server for ai models and llm tooling.
- [Prompt Guard MCP](https://ai-powered.com/mcp/prompt-guard-mcp): Prompt Guard MCP is an MCP server for ai models and llm tooling.
- [Agent Guard Prompt Injection & PII Firewall (x402)](https://ai-powered.com/mcp/agent-guard-prompt-injection-and-pii-firewall-x402): Agent Guard Prompt Injection & PII Firewall (x402) is a paid MCP server for ai models and llm tooling.
- [Nexus MCP](https://ai-powered.com/mcp/nexus-mcp-4): Nexus MCP is a freemium MCP server for ai models and llm tooling.
- [Agent Firewall MCP](https://ai-powered.com/mcp/agent-firewall-mcp): Agent Firewall MCP is an open-source MCP server for security.
- [APEX Agent Safety & Guardrails](https://ai-powered.com/mcp/apex-agent-safety-and-guardrails): APEX Agent Safety & Guardrails is a paid MCP server for security.
- [Prompt Injection Scanner](https://ai-powered.com/mcp/prompt-injection-scanner-3): Prompt Injection Scanner is an open-source MCP server for ai models and llm tooling.
- [Agentshield MCP](https://ai-powered.com/mcp/agentshield-mcp): Agentshield MCP is a freemium MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/ai-agent-guardrail-mcp
