EU PII Redaction MCP server
io.github.JulianJohansen/eu-pii-redact·v0.1.0Redact EU personal data (names, national IDs, IBANs) in text and files; restore it later.
0 stars
Reviews
Write oneNobody has reviewed EU PII Redaction yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
EU PII Redaction tools (3, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
redact_fileRedact a text file into a new file without showing its contents. Returns only counts per type, so the personal data never enters the conversation.
redact_textRedact personal data in a text and return the redacted text plus the detected entities (type, position, placeholder). Original values are not returned.
restore_filewrite actionPut the original values back into a file, locally (no API call). Returns only how many placeholders were restored, not the values.
Public scan report
scanner v0.1.10 · 2026-10-01 · same rubric, same numbers if you re-run it
- Code scan6 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 0 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How EU PII Redaction compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 65% of 48,255 servers
- Tools
- 3
- the typical server has 7
- Tools that change things
- 33%
- typical: 0%. Fewer write tools means less an agent can break
What its tools let an agent do: 2 read · 1 change
Install EU PII Redaction in Claude Code, Cursor or VS Code
claude mcp add eu-pii-redact -- uvx eu-pii-redact
What the publisher says
From the EU PII Redaction repository's README, as published. We do not edit it. Read it on GitHub
eu-pii-redact
Keep European personal data out of LLM prompts and logs, and put it back in the answer. Python client, LangChain integration and MCP server for the EU PII Redaction API.
<!-- mcp-name: io.github.JulianJohansen/eu-pii-redact -->
Hi, my name is Karina Dahl. I was charged twice for order 88412.
Please refund to DK50 0040 0440 1162 43 or call me on +45 32 12 34 56.
Karinabecomes
Hi, my name is [PERSON_1]. I was charged twice for order 88412.
Please refund to [IBAN_1] or call me on [PHONE_1].
[PERSON_1]first name from 140,000 European names. "Best Practices" and "Court of Justice" stay as they are.
- Names from evidence, not capital letters: titles, greetings, roles, Name: labels, sign-offs, or a
(personnummer, HETU, DNI/NIE, codice fiscale, NIR, PESEL, BSN, CPR, ...).
- National ID numbers from 21 EU/EEA countries, checked by check digit and birth date
- IBANs (mod-97), cards (Luhn), EU VAT numbers, emails, phones (with + prefix), IPs.
- Every mention of a person shares one placeholder; order and invoice numbers stay untouched.
You need a RapidAPI key with a plan for the API. The free plan gives 500 requests a month. Set it as RAPIDAPI_KEY.
Python
pip install eu-pii-redactfrom eu_pii_redact import Redactor
with Redactor() as r: # reads RAPIDAPI_KEY
redaction = r.redact(ticket)
reply = ask_llm(redaction.text) # the model only sees placeholders
print(redaction.restore(reply)) # real values back in the answerredaction.entities lists each finding with its type, offsets in the original text and placeholder (national IDs also carry country and scheme). Texts longer than 50,000 characters are sent in pieces with consistent placeholders. r.redact(text, types=["EMAIL", "IBAN"], mode="mask") masks with asterisks.
LangChain
pip install "eu-pii-redact[langchain]"from eu_pii_redact.langchain import protect, PIIRedactionTransformer
safe_llm = protect(llm) # any model or chain that takes a string
safe_llm.invoke("Draft a reply to Karina Dahl about her refund to DK50 0040 0440 1162 43")
# the model sees [PERSON_1] and [IBAN_1]; the returned message has the real values again
docs = PIIRedactionTransformer().transform_documents(docs) # e.g. before indexing for RAGMCP server
Lets an AI assistant redact text and, more importantly, files without reading them: redactfile reads and writes the file itself and only reports counts, so the personal data never enters the conversation. restorefile puts the values back locally.
Claude Desktop (one click): download eu-pii-redact-0.1.0.mcpb from the latest release, open it, and paste your RapidAPI key when asked. The bundle sources are in mcpb/.
Claude Code
claude mcp add eu-pii-redact -e RAPIDAPI_KEY=your-key -- uvx eu-pii-redactClaude Desktop / Cursor / other hosts (mcpServers config)
{
"mcpServers": {
"eu-pii-redact": {
"command": "uvx",
"args": ["eu-pii-redact"],
"env": { "RAPIDAPI_KEY": "your-key" }
}
}
}Postman
Import postman/eu-pii-redaction.postmancollection.json, set the collection variable rapidapikey, and send: four requests with example responses and built-in tests.
Limits
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
EU PII Redaction: common questions
- Is EU PII Redaction MCP server safe?
- Mostly: it is graded B (83/100). Read the EU PII Redaction safety report
- How do I install EU PII Redaction?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does EU PII Redaction need an API key?
- Yes. The registry entry asks for
RAPIDAPI_KEY. - Is EU PII Redaction maintained?
- The last commit was 34 days ago (2026-10-01). The latest release is v0.1.0.
- How does EU PII Redaction compare with other MCP servers?
- safety score 83/100 (higher than 65% of 48,255 servers); tools 3 (the typical server has 7); tools that change things 33% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.