woladi avatar

Pseudonym Mcp

woladi/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 tools

Public 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.

npm version License: MIT Node 18+ GDPR-aligned Local detection Offline NER


View the full README on GitHub

Details

Repository
github.com/woladi/pseudonym-mcp
Category
AI & LLM Tools
Package
pseudonym-mcp
Transport
STDIO
Registry
MCP registry, active

More from woladi

Related AI & LLM Tools MCP servers

View all
1100xpercent avatarPop Pay100xpercent/pop-payRuntime security for AI agent commerce. CLI + MCP server blocks hallucinated purchases.1stars
2voxellinc avatarForgevoxellinc/forge-mcpMCP server for Forge, Voxell's embedding API. Voxell's Ingot-8B-R3 ranks #1 for English on MTEB.1stars
3ambermem avatarAmberambermem/amberLong-term memory for AI assistants: permanent, portable across clients, searchable and exportable.1stars
4bch1212 avatarQueryshieldbch1212/queryshieldSecure SQL proxy for AI agents — NL→SQL, AST safety, per-agent RLS, audit log.1stars
5boyce-io avatarBoyceboyce-io/boyceDeterministic SQL compiler for AI agents. Your agent stops guessing SQL.1stars
6coopergwrenn avatarPostals Mcpcoopergwrenn/postals-mcpSend physical handwritten postcards from any AI agent. Real pen & ink, USPS, $4.99/card.1stars