Are you the author? Sign in to claim
Zero-Trust PII & secrets sanitizer. Locally scrubs data in-memory before sending context to LLMs.
CISO-Approved Zero-Trust PII & Secrets Redaction MCP Server for Cursor, Windsurf, and Claude Desktop. Locally scrubs PII, secrets, credentials, and custom regex rules from files and text contexts before they reach remote LLM providers to prevent API leaks and ensure HIPAA/SOC 2 compliance at the developer endpoint.
All sensitive parameters, identifiers, and variables are intercepted locally inside your machine's RAM. They are replaced by tokens (e.g. [EMAIL_1]) before being sent to the AI. Once the AI responds, the tokens are safely swapped back to original values in your local context.
[Raw Input / Files] ──> [MCP sanitize_text] ──> [Masked Tokens] ──> [LLM API]
│ │
(In-Memory Map) (Result)
│ │
[Original Output] <─── [MCP reveal_text] <─────────────────────────────┘
To automatically configure and run with your preferred client, install using Smithery:
npx -y @smithery/cli install @privacyscrubber/mcp-server --write-to-clients
Run the server directly without local installation:
npx -y @privacyscrubber/mcp-server
Add this to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"privacyscrubber": {
"command": "npx",
"args": ["-y", "@privacyscrubber/mcp-server"],
"env": {
"PRIVACYSCRUBBER_KEY": "YOUR_OPTIONAL_PRO_LICENSE_KEY"
}
}
}
}
privacyscrubbercommandnpx -y @privacyscrubber/mcp-serverPRIVACYSCRUBBER_KEY as an environment variable in your system shell.sanitize_textRedacts PII, secrets, API keys, and credentials from a text block and populates the volatile local replacement mapping.
text (string, required): The raw content or logs to sanitize.profile (string, optional): Gated industry detection profile (e.g., 'General', 'Dev', 'Medical', 'Legal', 'Compliance'). Defaults to 'General'.{
"method": "tools/call",
"params": {
"name": "sanitize_text",
"arguments": {
"text": "Contact me at dev-key-1234 or jane.doe@company.com",
"profile": "General"
}
}
}
{
"content": [
{
"type": "text",
"text": "Contact me at [SECRET_1] or [EMAIL_1]"
}
]
}
reveal_textDetokenizes the AI response back to the original values locally.
text (string, required): The response from the LLM containing tokenized placeholders.{
"method": "tools/call",
"params": {
"name": "reveal_text",
"arguments": {
"text": "Please reach out to [EMAIL_1] regarding the update."
}
}
}
{
"content": [
{
"type": "text",
"text": "Please reach out to jane.doe@company.com regarding the update."
}
]
}
sanitize_fileReads a local file, extracts text, sanitizes it, and returns the redacted template for LLM analysis.
.docx) documents.filePath (string, required): Absolute file path to read and sanitize.profile (string, optional): The industry detection profile.Looking for real-time protection directly inside your web browser?
By default, the server runs under the Free Tier (restricted to 50,000 characters per request and the basic General PII profile). To unlock advanced engineering, medical, legal, and financial PII profiles, as well as team-wide custom rules, you can purchase a commercial license.
| Feature | Free Tier | PRO Tier | TEAMS Tier |
|---|---|---|---|
| Volatile Tokenization | ✅ Yes | ✅ Yes | ✅ Yes |
| Standard PII Masking | ✅ Yes | ✅ Yes | ✅ Yes |
| Max Character Length | 50,000 chars | ♾️ Unlimited | ♾️ Unlimited |
| Industry Profiles | General Only | 22+ Profiles | 22+ Profiles |
| Custom Regex Rules | ❌ Locked | ♾️ Unlimited | ♾️ Unlimited |
| Team Rules Sync (GPO) | ❌ No | ❌ No | ✅ Yes (Shared Link) |
| Licensing Cost | $0 | $110 Lifetime | $99/mo Flat Rate |
👉 Acquire a PRO / TEAMS License Key at privacyscrubber.com/pricing
check_statusReturns a visual dashboard showing your current tier, session request count, active profiles, and upgrade instructions. Use it at any time to check your license status or get setup help.
{
"method": "tools/call",
"params": { "name": "check_status", "arguments": {} }
}
╔══════════════════════════════════════════════════╗
║ PrivacyScrubber MCP Server v1.6.6 ║
╠══════════════════════════════════════════════════╣
║ 🔓 Tier: FREE ║
║ 📊 Session requests: 5 ║
║ 📁 Input size limit: 50,000 characters per request║
╠══════════════════════════════════════════════════╣
║ 🏷️ Profiles: General only — PRO unlocks 22 more ║
║ 📋 Custom rules: 🔒 Locked — requires PRO ║
╠══════════════════════════════════════════════════╣
║ 💳 Upgrade to PRO — $110 Lifetime ║
║ https://privacyscrubber.com/pricing ║
╠══════════════════════════════════════════════════╣
║ After purchase, add your key to MCP config: ║
║ "PRIVACYSCRUBBER_KEY": "<your-key-here>" ║
║ Full setup guide: ║
║ https://privacyscrubber.com/features/mcp/ ║
╚══════════════════════════════════════════════════╝
After purchasing a PRO license at privacyscrubber.com/pricing, you will receive a license key. Add it to your MCP client config as an environment variable: PRIVACYSCRUBBER_KEY.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"privacyscrubber": {
"command": "npx",
"args": ["-y", "@privacyscrubber/mcp-server"],
"env": {
"PRIVACYSCRUBBER_KEY": "YOUR_LICENSE_KEY_HERE"
}
}
}
}
Restart Claude Desktop after saving.
privacyscrubber and click Edit.PRIVACYSCRUBBER_KEY=YOUR_LICENSE_KEY_HERE.Alternatively, export it system-wide so all tools pick it up:
# macOS / Linux — add to ~/.zshrc or ~/.bashrc
export PRIVACYSCRUBBER_KEY="YOUR_LICENSE_KEY_HERE"
Edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"privacyscrubber": {
"command": "npx",
"args": ["-y", "@privacyscrubber/mcp-server"],
"env": {
"PRIVACYSCRUBBER_KEY": "YOUR_LICENSE_KEY_HERE"
}
}
}
}
After adding the key, ask your AI agent to call check_status:
Use the check_status tool from PrivacyScrubber MCP
The dashboard should show Tier: PRO and all profiles unlocked.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows