Bareos MCP Server

Bareos MCP Server

bareos-mcp-server•byedeckers

A read-only Model Context Protocol server for monitoring and querying the Bareos backup system.

License: MPL-2.0•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Lists backup jobs with optional filters for job, client, status, type, level, volume and pool.
  • •Retrieves detailed job status and full job logs by job ID.
  • •Lists clients, filesets, pools and volumes, with an optional pool filter for volumes.
  • •Lists the files backed up within a specific job.

BEST FOR

  • •Checking whether any backups failed in a recent time window.
  • •Reviewing recent backup jobs and job details through an AI assistant.
  • •Inspecting storage pool capacity and finding volumes ready for pruning.

ABOUT BAREOS-MCP-SERVER

Bareos MCP Server is cataloged as an MCP server attributed to edeckers. A read-only Model Context Protocol server for monitoring and querying the Bareos backup system. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MPL-2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Bareos MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server modify or delete backups?

No. All operations are read-only by design for safety in production environments.

How does the server communicate with the Bareos Director?

It calls bconsole, whose path can be set via the BAREOS_BCONSOLE_PATH environment variable or a wrapper script.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ceaa939bb12f · 采集于 2026-11-13 13:18:54 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Bareos MCP Server

Release License

A Model Context Protocol (MCP) server for Bareos backup system, providing read-only operations for monitoring and querying backup infrastructure.

Quick Start

Once configured, ask your AI assistant naturally about your backups:

"Show me the last 10 backup jobs"
"Are there any failed backups today?"
"What's the status of job 12345?"
"How much storage is left in the Full pool?"
"List all volumes ready for pruning"

Features

Read-Only Operations

  • Jobs: List recent jobs, get detailed status, view job logs
  • Clients: List all Bareos file daemon clients
  • Filesets: List configured backup filesets
  • Storage: List pools and volumes with capacity info

All operations are read-only by design for safety in production environments.

Prerequisites

  • Rust 1.70+ - For building the server
  • Bareos Director - With bconsole access
  • bconsole - Command-line interface to Bareos Director

Installation

1. Clone and Build

git clone https://github.com/edeckers/bareos-mcp-server.git
cd bareos-mcp-server
cargo build --release

The binary will be at: target/release/bareos-mcp-server

2. Configure bconsole Access

The MCP server calls bconsole to interact with the Bareos Director. By default it looks for bconsole in your PATH, but you can set the BAREOS_BCONSOLE_PATH environment variable to specify an absolute path to the binary or wrapper script:

export BAREOS_BCONSOLE_PATH=/usr/sbin/bconsole

You can also pass this through your MCP client config (see step 3).

You have several options:

Option A: Local bconsole (Direct Access)

If bconsole is installed locally and you have access:

# Test that bconsole works
bconsole -c /etc/bareos/bconsole.conf

No additional setup needed - the server will use bconsole directly.

Option B: Remote Bareos via SSH

If your Bareos Director is on a remote host, create a wrapper script:

# Copy the example
cp bconsole.example.sh bconsole
chmod +x bconsole

# Edit bconsole and set your hostname
vim bconsole

Example wrapper content:

#!/usr/bin/env bash
ssh your-bareos-host "sudo bconsole $*"

Add the wrapper directory to your PATH or reference it in the MCP config.

Option C: Docker/Container Setup

Run bconsole in a container that has network access to your Bareos Director.

3. Configure MCP Client

For Claude Code (CLI)

Create .mcp.json in your project directory:

cp .mcp.json.example .mcp.json
# Edit with your paths
vim .mcp.json

Example config:

{
  "bareos": {
    "command": "/absolute/path/to/bareos-mcp-server/target/release/bareos-mcp-server",
    "args": [],
    "env": {
      "BAREOS_BCONSOLE_PATH": "/absolute/path/to/bconsole"
    }
  }
}

