Skip to content
MCP server

oscura-atti

Local rule-based redaction of personal data in documents, for MCP clients and CLI

Runs locally

oscura-atti is an open-source MCP server for legal and government. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
0.1.4
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add oscura-atti -- uvx oscura-atti

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "oscura-atti": {
      "command": "uvx",
      "args": [
        "oscura-atti"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • OSCURA_ATTI_DIRFolder whose files the tools may read and write by path; without it documents travel as Base64

About oscura-atti

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.

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

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.

What it does

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

Pricing

Open source

Free under AGPL-3.0-or-later; run it yourself.

oscura-atti 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.

How AIPoweredBot checks servers