# security-proxy MCP server

> Acts as a transparent security gateway for MCP servers to block prompt injections, mask PII, and enforce access policies.

- Repository: https://github.com/GuardBee/guardbee-mcp
- Page: https://hostedmcp.org/servers/guardbee/security-proxy
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 1.4.0

## Install

### Claude Code

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

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

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

### VS Code (`.vscode/mcp.json`)

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

### VS Code CLI

```sh
code --add-mcp '{"name":"security-proxy","type":"stdio","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"
      ]
    }
  }
}
```

### Codex

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

### Codex config.toml (`~/.codex/config.toml`)

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

### Gemini CLI

```sh
gemini mcp add -s user security-proxy npx -- -y @guardbee/mcp-security-proxy
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `OTEL_EXPORTER_OTLP_ENDPOINT` | no | no |  |
| `OTEL_EXPORTER_OTLP_HEADERS` | no | no |  |
| `OTEL_SERVICE_NAME` | no | no |  |

## FAQ

### What does the security proxy protect against?

It protects against prompt injection attacks, tool-result injection, and the leaking of PII or secrets.

### Does the proxy require code changes to my existing servers?

No, it can be attached in front of any existing MCP server without modifying its code.

### How does the proxy handle sensitive data like IBAN or credit card numbers?

It uses PII masking to identify and mask various formats including IBAN, card numbers, and phone numbers in responses.
