B

Backrest MCP

by DasRed · io.github.DasRed/backrest-mcp

Streamable HTTP MCP server that exposes every procedure of the Backrest API as a tool, letting clients check backup status, browse snapshots and logs, read Prometheus metrics and – when enabled – start backups, restores, prune or check and change configuration, read-only by default.

oci Unknown transport GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-dasred-backrest-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "BACKREST_MCP_BACKREST_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_USERNAME=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PASSWORD=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_READ_ONLY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_ALLOW=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_DENY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_MASK_SECRETS=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_SERVER_LOG_LEVEL=<YOUR_VALUE>",
        "ghcr.io/dasred/backrest-mcp:1.2.1"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-dasred-backrest-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "BACKREST_MCP_BACKREST_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_USERNAME=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PASSWORD=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_READ_ONLY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_ALLOW=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_DENY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_MASK_SECRETS=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_SERVER_LOG_LEVEL=<YOUR_VALUE>",
        "ghcr.io/dasred/backrest-mcp:1.2.1"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-dasred-backrest-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "BACKREST_MCP_BACKREST_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_USERNAME=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PASSWORD=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_READ_ONLY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_ALLOW=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_DENY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_MASK_SECRETS=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_SERVER_LOG_LEVEL=<YOUR_VALUE>",
        "ghcr.io/dasred/backrest-mcp:1.2.1"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-dasred-backrest-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "BACKREST_MCP_BACKREST_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_USERNAME=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PASSWORD=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_READ_ONLY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_ALLOW=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_DENY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_MASK_SECRETS=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_SERVER_LOG_LEVEL=<YOUR_VALUE>",
        "ghcr.io/dasred/backrest-mcp:1.2.1"
      ]
    }
  }
}

Reload the VS Code window to activate.

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

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-dasred-backrest-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "BACKREST_MCP_BACKREST_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_USERNAME=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PASSWORD=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_READ_ONLY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_ALLOW=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_DENY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_MASK_SECRETS=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_SERVER_LOG_LEVEL=<YOUR_VALUE>",
        "ghcr.io/dasred/backrest-mcp:1.2.1"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-dasred-backrest-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "BACKREST_MCP_BACKREST_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_USERNAME=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PASSWORD=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_READ_ONLY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_ALLOW=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_TOOLS_DENY=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_MASK_SECRETS=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_BACKREST_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "BACKREST_MCP_SERVER_LOG_LEVEL=<YOUR_VALUE>",
        "ghcr.io/dasred/backrest-mcp:1.2.1"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
BACKREST_MCP_BACKREST_URL Yes The URL of the Backrest server.
BACKREST_MCP_BACKREST_USERNAME No Username for Backrest authentication. Leave out if authentication is disabled in Backrest.
BACKREST_MCP_BACKREST_PASSWORD secret No Password for Backrest authentication. Leave out if authentication is disabled in Backrest.
BACKREST_MCP_READ_ONLY No Only expose the read-only tools Default: true
BACKREST_MCP_TOOLS_ALLOW No Comma separated tool names to keep, * as wildcard
BACKREST_MCP_TOOLS_DENY No Comma separated tool names to remove, * as wildcard
BACKREST_MCP_MASK_SECRETS No Replace repository passwords and hook tokens with ******** in returned configs Default: true
BACKREST_MCP_AUTH_TOKEN secret No If set, the MCP endpoint requires Authorization: Bearer <token>
BACKREST_MCP_BACKREST_PUBLIC_URL No Public URL of Backrest for download links, defaults to BACKREST_MCP_BACKREST_URL
BACKREST_MCP_BACKREST_TIMEOUT No Request timeout against Backrest in milliseconds Default: 60000
BACKREST_MCP_SERVER_LOG_LEVEL No Log level Default: info

Similar servers