privacyscrubber-mcp
Sanitizes text and files by removing PII, secrets, and custom patterns locally before sending to LLMs, with optional reverse-scrubbing.
README
@privacyscrubber/mcp-server
Zero-Trust Data Sanitization (ZTDS) Model Context Protocol (MCP) Server. Locally scrubs PII, secrets, credentials, and custom patterns from files and text contexts before sending them to LLMs.
🔒 Security & Privacy Guarantees
- 100% Offline / Local Execution: All PII detection, regex matching, and tokenization happen entirely inside your local machine's RAM. No prompt context or file data is ever sent to any remote servers.
- Volatile In-Memory Mapping: The token replacement map (
sessionMap) is kept in volatile RAM only. It is never persisted to disk, cookies, or database storage. - Support for Reverse-Scrubbing (Reveal): Replaces tokens in LLM responses back with original values securely inside your local context.
🚀 Installation & Usage
1. Instant Run with NPX
You can run the MCP server directly using npx:
npx @privacyscrubber/mcp-server
⚙️ Client Integrations
Claude Desktop
Add the server configuration to your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"privacyscrubber": {
"command": "npx",
"args": ["-y", "@privacyscrubber/mcp-server"],
"env": {
"PRIVACYSCRUBBER_KEY": "YOUR_OPTIONAL_PRO_OR_TEAMS_KEY"
}
}
}
}
Cursor / Windsurf
- Open settings (Settings -> Features -> MCP).
- Add new MCP server:
- Name:
privacyscrubber - Type:
command - Command:
npx -y @privacyscrubber/mcp-server
- Name:
- If you have a PRO key, add
PRIVACYSCRUBBER_KEYas an environment variable in your system shell or configure it locally.
🛠️ Provided Tools
sanitize_text— Sanitizes a raw string using the selected detection profile.reveal_text— Detokenizes a response containing PII tokens back to the original text.sanitize_file— Reads a local file, sanitizes its contents, and outputs the safe version (supports up to 10MB).
📄 License & Commercial Key
Standard use includes the Free Tier (limits to the General PII profile). To unlock 22+ specialized industry profiles (DevOps, Medical, Legal, Finance) and custom regex rules, acquire a license at privacyscrubber.com/pricing.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.