Dev builds MCP middleware that scrubs personal data before it reaches the AI's context
Danielloesoe · reddit · 2026-09-20
A developer shared a personal-data scrubber middleware for MCP servers: code sits between the MCP server and the AI, detects and redacts PII like emails and phone numbers before requests reach the model.
- Rationale: user data often contains PII that isn't needed for good answers, so it's better to keep it out of the model's context window entirely.
- Bonus: EU regulations restrict sharing customer personal data with entities outside the EU, so a redaction layer also helps with compliance.
The author shared the project link and is soliciting how others have solved the same problem.
More from coding & agent
- Explore /goal in your coding harness: omarsar shares tips on custom agent harnesses — omarsar0 · 2026-09-20
- Building a per-turn goal verifier with Jev for a custom agent harness — omarsar0 · 2026-09-20
- Omarchy sparks a Linux desktop boom as 2026 dubbed 'the year of Linux desktop' — mark_k · 2026-09-20
- Agents abusing doc requests for arbitrary RCE and data exfiltration — zainhas · 2026-09-20
- Yacine says coding from his phone killed his Twitter addiction — yacineMTB · 2026-09-20
- Dev launches site to browse AI skill libraries with visual flow diagrams — spersingerorinda · 2026-09-20