PrivacyScrubber PII Masking MCP
Mask PII and secrets in local memory before text reaches an AI model
- Pricing
- Freemium
- Platforms
- CLI, macOS, Windows
- Runs
- Locally
- Version
- 2.5.0
- Listing updated
- 4 days ago
Similar MCP servers
About PrivacyScrubber PII Masking MCP
PrivacyScrubber PII Masking MCP is a freemium MCP server for security. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a terminal
claude mcp add privacyscrubber-mcp --env PRIVACYSCRUBBER_KEY='<PRIVACYSCRUBBER_KEY>' -- npx -y @privacyscrubber/mcp-serverAdd to claude_desktop_config.json
{
"mcpServers": {
"privacyscrubber-mcp": {
"command": "npx",
"args": [
"-y",
"@privacyscrubber/mcp-server"
],
"env": {
"PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"privacyscrubber-mcp": {
"command": "npx",
"args": [
"-y",
"@privacyscrubber/mcp-server"
],
"env": {
"PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"privacyscrubber-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@privacyscrubber/mcp-server"
],
"env": {
"PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"privacyscrubber-mcp": {
"command": "npx",
"args": [
"-y",
"@privacyscrubber/mcp-server"
],
"env": {
"PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"privacyscrubber-mcp": {
"command": "npx",
"args": [
"-y",
"@privacyscrubber/mcp-server"
],
"env": {
"PRIVACYSCRUBBER_KEY": "<PRIVACYSCRUBBER_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
PRIVACYSCRUBBER_KEYOptional PRO or TEAMS license key to unlock specialized detection profiles.PRIVACYSCRUBBER_KEYOptional PRO or TEAMS license key to unlock specialized detection profiles.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
- 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.
What it does
- 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
Pricing
Freemium, from $15 a month
Free tier; Pro $15/mo, Teams $99/mo, SDK $299/mo
Prices change. Check privacyscrubber.com before you buy.
PrivacyScrubber PII Masking MCP 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 to PrivacyScrubber PII Masking MCP

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 467K GitHub stars
- Developer tools
Agent Roast
MCP serverOffline review that flags agent changes which weaken tests, assertions or CI
Runs locally- Open source
- 4 Hacker News points
- Developer tools

Midplane
MCP serverPostgres gateway for AI agents with table grants, column masking and approval for writes
Runs locally- Open source
- 5 GitHub stars
- Databases

Leash
MCP serverReview what your AI touched, approve risky actions and undo supported changes
- 1 tool
- Remote
- Free
- 1 GitHub star
- Security
Zero-log MCP server with 49 tools for AI guardrails, secret scanning and EU compliance
- 49 tools
- Remote
- Freemium
- Security

SecureCloud
MCP serverSentinelOne and IT security catalog, prices, quotes and checkout links for Israel
- 7 tools
- Remote
- Free
- Security