# umbryn-mcp [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/Rinava/umbryn-mcp  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/umbryn-mcp

## Description
Redacts PII/PHI from text before it reaches an LLM. Fail-closed, self-hosted, no egress.

## Tools
Capabilities this server exposes over MCP:

- **redact** — Replace PHI/PII in text with reversible typed placeholders.
- **restore** — Reverse a redaction using its token map, recovering the original text.
- **detect** — Report the PHI/PII entities found in text without modifying it.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "umbryn-mcp": {
    "command": "uvx",
    "args": ["umbryn-mcp"],
    "env": {
      "UMBRYN_ENGINE": ""
    }
  }
}
```

**Requires environment variables:** `UMBRYN_ENGINE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What umbryn-mcp does

umbryn-mcp places a local PHI/PII handling boundary between an MCP client and an LLM. Its three tools are `redact`, `restore`, and `detect`:

- `redact` finds supported sensitive values and replaces them with typed placeholders such as `[NPI_1]` or `[EMAIL_ADDRESS_1]`. The result includes scrubbed text, a token map, and entity details.
- `restore` uses the token map to replace placeholders with their original values. Redaction and restoration are designed to preserve the input byte-for-byte.
- `detect` reports entities, spans, confidence values, and a count without changing the input. Unlike `redact`, it exposes low-confidence matches for inspection.

Supported detection includes healthcare identifiers such as NPI, DEA, Medicare MBI, MRN, and CLIA, along with email addresses, phone numbers, US Social Security numbers, credit cards, IBANs, IP addresses, and URLs. The optional ML engine adds `PERSON` and `LOCATION` named-entity recognition.

## How it works

The server receives tool calls over stdio and passes them to a redaction core. The default engine uses regular expressions and checksum validation, while an optional Presidio and spaCy installation can provide additional named-entity detection. Overlapping matches are resolved deterministically, and detected spans are converted into typed placeholders.

A typical pipeline is `redact` → send only the returned redacted text to the model → `restore` the model output locally. The token map contains the original sensitive values, so it must remain inside the controlled environment and must not be sent to the model. Raw input and detection processing stay within the infrastructure running the server; the intended downstream payload contains scrubbed text only.

If detection fails or a result falls below the confidence threshold, the redaction call returns a typed error instead of passing the unresolved value through. This fail-closed behavior is intended to prevent partial scrubbing from silently becoming an outbound request.

## Setup and configuration

Install the default package with:

```bash
pip install umbryn-mcp
```

Register the executable as an MCP server. For example, Claude Desktop and Claude Code can launch `umbryn-mcp` directly, while Cursor and VS Code use the same command-based MCP configuration pattern.

For optional name and address detection, install the Presidio extra and the spaCy English model:

```bash
pip install "umbryn-mcp[presidio]"
python -m spacy download en_core_web_lg
```

The server automatically uses Presidio when available. Set `UMBRYN_ENGINE=regex` to force the dependency-free engine, or set it to `presidio` to require the ML engine.

## Tools and capabilities

- Detect healthcare-specific and general PII patterns locally.
- Produce deterministic, typed placeholders and a reversible token map.
- Restore original values after an LLM or downstream processing step.
- Inspect detected entities without modifying text.
- Reject uncertain redaction results instead of allowing unresolved data through.
- Run without network calls or heavy dependencies by default.

## Limitations and notes

The server handles text, not images, audio, PDFs, or database rows. Its redaction is reversible and therefore is not a substitute for irreversible anonymization, tokenization, or k-anonymity. Detection cannot guarantee perfect recall, and the project is a technical control rather than a certified compliance product. It exposes explicit tool calls rather than acting as a transparent proxy for every request; automatic proxy mode is identified as future work.

Treat the token map as sensitive as the original input. Keeping it local is necessary for the redact-model-restore pattern to avoid sending the original values to the model.

_Full upstream README: https://allmcps.com/mcp/umbryn-mcp/readme_

