
Pseudonym Mcp
This server gives you two MCP tools, mask_text and unmask_text, that strip PII before it hits your cloud LLM and restore it afterward. Detection runs locally using regex for structured identifiers like SSNs, credit cards, PESEL, and IBAN, plus an optional Ollama model for names and organizations. It replaces detected values with opaque tokens like [PERSON:1] or [SSN:1] and holds the mapping in memory per session. Supports English and Polish out of the box with heuristic language detection. This is defense in depth, not anonymization. The masked structure and context still go to the LLM, and any missed entities travel in cleartext. Reach for this when you need to reduce direct identifier exposure in prompts while keeping your workflow intact.
- GitHub stars
- 2
- tools
- 2
- transport
- STDIO
- last updated
- Aug 25, 2026
Tools
2 toolsPublic tool metadata for what this MCP can expose to an agent.
mask_textPseudonymise detected PII in text. Returns masked_text + session_id.
Pseudonymise detected PII in text. Returns masked_text + session_id.
No parameter schema in public metadata yet.
unmask_textRestore original values from a session. Pass the session_id returned by mask_text.
Restore original values from a session. Pass the session_id returned by mask_text.
No parameter schema in public metadata yet.
Sponsors
Readme
pseudonym-mcp
pseudonym-mcp — mask PII locally, send safely to a cloud LLM, restore instantly
Local pseudonymisation tools for LLM workflows — replace detected PII with opaque tokens before you hand text to a cloud LLM, then restore those tokens afterward.
Details
- Repository
- github.com/woladi/pseudonym-mcp
- Category
- AI & LLM Tools
- Package
pseudonym-mcp- Transport
- STDIO
- Registry
- MCP registry, active