# EU PII Redaction

> EU PII Redaction is a freemium MCP server for security. Redact EU personal data from text and files before an LLM sees it, and restore it later. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API
- **Website:** https://rapidapi.com/JulianJohansen/api/eu-pii-redaction
- **Repository:** https://github.com/julianjohansen/eu-pii-redact
- **MCP Registry name:** io.github.JulianJohansen/eu-pii-redact
- **Categories:** security, legal and government
- **Listing updated:** 2026-11-16

## About

This MCP server fronts the EU PII Redaction API so an assistant can strip personal data before it reaches a model provider or logs. It finds person names from evidence such as titles, greetings, labels and sign-offs, or a list of 140,000 European first names, leaving company and place names alone. Every mention of a person shares one placeholder so the model can still follow who is who.

Identifiers are checked, not just pattern-matched: IBANs by mod-97, cards by Luhn, and national ID numbers from 21 EU and EEA countries by check digits and a real birth date, so order and invoice numbers are not flagged. It also detects emails, phones, EU VAT numbers and IP addresses; street addresses are not yet covered. A mask mode swaps characters for asterisks instead of placeholders.

The three MCP tools are redact_text, redact_file and restore_file. The file tools read and write the file themselves and report only counts, so the personal data never enters the conversation, and a restore mapping keeps owner-only permissions. A RapidAPI key is required; its free plan allows 500 requests a month. A Python client and LangChain integration are also provided.

## Features

- **Name detection:** Finds person names from context and a 140,000-name list.
- **Validated identifiers:** Checks IBANs, cards and national IDs from 21 EU/EEA countries.
- **Consistent placeholders:** The same person always maps to one placeholder.
- **File redaction:** Redacts files without the data entering the chat.
- **Restore:** Puts original values back locally using a mapping file.
- **Mask mode:** Replaces characters with asterisks instead of placeholders.

## Good for

- Removing personal data from support tickets before sending to an LLM
- Redacting a file without the assistant reading it
- Restoring real values in an LLM's reply
- Cleaning documents before indexing for retrieval
- Masking IBANs and national IDs in logs

## Install

### Claude Code (Terminal)

```sh
claude mcp add eu-pii-redact --env RAPIDAPI_KEY='<RAPIDAPI_KEY>' -- uvx eu-pii-redact
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "eu-pii-redact": {
      "command": "uvx",
      "args": [
        "eu-pii-redact"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "eu-pii-redact": {
      "command": "uvx",
      "args": [
        "eu-pii-redact"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "eu-pii-redact": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "eu-pii-redact"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "eu-pii-redact": {
      "command": "uvx",
      "args": [
        "eu-pii-redact"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "eu-pii-redact": {
      "command": "uvx",
      "args": [
        "eu-pii-redact"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

## Tools

- `redact_text`: Redacts a text and returns the redacted text and entities without original values.
- `redact_file`: Redacts a UTF-8 file into a new file and writes a restore mapping.
- `restore_file`: Puts original values back into a file using the mapping, offline.

## FAQ

### Do I need an API key?

Yes, a RapidAPI key; the free plan gives 500 requests a month.

### Does it store my text?

The API is stateless; text is processed in memory and request bodies are not logged.

### Which tools are exposed?

redact_text, redact_file and restore_file.

### Which countries' IDs does it detect?

National IDs from 21 EU and EEA countries.

### Does it find street addresses?

Not yet.

### Is EU PII Redaction free?

EU PII Redaction has a free plan, with paid plans for more usage or features.

### How do I add EU PII Redaction to Claude Code?

Run this command in your terminal: claude mcp add eu-pii-redact --env RAPIDAPI_KEY='<RAPIDAPI_KEY>' -- uvx eu-pii-redact

### What are the best alternatives to EU PII Redaction?

The closest alternatives to EU PII Redaction are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [NY LLC Publication (FileMyPublication)](https://ai-powered.com/mcp/ny-llc-publication-filemypublication): NY LLC Publication (FileMyPublication) is a free MCP server for legal and government.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/eu-pii-redaction
