Expose internal MCPs to Claude without leaking PII
Quando usar: Your internal tools (postgres, CRM) would leak customer names / emails / SSNs into LLM context if used directly.
Pré-requisitos
pip install mcp-gateway[presidio]— presidio extra pulls spaCy models
Fluxo
-
Wire upstream MCPs through gatewayConfigure mcp-gateway with upstream postgres MCP; enable the Presidio plugin with redaction for EMAIL, PHONE, US_SSN.✓ Copiado→ Config file with plugin chain
-
Test redactionRun a query returning customer emails; confirm the gateway replaces them with <EMAIL> placeholders before reaching the LLM.✓ Copiado→ Claude sees only placeholders
Resultado: LLM-usable tool access without raw PII crossing the boundary.
Armadilhas
- Over-redaction breaks downstream joins — Use consistent pseudonyms (Presidio supports hash-based) so the LLM can still reason across redacted fields