# oscura-atti

> oscura-atti is an open-source MCP server for legal and government. Local rule-based redaction of personal data in documents, for MCP clients and CLI. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/francescor/oscura-atti
- **MCP Registry name:** io.github.francescor/oscura-atti
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government)
- **Listing updated:** 2026-11-28

## About

Oscura-atti replaces personal values in PDFs, signed .p7m files, office documents and images with consistent labels such as Person 1 or Persona 2, so the text stays readable while the individuals are not identifiable. Recognition relies on rules and check-digit validation for codes like Italian tax codes, IBANs and payment cards, plus context cues around names, birth data and addresses, rather than a cloud service.

After redacting, the output is read back, with OCR for scanned pages, and any value still extractable is reported. Documents with doubtful results end with a review outcome for a person to decide. Nothing is stored, and the mapping between values and labels exists only during each call.

It is aimed at public bodies and archivists who must remove personal data from acts before republishing them, and at developers who want an MCP server, command line tool or Python library for this job. Configuration covers languages, rule packs, public persons and per-type policies.

## Features

- **Consistent label replacement:** The same person receives the same label throughout a document, keeping the narrative understandable.
- **Check-digit code recognition:** Validates tax codes, IBANs, payment cards and several national identifiers before redacting them.
- **Read-back verification:** Re-reads the redacted output, including OCR, and reports any value that remains extractable.
- **Local processing:** Runs on your own machine or container, with no document sent to a cloud service.
- **MCP server with file paths:** Exposes analyse and redact tools to AI agents, returning reports without personal values when paths are used.
- **Configurable policies:** Set per-type actions such as redact, flag or keep, plus public persons and domains to leave readable.

## Good for

- Redacting personal data from municipal resolutions before publishing them after the notice period
- Batch processing an archive of documents with a review step for uncertain cases
- Letting an AI agent produce a redacted copy of a file from a folder path
- Checking a redacted PDF for leftover personal values before release

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add oscura-atti -- uvx oscura-atti
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add oscura-atti -- uvx oscura-atti
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.oscura-atti]
command = "uvx"
args = ["oscura-atti"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user oscura-atti uvx -- oscura-atti

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `analyse_pdf`: Lists entities found in a document, with the label each will get and the values, for operator review.
- `redact_pdf`: Produces a redacted PDF from Base64 or a file path and returns a report without personal values.

## FAQ

### Does oscura-atti send documents to the cloud?

No. Documents are processed locally and nothing is stored, including the mapping between values and labels.

### Which languages and document types are supported?

It includes packs for Italian, UK, Spanish, French and German codes, and handles PDF, signed .p7m, Word, Excel, OpenDocument, images and text.

### Does oscura-atti require machine learning?

No. Recognition is rule-based. An optional neural NER model can be enabled through an extra install.

### Is oscura-atti free?

Yes. oscura-atti is open source, so you can use and self-host it for free.

### How do I add oscura-atti to Claude Code?

Run this command in your terminal: claude mcp add oscura-atti -- uvx oscura-atti

### What are the best alternatives to oscura-atti?

The closest alternatives to oscura-atti are Redact Pdf MCP, Blackout, EU PII Redaction, LexITanon and Czech PII Anonymizer & NLP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Redact Pdf MCP](https://ai-powered.com/mcp/redact-pdf-mcp): Redact Pdf MCP is a freemium MCP server for files and documents.
- [Blackout](https://ai-powered.com/mcp/blackout): Blackout is a freemium MCP server for legal and government.
- [EU PII Redaction](https://ai-powered.com/mcp/eu-pii-redaction): EU PII Redaction is a freemium MCP server for security.
- [LexITanon](https://ai-powered.com/mcp/lexitanon): LexITanon is a paid MCP server for legal and government.
- [Czech PII Anonymizer & NLP](https://ai-powered.com/mcp/czech-pii-anonymizer-and-nlp): Czech PII Anonymizer & NLP is an open-source MCP server for security.
- [Katip: KVKK Masking & Anonymisation for Lawyers](https://ai-powered.com/mcp/katip-kvkk-masking-and-anonymisation-for-lawyers): Katip: KVKK Masking & Anonymisation for Lawyers is an open-source MCP server for legal and government.
- [On 개인정보 가리기](https://ai-powered.com/mcp/on-5): On 개인정보 가리기 is a freemium MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/oscura-atti
