Skip to content
VS Code

Redact MCP for VS Code

io.github.r3352/redact-mcp

Auto-detects and obfuscates PII (IPs, emails, API keys, names) so Claude never sees real client data

client:VS Code transport:stdio runtime:npm

Install Redact MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "redact-audit-log",
      "description": "REDACT_AUDIT_LOG",
      "password": true
    },
    {
      "type": "promptString",
      "id": "redact-data-dir",
      "description": "REDACT_DATA_DIR",
      "password": true
    }
  ],
  "servers": {
    "redact-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mattzam/redact-mcp"
      ],
      "env": {
        "REDACT_AUDIT_LOG": "${input:redact-audit-log}",
        "REDACT_DATA_DIR": "${input:redact-data-dir}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Redact MCP in other clients