Privacyscrubber MCP logo

Privacyscrubber MCP

by moxno

Locally masks PII and secrets in prompts, files, shell output, git diffs, and RAG chunks before LLM processing.

Install Privacyscrubber MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "moxno-privacyscrubber-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@privacyscrubber/mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 23 tools correctly ().

Overview

moxno/privacyscrubber-mcp is a local MCP security server for masking PII, credentials, secrets, and custom patterns before content reaches an LLM. It provides sanitization, auditing, file redaction, guarded shell and Git operations, and token restoration using an in-memory session map. Use it when coding agents, RAG pipelines, or document workflows need to handle sensitive local data without exposing the original values to remote model providers. It supports Cursor, Windsurf, Claude Desktop, and other clients through NPX, UVX, or pip installation paths.

Use cases

  • Sanitize prompts and logs before sending them to an LLM
  • Inspect Git diffs for newly exposed credentials or PII
  • Protect shell output and sensitive files during coding-agent tasks
  • Mask RAG chunks before embedding or vector storage
  • Generate compliance and tamper-evident audit records

Key features

  • Local PII, secret, credential, and custom-pattern masking
  • Token restoration through volatile in-memory session maps
  • Guarded shell, file, Git, patch, and tool-argument operations
  • Directory scanning, file redaction, and dry-run support
  • RAG chunk sanitization and restoration
  • Compliance reports and SIEM-format audit-log export

Tools23

What Privacyscrubber MCP lets your agent do. Expand a tool for its parameters.

Verified live~5.7k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/29 checks healthy over the last 94d

What it can do

From the 23 tools this server returned when we ran it; 23 declare their own safety hints.

Runs commands · 2Can delete or modify data · 2Handles credentials · 15Read-only tools · 20
Unusual tool instructions. 1 tool description contain text aimed at the AI model rather than at you (reaches for local secrets). Read the tool descriptions before connecting.
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age122 days
Maintainers1

Observed 2026-11-10 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · @privacyscrubber/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads2.5kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed23Callable tools this server registers over MCP.
Directory activity11 viewsConfig copies, upvotes, and views on AllMCPs.

How Privacyscrubber MCP works

What moxno/privacyscrubber-mcp does

moxno/privacyscrubber-mcp places a local privacy boundary between AI agents and sensitive developer data. It detects and tokenizes items such as names, email addresses, phone numbers, passwords, API keys, credentials, database URIs, and other secrets. Replacements use recognizable placeholders such as [EMAIL_1] or [API_KEY_1], allowing an agent to work with sanitized content while the original values remain in a local session map.

The server covers both individual text and common agent operations. It can process files, scan directories for possible leaks, inspect Git diffs, execute shell commands while filtering their output, and sanitize document chunks before embedding or vector search workflows. It also includes compliance reporting and audit-log export capabilities.

How it works

A typical workflow begins with audit_context for a non-mutating inspection of text or document chunks. The result includes a risk classification—CLEAN, LOW, MODERATE, or CRITICAL—and can identify frameworks such as GDPR, HIPAA, SOC 2, and PCI DSS.

sanitize_text or its scrub_text alias then replaces detected values with tokens. The corresponding file tools process local files, while the Guard tools apply the same model to shell output, file reads, Git diffs, patch application, command arguments, and RAG chunks. After an agent produces a response or code change, reveal_text or a Guard restoration tool can substitute the original values back locally. Session mappings are held in volatile memory, and guard_session_reset can purge them when work is complete.

Setup and configuration

The server can run directly with NPX:

Terminal
npx -y @privacyscrubber/mcp-server

Python workflows can use the PyPI package through UVX or pip:

bash
uvx privacyscrubber-mcp
pip install privacyscrubber-mcp
privacyscrubber-mcp

The repository also provides an installer that detects supported clients or targets environments individually, including Cursor, Claude Desktop, Claude Code, VS Code, Windsurf, Cline, and Zed. Smithery can configure the server for a selected client. create_default_config creates a privacyscrubber.json file in the active workspace with templates for custom regular expressions and exclusion patterns. create_agent_rules can generate rule files for supported agent environments.

Tools and capabilities

  • Inspect text or chunks with audit_context before processing.
  • Sanitize or restore text and files with the sanitize, scrub, and reveal tools.
  • Scan directories and generate compliance reports for security reviews.
  • Redact files in place, with backup creation by default and a dry-run option.
  • Safely handle shell commands, file reads, Git diffs, patches, and tool arguments through the Guard tools.
  • Sanitize and restore RAG chunks for embedding and retrieval workflows.
  • Mark detected values as false positives for the active session.
  • Check tier and usage status, inspect session metrics, reset mappings, and export CEF, RFC 5424 Syslog, JSONL, or JSON audit logs.

Limitations and notes

Original values are retained in the active local session so they can be restored later; session cleanup is therefore an important part of a completed workflow. mark_false_positive excludes a selected plaintext value from later sanitize_text calls in that session, so it should be used only when the detected value is safe to preserve. The MCP tools are intended for local files, commands, Git data, and text passed through the agent context. Backend services and non-MCP RAG pipelines use the separately published @privacyscrubber/sdk instead.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Privacyscrubber MCP

moxno/privacyscrubber-mcp is an MCP server that connects AI clients to local privacy and security controls for text, files, shell commands, Git data, and RAG chunks. Its main tools audit, sanitize, scrub, reveal, guard, redact, and restore sensitive values using local in-memory token mappings before and after LLM processing.

Install it by running `npx -y @privacyscrubber/mcp-server`, or use `uvx privacyscrubber-mcp` and pip for Python workflows. The project also provides an installer for supported clients and a Smithery command that writes configuration to clients.

Yes, it works with Cursor. The installer can target Cursor directly, and the server is also described for Windsurf and Claude Desktop. Workspace setup can additionally create agent rules and client-specific configuration files.

Use `guard_exec` to run the command locally while sanitizing stdout and stderr before returning them to the agent. The tool tokenizes credentials, API keys, database URIs, and PII, while the local session retains mappings for later restoration.

Call `audit_directory_for_pii` with the local directory to receive a summary of detected secrets, keys, and PII. For changing a file, use `redact_file`; it creates a backup by default, and `dry_run=true` tests the operation without modifying the original.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPrivacyscrubber MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/moxno-privacyscrubber-mcp?style=directory)](https://allmcps.com/mcp/moxno-privacyscrubber-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/moxno-privacyscrubber-mcp"><img src="https://allmcps.com/api/badge/moxno-privacyscrubber-mcp?style=directory" alt="Privacyscrubber MCP on AllMCPs" /></a>