The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Privacyscrubber MCP listing page.
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.
To automatically configure and run with your preferred client, install using Smithery:
Run the server directly without local installation:
Need direct, in-memory zero-trust PII sanitization in your backend microservice or custom AI agent rather than an MCP server? Use our official zero-dependency SDK:
👉 View @privacyscrubber/sdk on NPM | Includes wrapOpenAI() middleware, TypeScript definitions, and 25 compliance profiles.
Add this to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonprivacyscrubbercommandnpx -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'.reveal_textDetokenizes the AI response back to the original values locally.
text (string, required): The response from the LLM containing tokenized placeholders.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 15,000 characters per request and the basic General PII profile). To unlock 25 specialized 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 | 15,000 chars | ♾️ Unlimited | ♾️ Unlimited |
| Industry Profiles | General Only | 25 Profiles | 25 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.
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):
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:
Edit ~/.codeium/windsurf/mcp_config.json:
After adding the key, ask your AI agent to call check_status:
The dashboard should show Tier: PRO and all profiles unlocked.
PrivacyScrubber and the Zero-Trust Data Sanitization (ZTDS) protocol are backed by published scientific, clinical, and legal treatises:
| Repository / Archive | DOI / Identifier | Focus Area | Regulatory & Compliance Scope |
|---|---|---|---|
| Zenodo / CERN | 10.5281/zenodo.22058770 | Zero-Trust Data Sanitization (ZTDS) Protocol Foundation | Cross-Border AI Privacy, ISO 27001 A.8.11 |
| OSF (Center for Open Science) | 10.17605/OSF.IO/5BYJF | Empirical Latency Benchmark & Memory Profiling (<2ms RAM) | Performance vs Cloud DLP Proxies |
| SSRN / Elsevier | SSRN ID: 7335581 | Enterprise Generative AI Governance | EU AI Act, UK GDPR, US State Privacy |
| medRxiv (Cold Spring Harbor) | MEDRXIV/2026/361661 | Multi-Center Clinical Trial De-Identification | HIPAA Safe Harbor Section 164.514(b) |
| Law Archive / OSF | LawArchive ID: 4wc86 | Preserving Attorney-Client Privilege in AI Workflows | ABA Model Rules & Legal Ethics |
MIT © Ilya Sibiryakov (BrandMeWeb)