The Privacy Firewall for LLMs
🤐 Problem: Tools like Claude or GPT are incredibly powerful, but they require raw input. If you're dealing with contracts, medical records, or internal documents, that's risky.
🛡️ Solution: Masquerade acts as a privacy firewall for your files. Just paste in the file path to a PDF, and Masquerade will:
curl -O https://raw.githubusercontent.com/postralai/masquerade/main/setup.sh && bash setup.sh
python3.12 -m venv pdfmcp
source pdfmcp/bin/activate
python --version
pip install git+https://github.com/postralai/masquerade@main
python -m masquerade.configure_claude
which python
python -c "import masquerade as m; print(f'{m.__path__[0]}/mcp_pdf_redaction.py')"
claude_desktop_config.json
. Instructions to find the config file are in the image below.{
"mcpServers": {
"pdf-redaction": {
"command": "/path/to/python", // Run `which python`
"args": ["/path/to/mcp_pdf_redaction.py"], // Run `python -c "import masquerade as m; print(f'{m.__path__[0]}/mcp_pdf_redaction.py')"`
"env": {
"TINFOIL_API_KEY": "your_api_key" // Create Tinfoil account and paste API key
}
}
}
}
Note: Don't upload the original PDF to Claude, only the file path.
If you have a fix or improvement, feel free to submit a pull request. For significant changes, please open an issue first to discuss your proposed updates.
See the Developer section for the installation of this repository.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions and common issues, please see the FAQ section or open an issue on GitHub.
{ "mcpServers": { "masquerade": { "command": "/path/to/python", "args": [ "/path/to/mcp_pdf_redaction.py" ] } } }
Related projects feature coming soon
Will recommend related projects based on sub-categories