# RAGbase Shield

> RAGbase Shield is an open-source MCP server for security. Local, reversible masking of client names and numbers before text goes to an AI. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Web, Linux, macOS, Windows
- **Website:** https://shield.ragbase.ai
- **Repository:** https://github.com/ragbase/ragbase-shield
- **MCP Registry name:** io.github.ragbase/ragbase-shield
- **Categories:** security, legal and government
- **Listing updated:** 2026-11-14

## About

RAGbase Shield swaps the people, companies, addresses, references, emails and phone numbers in a client file for codes such as PERSONNE_A or SOCIETE_A before the text leaves your computer. When Claude's answer comes back, the real names are put back in. The table of codes stays local.

Its design choice is to mask personal data but leave the legal substance readable, so statutes, jurisdictions, dates and amounts remain in clear text and the assistant can still reason about the case. The site publishes F1 benchmark scores against Presidio and others on French text, including a French public benchmark and a labour-law set, and says the full protocol is public.

It is free and open source under Apache-2.0, installed from PyPI, and the site says it sends no usage statistics. The site is written in French and aimed at lawyers working with French documents; the in-page demo runs in the browser.

## Features

- **Reversible pseudonyms:** Replaces names with codes, then restores them in the reply.
- **Legal text left readable:** Keeps articles, jurisdictions, dates and amounts in the clear.
- **Local processing:** The code table stays on your computer.
- **Published benchmarks:** Reports precision, recall and F1 against other engines.
- **No usage telemetry:** The site says no statistics are sent.
- **Browser demo:** Try masking text on the web page.

## Good for

- Prepare a client file for Claude without exposing names
- Review a dismissal case while keeping the legal arguments intact
- Restore real names in an AI-written draft
- Compare masking quality across engines

## Install

### Claude Code (Terminal)

```sh
claude mcp add ragbase-shield -- uvx ragbase-shield
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ragbase-shield": {
      "command": "uvx",
      "args": [
        "ragbase-shield"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "ragbase-shield": {
      "command": "uvx",
      "args": [
        "ragbase-shield"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "ragbase-shield": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ragbase-shield"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "ragbase-shield": {
      "command": "uvx",
      "args": [
        "ragbase-shield"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "ragbase-shield": {
      "command": "uvx",
      "args": [
        "ragbase-shield"
      ]
    }
  }
}
```

## FAQ

### Does my text leave my computer?

Shield replaces names with codes locally before the text is sent, and the code table stays on your machine.

### Is it free?

Yes, free and open source under Apache-2.0.

### What language does it focus on?

The site and benchmarks centre on French legal documents.

### Is RAGbase Shield free?

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

### How do I add RAGbase Shield to Claude Code?

Run this command in your terminal: claude mcp add ragbase-shield -- uvx ragbase-shield

### What are the best alternatives to RAGbase Shield?

The closest alternatives to RAGbase Shield are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [NY LLC Publication (FileMyPublication)](https://ai-powered.com/mcp/ny-llc-publication-filemypublication): NY LLC Publication (FileMyPublication) is a free MCP server for legal and government.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/ragbase-shield
