r3352 avatar

Redact MCP

r3352/redact-mcp

A privacy layer for Claude Code pentest workflows. Automatically detects PII (IPs, emails, API keys, person names, orgs, locations) using regex and NER, swaps them for deterministic fake values, and maintains a bidirectional mapping table. The redact_proxy_request tool deobfuscates outbound HTTP requests, makes the real call to target systems, then obfuscates the response before Claude sees it. Includes redact_read_file for sanitizing input files and redact_export for reversing obfuscation in final deliverables. Optional JSONL audit logging captures every transformation with full before/after text. Useful when you need Claude to analyze scan results or API responses without sending client infrastructure details to an LLM provider.

GitHub stars
6
tools
8
transport
STDIO
env vars
2
last updated
Mar 23, 2026

Tools

8 tools

Public tool metadata for what this MCP can expose to an agent.

redact_obfuscateAuto-detect and replace all PII in text (regex + NER)

Auto-detect and replace all PII in text (regex + NER)

No parameter schema in public metadata yet.

redact_deobfuscateReverse all replacements back to real values

Reverse all replacements back to real values

No parameter schema in public metadata yet.

redact_proxy_requestHTTP proxy — deobfuscates request, makes real call, obfuscates response

HTTP proxy — deobfuscates request, makes real call, obfuscates response

No parameter schema in public metadata yet.

redact_read_fileRead a file and return obfuscated content

Read a file and return obfuscated content

No parameter schema in public metadata yet.

redact_add_mappingManually add a real-to-fake mapping

Manually add a real-to-fake mapping

No parameter schema in public metadata yet.

redact_remove_mappingRemove a mapping (fix false positives)

Remove a mapping (fix false positives)

No parameter schema in public metadata yet.

redact_show_mappingsShow all current mappings grouped by type

Show all current mappings grouped by type

No parameter schema in public metadata yet.

redact_audit_logView recent audit log entries (requires REDACT_AUDIT_LOG=true)

View recent audit log entries (requires REDACT_AUDIT_LOG=true)

No parameter schema in public metadata yet.

Sponsors

Configuration

REDACT_AUDIT_LOG

Enable JSONL audit trail for compliance tracking

REDACT_DATA_DIR

Directory for mappings and audit log storage

Readme

Redact MCP — Automatic PII Obfuscation for Claude Code

An MCP server (and Claude Code plugin) that automatically detects and obfuscates sensitive data before Claude ever sees it. Uses regex pattern matching and AI-powered Named Entity Recognition (NER) to catch IPs, hostnames, emails, API keys, person names, organization names, locations, private keys, connection strings, and more.

Built for penetration testers who need Claude's analysis capabilities without exposing client data to a third party.

How It Works

Raw data with real PII ──► Regex + NER detection ──► Claude sees only fake values
                                                              │
Final report for client ◄── Real values restored ◄── /redact:export

The server maintains a bidirectional mapping table. Every sensitive value gets a consistent, deterministic fake replacement that persists across the entire session:


View the full README on GitHub

Details

Repository
github.com/r3352/redact-mcp
Website
github.com/r3352/redact-mcp
Category
Data & Analytics
Package
@mattzam/redact-mcp
Transport
STDIO
Registry
MCP registry, active

Related Data & Analytics MCP servers

View all
1sowiedu avatarEdictsowiedu/edictAI-agent programming language. JSON AST in, WASM out. Typed, effect-tracked, Z3-verified.6stars
2yyordanov-tradu avatarStock Scanner Mcpyyordanov-tradu/stock-scanner-mcpStock and crypto market data — 49 tools for quotes, technicals, options, SEC filings, and more.6stars
3leandrogavidia avatarLeandrogavidia Vechain Mcp Serverleandrogavidia/vechain-mcp-serverSearch VeChain documentation, query on-chain data, and fetch fee suggestions with direct links to…5stars
4anthonypuggs avatarAustralian Economic Data (ABS, RBA & APRA)anthonypuggs/ausecon-mcp-serverAustralian economic data from the ABS, RBA, and APRA: CPI, GDP, cash rate, labour, and more.5stars
5hasdata avatarHasData Binghasdata/bing-mcpBing search results with the ad block and Copilot answer, geo and market targeting, as JSON.5stars
6hasdata avatarHasData Google Flightshasdata/google-flights-mcpGoogle Flights itineraries with fares, legs, carbon emissions and price history, as JSON.5stars