# Czech Document Anonymization

> Anonymise Czech documents before they reach an AI model, then verify with checksums that no personal data slipped through.

Czech Document Anonymization is a free AI agent skill on Agensi by Michal Burgermeister, in Legal & Compliance. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Michal Burgermeister](https://www.agensi.io/creators/michal-burgermeister)
- Category: [Legal & Compliance](https://www.agensi.io/skills/legal-compliance)
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-16
- Security: scan passed (2026-10-16); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/czech-document-anonymization
- Tags: legal, security, czech-nlp, privacy, redaction, mcp-server, gdpr, anonymization

## About this skill

Protect sensitive data before sending it to LLMs or third parties. This skill handles the redaction of Czech personal identifiers, names, and locations using a deterministic placeholder system. It solves the risk of leaking PII (Personally Identifiable Information) in documents like court rulings, medical reports, and bank statements while maintaining the document's internal logic and readability.

### What it does
- **PII Redaction** replaces names, addresses, and organizations with consistent placeholders like `OSOBA1` or `MESTO1`.
- **Checksum Verification** runs secondary offline checks for birth numbers (rodné číslo), IČO, IBAN, and credit card numbers using mathematical validation.
- **Multi-language Support** identifies entities in Czech plus 30 other languages using LINDAT NLP services.
- **Context Preservation** keeps clinical codes (ICD-10) and statute citations intact to ensure the document remains useful for analysis.
- **Morphological Analysis** extracts lemmas and parts of speech to help understand document structure without exposing identities.

### How it works
1. **Selection** of the anonymization mode, choosing between the default API or the `Zero-egress` offline mode for highly sensitive data.
2. **Execution** of the `anonymize` command to generate deterministic placeholders across the entire text.
3. **Verification** using the bundled `pii_leak_check.py` script to find surviving identifiers via regex and checksums.
4. **Validation** through `extract_entities` to confirm no remaining personal names or specific locations exist.

### Frameworks & tools
This skill utilizes the `anonymize-mcp` server, LINDAT NLP tools (NameTag, UDPipe), and a specialized Python verification script.

### Why this beats prompting it yourself
Standard LLM prompts often hallucinate PII or miss identifiers hidden in complex Czech grammar. This skill uses deterministic NLP models and mathematical checksums to ensure that birth numbers and bank accounts are actually validated, not just guessed at.

### Use cases
- Redacting medical reports before generating an AI summary.
- Preparing court rulings for public disclosure by removing names and dates.
- Scrubbing bank statements of account numbers and IBANs for financial analysis.
- Cleaning HR documents before sharing them with external recruiters.

### Known limitations
Non-commercial use only due to CC BY-NC-SA model licenses. Offline mode disables translation and readability tools to prevent data egress. Requires local installation of anonymize-mcp.

## Requires

- Anonymize MCP
- Python 3.9+

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Czech Document Anonymization skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply asking an LLM to anonymize text?

It uses LINDAT's NameTag and MasKIT models, trained on Czech, plus a pre-pass of 80+ patterns for structured data (birth numbers, IČO, IBAN, phones, case numbers). The bundled checker then validates leftovers by checksum (mod-11, mod-97, Luhn), so you verify the result instead of trusting a single pass. It lowers risk; a human should still read anything released under GDPR.

### Can I use this skill for highly sensitive documents that cannot leave my local environment?

Yes. With ANONYMIZE_MCP_LOCAL=1, anonymisation and entity extraction run fully offline with a local model (one-time ~31 MB download, SHA-256 checked). Tools that would send text out (translation, spell check, readability) are refused in that mode, and the bundled leak checker is offline by design.

### Will the anonymized document still make sense to an AI for summarization or analysis?

Yes, the skill uses a deterministic placeholder system (e.g., OSOBA1, OSOBA2). If the same name appears multiple times throughout a document, it will be replaced by the same consistent tag, allowing an LLM to follow the narrative or logic without knowing the actual identity.

### What is included?

The skill folder: SKILL.md (the workflow for the agent), README.md (install and set-up), the offline leak checker scripts/pii_leak_check.py and its tests. The anonymize-mcp server itself is free (MIT) and installed separately with pip install anonymize-mcp. The skill is free; the underlying language models are licensed for non-commercial use only.

### Which AI agents or platforms are compatible with this anonymization tool?

Any agent that reads SKILL.md and can use an MCP server: Claude Code, Codex, Cursor, Gemini CLI, Hermes Agent and others. The leak checker runs anywhere with Python 3.9+.

### Does this skill only work for documents written in the Czech language?

While the primary NLP engine is optimized for Czech, the LINDAT integration supports entity recognition for 30 additional languages, making it suitable for multilingual documents containing Czech, English, German, and more.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
