# Security Proxy

> Security Proxy is an MCP server for security. Policy gateway in front of MCP servers: injection checks, PII masking and audit log. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/guardbee/guardbee-mcp/tree/HEAD/packages/security-proxy
- **MCP Registry name:** io.github.GuardBee/security-proxy
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

The proxy launches whatever comes after `--` as the real MCP server, or in gateway mode puts several servers behind one YAML policy where tools appear as `<upstream>__<tool>`. Rules match on tool glob, upstream, label, session state and arguments, and can allow, deny, mask, warn or ask for approval.

Its distinctive feature is toxic-flow blocking: tools are labelled untrusted, sensitive, egress or destructive, and once a session has read untrusted content and sensitive data, a later egress call is blocked in strict mode. The check spans servers, so an issue read from GitHub plus a CRM record can stop a webhook on a third server. A session tool pin keeps the first `tools/list` and refuses calls once a definition drifts.

The README also lists 27 prompt-injection rules in English and Turkish, masking for Turkish identifiers, IBANs, cards and 22 key formats, topic rules, an OpenAI- and Anthropic-compatible LLM gateway with spend budgets, an Agent2Agent gateway and hooks for Claude Code and Cursor. Audit logs are hash-chained and telemetry is off by default.

## Features

- **Toxic-flow blocking:** Tracks untrusted input, sensitive data and egress across servers and blocks the call that completes the trifecta.
- **Gateway policy:** One YAML file applies allow, deny, mask, warn or approve rules to many servers.
- **Injection detection:** 27 rules in English and Turkish applied to requests and tool results.
- **PII and secret masking:** Masks identifiers, cards, IBANs and 22 provider key formats.
- **Tool pinning:** Detects rug pulls when a tool definition changes mid-session.
- **LLM and A2A gateways:** Applies the same policy to model API calls and Agent2Agent traffic.
- **Hash-chained audit log:** Writes every request to console or file.

## Good for

- Put one policy in front of all your MCP servers
- Stop an agent from sending private data to an outside tool
- Mask personal data in tool results
- Keep an audit trail of agent tool calls
- Apply the same rules to Claude Code shell and file tools

## Install

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

```sh
claude mcp add security-proxy -- npx -y @guardbee/mcp-security-proxy
```

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": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "security-proxy": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

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

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

```sh
codex mcp add security-proxy -- npx -y @guardbee/mcp-security-proxy
```

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

```toml
[mcp_servers.security-proxy]
command = "npx"
args = ["-y", "@guardbee/mcp-security-proxy"]
```

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

```json
{
  "mcpServers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user security-proxy npx -- -y @guardbee/mcp-security-proxy

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

```json
{
  "mcpServers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

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": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

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": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
```

## FAQ

### How do I put Security Proxy in front of an existing server?

Add the proxy command with `--` followed by the real server's command, or run `init` to move your stdio servers into a gateway config.

### What does lethal-trifecta blocking do?

Once a session has read untrusted content and sensitive data, it blocks an egress call in strict mode and only logs it in warn mode.

### Does Security Proxy send telemetry?

Not by default; set GUARDBEE_TELEMETRY=1 to enable anonymous usage telemetry.

### Does Security Proxy only watch tool calls?

No; it also covers prompts through an LLM API gateway and Agent2Agent calls.

### How do I add Security Proxy to Claude Code?

Run this command in your terminal: claude mcp add security-proxy -- npx -y @guardbee/mcp-security-proxy

### What are the best alternatives to Security Proxy?

The closest alternatives to Security Proxy are REA, Codebase Memory, Serena MCP: the IDE for your agent, XERJ and Context7.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/security-proxy-2
