# Redacta MCP server

> Redact patient identifiers from clinical text, restore them later, and run self-checks, all by asking in plain English.

- Sign-in: See setup
- Connect in RevampKey: https://revampkey.com/marketplace/redacta

## Agent skills (1)

- [Redacta MCP Essentials: Protect Patient Data in AI Workflows](https://revampkey.com/marketplace/redacta/skills/essentials.md): Guides an AI agent through protecting clinical text with Redacta, releasing restored output to a file, and scanning model output for leaked identifiers. It asks before any release or discard step.

All skills: https://revampkey.com/marketplace/redacta/skills.md

Redacta is a privacy boundary for AI and agent work with clinical text. Nick Lamb made it. It replaces patient identifiers, such as names, NHS numbers and dates, with labelled tokens like [NHS_NUMBER_1] and [PATIENT_NAME_1]. It is built for people who handle patient letters and notes and want an agent to work on them without seeing the real identifiers. It is also available as a free iPhone app and can run on a self-hosted Kubernetes cluster.

Connect Redacta from the Connectors tab in RevampKey and your agent gets three tools: redact, reinstate and self_check. Ask it to redact a clinical letter, and you get back the text with names, NHS numbers, dates of birth, emails and phone numbers swapped for tokens. Later, ask it to reinstate the originals into tokenised text. Ask it to self-check redacted text. The server runs locally, with no network calls and no persistent storage.

This connector gives you the older v1 tools. Redact returns the token map to the caller, so the reversal key can reach the model's context. Redacta's newer protect and release_to_file tools keep that map inside the server, but they are not part of this connector. Keep this in mind before you use it with real records.

## What you can do

### Summarise a referral letter without the identifiers

A clinic admin has a referral letter with the patient's name, NHS number and date of birth. They ask the agent to redact the letter first. The agent runs redact and returns the text with labelled tokens such as [PATIENT_NAME_1] and [NHS_NUMBER_1]. The admin then asks for a short summary, which the agent writes from the tokenised text.

### Put the real details back into a draft

A clinician has a draft summary that still uses tokens. They ask the agent to reinstate the original details. The agent calls reinstate on the tokenised text and returns the draft with names and numbers in place. The agent asks before it changes anything, so you see the step before it runs.

### Check a redacted note before you share it

A team lead has a note that someone redacted earlier. They want to know whether identifiers are still there. They ask the agent to run a self-check on the note. The agent calls self_check and reports what it finds, so the lead can decide what to fix before the note moves on.

## Things to ask

- Redact the patient name, NHS number and date of birth from this clinic letter.
- Redact the email addresses and phone numbers in this referral note.
- Put the original names and numbers back into the summary I drafted from the tokens.
- Reinstate the patient details in the letter we redacted earlier.
- Run a self-check on this redacted note and tell me what it found.

## What the agent can do

### Redacting clinical text

Ask the agent to replace patient identifiers in a letter, note or other clinical text with labelled tokens. Redaction covers identifiers such as NHS numbers, National Insurance numbers, dates of birth, emails and phone numbers.

`redact`

### Restoring identifiers

Ask the agent to put the original details back into tokenised text. Restoration works from the tokens that a redaction produced, so keep the redacted text and its tokens together.

`reinstate`

### Self-checks

Ask the agent to run a self-check on text you have redacted. The agent calls self_check and reports what it finds.

`self_check`

## FAQ

### What do I need to connect Redacta to RevampKey?

Connect Redacta from the Connectors tab in RevampKey. It is available now. Once it is connected, your agent can call its three tools: redact, reinstate and self_check. You then ask for what you need in plain English, and the agent picks the right tool.

### What can the agent do with Redacta, and what can't it do?

It can redact patient identifiers from text, reinstate them into tokenised text, and run a self-check. None of its three tools sends text anywhere, and the server makes no network calls. Redacta does not catch names in free prose, so check the agent's answers and read redacted output yourself before you rely on it.

### Does my data stay on my computer, and does the agent ask before it acts?

The agent asks before it changes anything. Redacta's server runs locally in its own process, with no network calls and no persistent storage. The legacy redact tool returns the token map to the agent, so the reversal key can reach the model's context.

### Why does the redact tool return the token map?

This connector gives the agent the older v1 tools. Redact returns the token map to the caller, which can place the reversal key in the model's context. Redacta's newer protect and release_to_file tools keep the map inside the server, but this connector does not include them.

### Is the Redacta MCP server local or remote?

It runs on your own computer with npx (package redacta-mcp@2.1.1). Your client starts it as a local process; nothing is hosted.

### What can an AI agent do with the Redacta MCP server?

It exposes 3 tools: 3 that read and 0 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

### Are there agent skills for Redacta?

Yes. 1 SKILL.md playbooks teach an agent how to do real Redacta work step by step. RevampKey installs them when you connect Redacta; for Claude Code, Cursor or Codex you can copy them into your project.

## Tools (3)

- `redact`
- `reinstate`
- `self_check`

## Details

- Maker: Nick Lamb
- Setup: Connect from the app
- Documentation: https://github.com/nickjlamb/redacta/tree/main/mcp-server

Page: https://revampkey.com/marketplace/redacta
