Masquerade

Masquerade

MCP server that redacts sensitive data from PDFs and returns redacted files for Claude.

74
Stars
21
Forks
0
Releases

Overview

Masquerade MCP: Redact. Replace. Retain Control is a dedicated MCP server that protects sensitive information before it reaches Claude. When invoked, it accepts a PDF via its file path, reads the document, and converts it to text for analysis. The text is sent to Tinfoil, an isolated AI platform using Llama 3.3 70B, to identify sensitive data such as names, emails, dates, and entities. Detected data is redacted from the text and a redacted PDF is generated. The MCP then returns a concise summary to Claude including masked versions of sensitive data, redaction counts per page, and the path to the redacted file. The user can preview the redactions before uploading the redacted PDF to Claude for querying. The server can be deployed either via automated setup or manual installation, and is configured through a JSON snippet that specifies the Python path, the MCP script, and the TINFOIL_API_KEY. This workflow minimizes exposure of sensitive information while enabling verification and continued analysis with an LLM.

Details

Owner
postralai
Language
Python
License
MIT License
Updated
2025-12-07

Features

Automatic detection of sensitive data

Detects names, emails, dates, and entities in PDFs for redaction.

Redaction and PDF regeneration

Redacts detected data and creates a redacted PDF.

Text extraction from PDFs

Reads the PDF and converts it to text for analysis.

Isolated processing via Tinfoil

Performs sensitive data detection on Tinfoil (Llama 3.3 70B) in isolation.

Preview before sending to LLM

Provides a preview and a summary with masked data before Claude upload.

Per-page redaction counts in summary

Returns redaction counts per page as part of the summary.

Return path to redacted file

Includes the path to the redacted PDF in the summary.

Claude Desktop integration

Exposes an MCP server config (pdf-redaction) compatible with Claude Desktop.

Audience

Privacy officersRedact sensitive data from PDFs before sharing with Claude.
LLM usersPrepare redacted PDFs and summaries for Claude workflows.
Security teamsEnsure secure handling of sensitive documents in automated workflows.

Tags

PDF redactionprivacy firewallsensitive data detectionredactionLLM prepTinfoilClaude Desktopper-page counts