Pseudonymizes sensitive data before it reaches cloud LLMs and restores it on the way back.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
Expose MCP tools (mask_text and unmask_text) that your client or agent can call as an explicit privacy step. The server detects PII locally, replaces it with opaque tokens, and keeps the token mapping in memory for later restoration.
It is a defense-in-depth measure, not a compliance silver bullet. Read the Limitations and GDPR & AI Compliance sections before assuming this stack does more than it does.
--lang narrows that set when you want fewer false positives β see Locale coverage is fail-closed. Heuristic language detection (detectLanguage()) infers the language from text content β --lang remains the authoritative override.[PERSON:1] map back to originals in an isolated, per-request session. Multiple round-trips preserve token coherence.mask_text returns auto_unmask for clients that want to honor that preference, but this server does not intercept arbitrary LLM responses automatically.regex only (no Ollama required), llm only, or hybrid (default).β Without pseudonym-mcp:
"John Smith, SSN 123-45-6789, card 4111 1111 1111 1111" β sent verbatim to the LLM providerβ With pseudonym-mcp used before the cloud call:
"[PERSON:1], SSN [SSN:1], card [CREDIT_CARD:1]" when you call mask_text firstunmask_text before reaching the userThis is a meaningful reduction in cleartext PII exposure. It is not "no personal data leaves your machine" β see Limitations.
pseudonym-mcp is relevant to compliance work, but it is a technical control, not a compliance product. Whether you are compliant with any specific regulation depends on your full stack, your role (controller/processor), your contracts, your DPIA, and your jurisdiction.
The EU General Data Protection Regulation (GDPR) classifies names, national ID numbers (like SSN or PESEL), bank account numbers (IBAN), email addresses, credit card numbers, and phone numbers as personal data under Article 4(1). Sending this data to a cloud LLM provider constitutes processing under Article 4(2). Pseudonymisation is explicitly recognised under Art. 4(5) as a risk-reduction measure β but, critically, pseudonymised data is still personal data (Recital 26).
| GDPR Article | Obligation | Where pseudonym-mcp helps | Where it doesn't |
|---|---|---|---|
| Art. 5(1)(c) | Data minimisation | Strips detected direct identifiers before transmission | Doesn't minimise context, structure, or undetected PII |
| Art. 25 | Privacy by design and by default | Provides a technical layer that fits into a privacy-by-design architecture | Architecture and policy decisions are still your responsibility |
| Art. 32 | Security of processing | Recognised technical measure under Recital 83 (pseudonymisation) | One control among many; doesn't replace access control, logging, encryption |
| Art. 44 | Transfers to third countries | Reduces the cleartext PII you transfer | Pseudonymised personal data is still personal data β transfer rules still apply |
| Art. 4(5) | Pseudonymisation definition | The mapping store is opaque to the cloud LLM; re-identification requires the local session | Re-identification is possible from context for anyone with side knowledge |
The honest bottom line: pseudonymisation under GDPR Art. 4(5) is not anonymisation. The data remains personal data in your system, and Art. 44 transfer obligations are not switched off just because you tokenised the name field.
The EU AI Act places additional requirements on high-risk AI systems that process personal data. Using pseudonym-mcp as an intermediary layer can:
It does not change your AI Act risk classification on its own β classification is a function of use-case and deployment context, not of the masking step in front of the model.
The tool is also relevant outside the EU, with the same caveats:
| Sector | Relevant regulation | PII types commonly handled |
|---|---|---|
| Healthcare | GDPR + HIPAA + national health data laws | Patient names, SSN, diagnoses |
| Banking & Finance | GDPR + PCI DSS + PSD2 + DORA | Credit cards, IBAN, SSN, PESEL |
| HR & Recruitment | GDPR Art. 9 (special categories) | Names, national IDs, contact details |
| Legal | GDPR + attorneyβclient privilege | Names, case numbers, personal details |
| Insurance | GDPR + Solvency II | Personal identifiers, health data |
| Public Sector (US) | CCPA + state privacy laws | SSN, driver's license numbers |
| Public Sector (PL) | GDPR + UODO + KRI | PESEL, NIP, REGON |
In every row of this table, pseudonym-mcp is a useful building block. None of those regimes can be satisfied by a masking tool alone.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pseudonym-mcp)<a href="https://allmcps.com/mcp/pseudonym-mcp"><img src="https://allmcps.com/api/badge/pseudonym-mcp?style=directory" alt="Pseudonym MCP on AllMCPs" /></a>