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