For Claude Desktop

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "bareos": {
      "command": "/absolute/path/to/bareos-mcp-server/target/release/bareos-mcp-server",
      "args": [],
      "env": {
        "BAREOS_BCONSOLE_PATH": "/absolute/path/to/bconsole"
      }
    }
  }
}

Usage

With Claude Code

cd your-project
claude

Example queries:

  • "Show me the last 10 backup jobs"
  • "What's the status of job 12345?"
  • "List all Bareos clients"
  • "How much storage is in the Full pool?"
  • "Show me volumes ready for pruning"

Available Tools

ToolDescriptionParameters
list_jobsList backup jobs with filtersjob, client, jobstatus, jobtype, joblevel, volume, pool (all optional filters); days, hours (time filters, hours wins); last, count (output modes, count wins)
get_job_statusGet detailed status of a jobjob_id (required)
get_job_logView complete job logjob_id (required)
list_filesList files backed up in a jobjob_id (required)
list_clientsList all file daemon clientsNone
list_filesetsList backup filesetsNone
list_poolsList storage poolsNone
list_volumesList volumes/mediapool (optional filter)

list_jobs Parameters Detail

The list_jobs tool supports multiple filters and options that can be combined:

Filters (all optional, can be combined):

  • job - Filter by job name
  • client - Filter by client name
  • jobstatus - Filter by status (e.g., T=terminated, f=failed, R=running)
  • jobtype - Filter by type (e.g., B=backup, R=restore, V=verify, D=admin, C=copy, M=migration)
  • joblevel - Filter by level (e.g., F=full, I=incremental, D=differential)
  • volume - Filter by volume name
  • pool - Filter by pool name

Understanding Job Types:

  • When users ask about "backups" or "backup performance", they typically mean backup jobs only (jobtype: "B"). Do not include verification, restore, or other job types unless explicitly requested.
  • Verification jobs (jobtype: "V") validate backup integrity but are not backups themselves
  • Use jobtype filter to focus on specific operations when ambiguity exists

Time Filters (mutually exclusive):

  • days - Show jobs from last N days
  • hours - Show jobs from last N hours
  • Precedence: If both provided, hours takes precedence (matches Bareos behavior)

Output Modes (mutually exclusive):

  • last - Show only the most recent run of each job (WARNING: if jobs ran multiple times in the time range, only the LAST run will be returned)
  • count - Show count of matching jobs instead of details
  • Precedence: If both provided, count takes precedence (matches Bareos behavior)

Examples:

  • {"client": "web-server", "days": 7} - All jobs for web-server in last 7 days
  • {"jobstatus": "f", "hours": 24, "count": true} - Count of failed jobs in last 24 hours
  • {"pool": "Full", "last": true} - Most recent run of each job type in the Full pool (only one run per job)

Direct Testing

Test the server without an MCP client:

# Initialize
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' | ./target/release/bareos-mcp-server

# List tools
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | ./target/release/bareos-mcp-server

# Call a tool - list jobs from last 7 days
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_jobs","arguments":{"days":7}}}' | ./target/release/bareos-mcp-server

# List the most recent jobs for a specific client
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_jobs","arguments":{"client":"backup-client-1","last":true}}}' | ./target/release/bareos-mcp-server

# Count failed jobs in the last 24 hours
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_jobs","arguments":{"hours":24,"jobstatus":"f","count":true}}}' | ./target/release/bareos-mcp-server

Troubleshooting

bconsole not found

# Check if bconsole is in PATH
which bconsole

# Or create wrapper script (see Setup section)

Permission denied

# Check bconsole config permissions
ls -l /etc/bareos/bconsole.conf

# May need to add user to bareos group
sudo usermod -a -G bareos $USER

Connection refused

# Test bconsole directly
echo "version" | bconsole

# Check Director is running
systemctl status bareos-dir

SSH issues (remote setup)

# Test SSH connection
ssh your-host "bconsole" << EOF
version
quit
EOF

# Check SSH key authentication
ssh -v your-host

License

MPL-2.0

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Bareos MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/bareos-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage