# Redactic

The Redactic MCP server for Claude Code masks and restores personal data in text and files. It can process content before it is passed to an AI model.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: redactic
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/redactic/redactic-mcp
- Updated: 2026-11-15
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/redactic

## What it does

Redactic replaces personal details with labels and can later restore the original values in text. File tools read from and write to folders that have been allowed in the server settings.

Text and files go to Redactic servers in the EU for personal-data detection. The label-to-value map stays in the local server's memory. Set `REDACTIC_RESTORE_INLINE=1` to return restored text to the conversation, where the model can read the original values.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://redactic.eu/mcp`
- Environment variables: `REDACTIC_API_KEY`, `REDACTIC_ALLOWED_DIRS` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://redactic.eu/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env REDACTIC_API_KEY=<REDACTIC_API_KEY> --env REDACTIC_ALLOWED_DIRS=<REDACTIC_ALLOWED_DIRS> --transport stdio redactic -- npx -y @redactic/mcp
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add redactic --url https://redactic.eu/mcp
```

2. **Platform CLI**
```bash
codex mcp add redactic --env REDACTIC_API_KEY=<REDACTIC_API_KEY> --env REDACTIC_ALLOWED_DIRS=<REDACTIC_ALLOWED_DIRS> -- npx -y @redactic/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "redactic": {
            "url": "https://redactic.eu/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "redactic": {
            "command": "npx",
            "args": [
                "-y",
                "@redactic/mcp"
            ],
            "env": {
                "REDACTIC_API_KEY": "<REDACTIC_API_KEY>",
                "REDACTIC_ALLOWED_DIRS": "<REDACTIC_ALLOWED_DIRS>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "redactic": {
            "type": "http",
            "url": "https://redactic.eu/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "redactic": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@redactic/mcp"
            ],
            "env": {
                "REDACTIC_API_KEY": "<REDACTIC_API_KEY>",
                "REDACTIC_ALLOWED_DIRS": "<REDACTIC_ALLOWED_DIRS>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http redactic https://redactic.eu/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e REDACTIC_API_KEY=<REDACTIC_API_KEY> -e REDACTIC_ALLOWED_DIRS=<REDACTIC_ALLOWED_DIRS> redactic npx -y @redactic/mcp
```
Replace <…> with your own values

## When to use it
- mask personal data in text
- hide personal details in a file before passing it to a model
- restore original values from labels

## Example prompts
- Mask personal data in this text.
- Hide the personal details in this file before sending it to the model.
- Restore the original values in this labelled text.

## Similar
- [Context7](https://affpapa.org/en/nevibecode/mcp/context7.md) — MCP server · 5563 installs
- [Search Google Flights](https://affpapa.org/en/nevibecode/mcp/search-google-flights.md) — MCP server · 2595 installs
- [Math-MCP](https://affpapa.org/en/nevibecode/mcp/math-mcp.md) — MCP server · 5958 installs
- [pipeworx gateway](https://affpapa.org/en/nevibecode/mcp/pipeworx-gateway.md) — MCP server · 419019 installs
- [SparkForge](https://affpapa.org/en/nevibecode/mcp/sparkforge.md) — MCP server · 219896 installs
- [OpenWebSearch](https://affpapa.org/en/nevibecode/mcp/openwebsearch.md) — MCP server · 494 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
