Skip to content
MCP server

EU PII Redaction

Redact EU personal data from text and files before an LLM sees it, and restore it later

Runs locallyStatus and history
Install
Pricing
Freemium
Platforms
CLI, API
Runs
Locally
Version
0.1.0
Listing updated
1 day ago

About EU PII Redaction

EU PII Redaction is a freemium MCP server for security. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

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

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Configuration

  • RAPIDAPI_KEYRapidAPI key subscribed to EU PII Redaction (free plan: 500 requests/month).Required

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

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.

What it does

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

Pricing

Freemium

Free plan with 500 requests a month on RapidAPI; paid plans not listed here

Prices change. Check rapidapi.com before you buy.

EU PII Redaction 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 to EU PII Redaction

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Agent Roast

    MCP server

    Offline review that flags agent changes which weaken tests, assertions or CI

    Runs locally
    • Open source
    • 4 Hacker News points
    • Developer tools
  3. Midplane

    MCP server

    Postgres gateway for AI agents with table grants, column masking and approval for writes

    Runs locally
    • Open source
    • 5 GitHub stars
    • Databases
  4. Leash

    MCP server

    Review what your AI touched, approve risky actions and undo supported changes

    • 1 tool
    • Remote
    • Free
    • 1 GitHub star
    • Security
  5. SecureCloud

    MCP server

    SentinelOne and IT security catalog, prices, quotes and checkout links for Israel

    • 7 tools
    • Remote
    • Free
    • Security