Skip to content
MCP server

Security Proxy

Policy gateway in front of MCP servers: injection checks, PII masking and audit log

Runs locally

Security Proxy is an MCP server for security. It runs locally on your machine and is started by your AI client.

Platforms
CLI, Self-hosted
Runs
Locally
Version
1.42.0
Listing updated

Similar MCP servers

Install

You install MCP servers on a computer. Send yourself the link.

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "security-proxy": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-security-proxy"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Security Proxy

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.

What it does

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

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.

How AIPoweredBot checks servers