Skip to content
MCP server

RAGbase Shield

Local, reversible masking of client names and numbers before text goes to an AI

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, Web, Linux
Runs
Locally
Version
0.4.0
Listing updated
3 days ago

About RAGbase Shield

RAGbase Shield is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

claude mcp add ragbase-shield -- uvx ragbase-shield

Add to claude_desktop_config.json

{
  "mcpServers": {
    "ragbase-shield": {
      "command": "uvx",
      "args": [
        "ragbase-shield"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "ragbase-shield": {
      "command": "uvx",
      "args": [
        "ragbase-shield"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

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

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

What it does

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

Pricing

Open source

Free, Apache-2.0

Prices change. Check shield.ragbase.ai before you buy.

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 to RAGbase Shield

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Agent Roast

    MCP server

    Offline review that flags agent changes which weaken tests, assertions or CI

    Runs locally
    • Open source
    • 4 Hacker News points
    • Developer tools
  3. Midplane

    MCP server

    Postgres gateway for AI agents with table grants, column masking and approval for writes

    Runs locally
    • Open source
    • 5 GitHub stars
    • Databases
  4. Leash

    MCP server

    Review what your AI touched, approve risky actions and undo supported changes

    • 1 tool
    • Remote
    • Free
    • 1 GitHub star
    • Security
  5. SecureCloud

    MCP server

    SentinelOne and IT security catalog, prices, quotes and checkout links for Israel

    • 7 tools
    • Remote
    • Free
    • Security