# PrivacyScrubber PII Masking MCP

> PrivacyScrubber PII Masking MCP is a freemium MCP server for security. Mask PII and secrets in local memory before text reaches an AI model. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $15 a month
- **Platforms:** CLI, macOS, Windows, Linux
- **Website:** https://privacyscrubber.com/pii-mcp/
- **Repository:** https://github.com/moxno/privacyscrubber-mcp
- **MCP Registry name:** io.github.moxno/privacyscrubber-mcp
- **Categories:** security
- **Listing updated:** 2026-11-14

## About

PrivacyScrubber sits between your files and the model. Its `sanitize_text` tool swaps names, emails, phone numbers, card numbers, API keys and similar values for typed tokens such as `[EMAIL_1]`, and `reveal_text` restores the originals in the model's reply. The mapping lives in memory on your machine, so the real values are not sent to the provider.

The server runs through `npx -y @privacyscrubber/mcp-server` (or the PyPI package) and an installer can detect Cursor, Claude Desktop, Claude Code, VS Code, Zed, Windsurf and Cline and add the configuration without overwriting existing servers. The vendor says it runs in-process at about 8.4 MB/s with no network egress, and a free tier covers general detection with a quota of industry profiles.

Paid keys unlock more: Pro at $15 a month for all 30 industry profiles such as medical, legal, DevOps and finance, Teams at $99 a month, and a Developer SDK at $299 a month for backend pipelines. The vendor frames the tool around GDPR, HIPAA and SOC 2 safeguards; treat those as its claims, not certifications.

## Features

- **Typed token masking:** Replaces sensitive values with tokens like [EMAIL_1] that keep the sentence readable to a model.
- **Reveal step:** `reveal_text` swaps the tokens back to the real values in the response.
- **In-memory processing:** The value map is held in local RAM with no cloud round trip.
- **Industry profiles:** Optional profiles for medical, legal, DevOps, finance, sales, HR and more.
- **Auto installer:** One command configures supported editors and agents.
- **Custom rules:** Paid plans add custom regex and keyword rules for internal codenames.

## Good for

- Strip API keys and credentials from logs before pasting them to an assistant
- Mask customer names and emails in support tickets
- Sanitize code context in Cursor or Claude Code
- Redact patient or client details before drafting with an LLM

## Install

### Claude Code (Terminal)

```sh
claude mcp add privacyscrubber-mcp --env PRIVACYSCRUBBER_KEY='<PRIVACYSCRUBBER_KEY>' -- npx -y @privacyscrubber/mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "privacyscrubber-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@privacyscrubber/mcp-server"
      ],
      "env": {
        "PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "privacyscrubber-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@privacyscrubber/mcp-server"
      ],
      "env": {
        "PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "privacyscrubber-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@privacyscrubber/mcp-server"
      ],
      "env": {
        "PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "privacyscrubber-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@privacyscrubber/mcp-server"
      ],
      "env": {
        "PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "privacyscrubber-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@privacyscrubber/mcp-server"
      ],
      "env": {
        "PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
      }
    }
  }
}
```

## Tools

- `sanitize_text`: Replaces PII and secrets with tokens held in a local in-memory map.
- `reveal_text`: Restores the original values in a response from the stored tokens.

## FAQ

### Does text leave my machine to be masked?

The vendor says masking runs in local memory with zero cloud egress.

### Which tools does it expose?

`sanitize_text` masks sensitive values and `reveal_text` restores them.

### Is there a free version?

Yes. The free tier covers general detection, with a quota for the industry profiles; Pro is $15 a month.

### Which clients does the installer support?

Cursor, Claude Desktop, Claude Code, VS Code, Zed, Windsurf and Cline.

### Is PrivacyScrubber PII Masking MCP free?

PrivacyScrubber PII Masking MCP has a free plan, with paid plans for more usage or features. Paid plans start at $15 a month.

### How do I add PrivacyScrubber PII Masking MCP to Claude Code?

Run this command in your terminal: claude mcp add privacyscrubber-mcp --env PRIVACYSCRUBBER_KEY='<PRIVACYSCRUBBER_KEY>' -- npx -y @privacyscrubber/mcp-server

### What are the best alternatives to PrivacyScrubber PII Masking MCP?

The closest alternatives to PrivacyScrubber PII Masking MCP are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Where this comes from

- Description: written from the project's README and the project's website.
- 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.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/privacyscrubber-pii-masking-mcp
