Redactic — Claude Code MCP server: features and setup
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.
MIT updated 2026-11-15
claude mcp add --transport http mcp https://redactic.eu/mcpWhat Redactic 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.
What it helps with
- mask personal data in text
- hide personal details in a file before passing it to a model
- restore original values from labels
Example prompts for the agent
- 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.
How to install Redactic
1Platform CLI: remote server
claude mcp add --transport http mcp https://redactic.eu/mcp2Platform CLI
claude mcp add --env REDACTIC_API_KEY=<REDACTIC_API_KEY> --env REDACTIC_ALLOWED_DIRS=<REDACTIC_ALLOWED_DIRS> --transport stdio redactic -- npx -y @redactic/mcpReplace <…> with your own values
1Platform CLI: remote server
codex mcp add redactic --url https://redactic.eu/mcp2Platform CLI
codex mcp add redactic --env REDACTIC_API_KEY=<REDACTIC_API_KEY> --env REDACTIC_ALLOWED_DIRS=<REDACTIC_ALLOWED_DIRS> -- npx -y @redactic/mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"redactic": {
"url": "https://redactic.eu/mcp"
}
}
}{
"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
Config file
{
"servers": {
"redactic": {
"type": "http",
"url": "https://redactic.eu/mcp"
}
}
}{
"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
1Platform CLI: remote server
gemini mcp add -t http redactic https://redactic.eu/mcp2Platform CLI
gemini mcp add -e REDACTIC_API_KEY=<REDACTIC_API_KEY> -e REDACTIC_ALLOWED_DIRS=<REDACTIC_ALLOWED_DIRS> redactic npx -y @redactic/mcpReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Redactic
How do I install Redactic in Claude Code?
Add the server with the HTTP command claude mcp add --transport http redactic https://redactic.eu/mcp.
What does Redactic do?
It masks personal data in text and files, then restores the original values from labels. Detection runs on Redactic servers in the EU.
What does Redactic need to run?
A Redactic workspace and API key are required. File tools also need allowed folders; local setup through Node.js requires Node.js 18 or later.