# RAGbase Shield MCP server

> Masks client names and sensitive identifiers in local files before sending them to AI models, then restores the real names locally.

- Repository: https://github.com/ragbase/ragbase-shield
- Page: https://hostedmcp.org/servers/ragbase/ragbase-shield
- Transport: stdio
- Stars: 0
- License: Apache-2.0
- Latest version: 0.4.0

## Install

### Claude Code

```sh
claude mcp add ragbase-shield -- uvx 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"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"ragbase-shield","type":"stdio","command":"uvx","args":["ragbase-shield"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex

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

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.ragbase-shield]
command = "uvx"
args = ["ragbase-shield"]
```

### Gemini CLI

```sh
gemini mcp add -s user ragbase-shield uvx -- ragbase-shield
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## FAQ

### How does Shield protect my data?

It replaces client names and numbers with codes locally on your computer before the text is sent to the AI, and restores them only on your machine.

### Does Shield send my data to RAGbase?

No, Shield sends no usage statistics and nothing is sent to RAGbase.
