Ainonymize
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Ainonymize for Claude
Use Claude on contracts, HR files, patient letters, bank exports and client e-mails — without the personal data in them ever leaving your computer.
Ainonymize replaces names, addresses, e-mail addresses, phone numbers, IBANs, tax and ID numbers, dates of birth, health data and more with consistent, realistic pseudonyms on your machine before Claude sees a document. Claude works with "Jürgen Kellermann" instead of your client; when you need the final letter, contract or spreadsheet with the real names, Ainonymize puts them back locally. The restored file is never sent to Claude.
your document ──► Ainonymize (local) ──► pseudonymized copy ──► Claude
│ │
mapping stays in draft with pseudonyms
~/.ainonymize │
final document ◄── Ainonymize restore (local) ◄─────────────────────┘Formats | Word |
Same format out |
|
What it finds | 23 GDPR categories incl. Art. 9 special categories (health, religion, union membership, criminal records), German + English |
How | A local neural model (GLiNER multi-PII, fp16, downloaded once from Hugging Face and SHA-256-verified) plus rule-based detectors with checksums (IBAN mod-97, Luhn, tax IDs, …) |
Where | 100% on your computer. No account, no telemetry, no server. Works offline after the one-time model download. |
Install
Claude Code (CLI, IDE, desktop "Code")
/plugin marketplace add Leineder/ainonymize-claude
/plugin install ainonymize@ainonymizeRestart Claude Code. Requires Node.js 18+ (already present if you installed Claude Code via npm).
Optional: run /ainonymize:setup once to download the local model (~600 MB) right away.
Claude Cowork
In the plugin settings, add the GitHub marketplace Leineder/ainonymize-claude and install
ainonymize. (The tools and skills work everywhere plugins run; the prompt/read guards need a
client that runs plugin hooks.)
Claude Desktop (chat)
Download
ainonymize.mcpb.Double-click it (or Settings → Extensions → Install extension…) and confirm.
claude.ai and ChatGPT in the browser
Use the Ainonymize Chrome extension: it intercepts uploads and typed text on claude.ai and chatgpt.com. See ainonymize.vercel.app.
Any other MCP client
git clone https://github.com/Leineder/ainonymize-claude
cd ainonymize-claude && npm ci --ignore-scripts # optional: the neural runtime
node server/cli.mjs mcpRelated MCP server: write-like-me-mcp
Use it
Just ask, naming the file:
Summarize
~/Clients/Meyer/Arbeitsvertrag.docxand list the risky clauses.
Compare the two offers in
./offers/and draft a reply to the cheaper vendor — give me the final letter with the real names.
Go through
export_customers.csvand find duplicates.
Claude calls anonymize_file, works with the pseudonyms, and for the final version calls
restore_file / restore_text, which saves ….restored.docx (or .md, …) next to your files.
What the plugin adds in Claude Code (and Cowork)
The plugin doesn't just add tools. It also adds guard rails, which a browser extension can't do on a desktop agent:
Prompt guard. If you type or paste personal data into a prompt, it is stopped before it is sent. A pseudonymized version is put on your clipboard: paste it and send. Add
#rawto a message to send it unchanged on purpose.Read guard. Claude cannot open Word/Excel/PowerPoint/PDF/e-mail files directly, nor CSV/text files that contain personal data; it is redirected to
anonymize_file. Restored files (*.restored.*) are never readable by Claude.One pseudonym per person per project. All documents of a project folder share a mapping scope, so the same client is the same pseudonym in every file.
Tools
Tool | What it does |
| Pseudonymize a local document; writes |
| Restore real values into a document; writes |
| Restore real values into text Claude wrote and save it as a file |
| Model state, guards, scopes (counts only) |
| Download + verify the local model now |
| Delete the stored mappings of a project/case |
Settings
~/.ainonymize/config.json (all optional):
{
"promptGuard": "block",
"readGuard": "block",
"neural": true,
"allowPaths": []
}promptGuard: block | warn | off. readGuard: block | off. neural: false runs the
rule-based layer only (no model download). allowPaths: files or folders Claude may read
directly.
Honest limits
Detection is very good, not perfect. On our synthetic test corpora, about 97–99% of personal values are removed. A missed value does reach Claude. For documents where a single miss matters, check the
.anonymizedcopy before you continue.Restore is cautious. If Claude edits a pseudonym (e.g. turns "Jürgen Kellermann" into "Mr K."), or a pseudonym is ambiguous, it is left as written, and the tool tells you how many. Restoring the wrong person's name would be worse.
Guard rails, not a sandbox. The hooks intercept prompts and Claude's
Readtool. Claude could still reach a file through other tools (e.g. a shell command) if it ignored the instructions.Speed. Everything runs on your CPU: roughly 2–4 seconds per 1,000 characters with the neural model. Long documents take a few minutes, and Claude is told to wait and re-check.
Not yet supported: scanned PDFs/images (OCR), legacy
.doc/.xls/.ppt, archives. The Chrome extension handles more formats.
What the plugin runs, reads, writes and fetches
Everything below happens on your computer; nothing is sent to any server.
Runs | One local Node.js process, |
Installs | On plugin install, Claude Code installs the npm package |
Fetches (once) | The detection model |
Reads | Only files you, or Claude on your behalf, pass to |
Writes |
|
Opens | A restored file in your default app, only when you ask ( |
Never | It doesn't touch the network otherwise, collect telemetry, change Claude's settings or permissions, or read credentials. |
Privacy
Ainonymize collects nothing. The only network request it ever makes is the one-time model download from huggingface.co (pinned revision, SHA-256 verified). See PRIVACY.md.
License
Free to use, privately and commercially. See LICENSE. Bundled open-source components: THIRD_PARTY_NOTICES.md.
Deutsch, kurz
Ainonymize ersetzt personenbezogene Daten (Namen, Adressen, IBAN, Steuer-ID, Geburtsdatum, Gesundheitsdaten …) lokal auf Ihrem Rechner durch stimmige Pseudonyme, bevor Claude ein Dokument sieht, und setzt die echten Werte am Ende lokal wieder ein. DSGVO-freundlich, ohne Konto und ohne Server.
Installation in Claude Code: /plugin marketplace add Leineder/ainonymize-claude, dann
/plugin install ainonymize@ainonymize. Claude Desktop: ainonymize.mcpb aus den Releases
doppelklicken.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Detect and redact PII and secrets before text reaches an LLM, with reversible placeholders.
Zero-retention GDPR PII redaction gate (IBAN, Tax-ID, HRB, Names) with signed Ed25519 VC.
Detect and redact PII and secrets (API keys, tokens) in text, HTML or PDF before it reaches an LLM.
Detecta e mascara dado pessoal brasileiro (CPF, CNPJ, RG, e-mail) antes do texto ir a uma IA. LGPD.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides local anonymization of Czech legal documents by replacing sensitive entities with pseudonyms to ensure privacy during LLM interactions. It allows users to safely process documents like contracts and judgments by keeping original data offline and facilitating local deanonymization.55MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to write in your personal style by learning from your local documents. It provides statistical style context for natural language rewriting, all without any data leaving your machine.4MIT
- FlicenseNot gradedqualityDmaintenanceAutomatically detects and obfuscates sensitive data (PII, secrets, etc.) before Claude processes it, with lossless restoration for client deliverables.6-

docuprivadoofficial
AlicenseNot gradedqualityBmaintenanceEnables Claude Desktop to redact and count personal data in PDFs and images, strip hidden metadata from photos, anonymize Word and text files, prepare watermarked ID copies, and compare contract versions using only user-approved local folders. All processing runs offline on the user's computer, creating new copies instead of modifying or deleting the originals.Apache 2.0