# SafeGrd MCP server

> Automates encrypted backups and integrity testing for databases, directory trees, and IMAP mailboxes with S3-compatible object locking.

- Repository: https://github.com/safegrd/cli
- Page: https://hostedmcp.org/servers/safegrd/cli
- Transport: stdio, remote
- Stars: 0
- Latest version: 0.0.29

## Install

### Claude Code

```sh
claude mcp add cli -- docker run -i --rm ghcr.io/safegrd/cli:0.0.29
```

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

```json
{
  "mcpServers": {
    "cli": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/safegrd/cli:0.0.29"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "cli": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/safegrd/cli:0.0.29"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"cli","type":"stdio","command":"docker","args":["run","-i","--rm","ghcr.io/safegrd/cli:0.0.29"]}'
```

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

```json
{
  "mcpServers": {
    "cli": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/safegrd/cli:0.0.29"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add cli -- docker run -i --rm ghcr.io/safegrd/cli:0.0.29
```

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

```toml
[mcp_servers.cli]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/safegrd/cli:0.0.29"]
```

### Gemini CLI

```sh
gemini mcp add -s user cli docker -- run -i --rm ghcr.io/safegrd/cli:0.0.29
```

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

```json
{
  "mcpServers": {
    "cli": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/safegrd/cli:0.0.29"
      ]
    }
  }
}
```

## FAQ

### Can an agent delete a backup?

No, the system is designed so that an agent or personal access token cannot delete a backup or shorten its lock.

### How are backups secured?

Backups are compressed with zstd and encrypted with age on the host before being written to S3-compatible storage under Object Lock.

### What is a Fire Drill?

A Fire Drill is a restore test that restores the newest backup into a throwaway environment to verify that all tables, rows, and files are intact.

### Does the remote server see my data?

No, data is encrypted on your host and sent straight to storage; the remote server only receives metadata and restore test results.
