Duplicati Mcp

io.github.kcofoni由 GitHub 账号 kcofoni 发布v1.1.1更新于 Oct 25, 2026

MCP server for Duplicati backup management — list, run, monitor and configure jobs from an LLM.

概览

AI 生成的概览

该 MCP 服务器让助手通过 Duplicati REST API 列出、运行、监控和配置 Duplicati 备份任务。

可以做什么
列出并查看备份任务,包括上次运行时间和结果,并查看服务器状态与正在运行任务的实时进度。立即触发或中止某个备份任务。以 JSON 导出、更新和导入任务配置。设置本地数据库路径后,从 Duplicati 的 SQLite 数据库读取备份元数据、计划、选项、还原点、操作历史、错误日志和通知。
适用场景
适合已在使用 Duplicati、希望让助手汇报备份健康状况、查询历史与还原点,或在不打开网页界面的情况下调整任务设置的用户。只读模式适合无修改风险地浏览和分析。
运行要求
以 stdio 本地进程运行(通过 uv 使用 Python),或以 Docker 镜像以 streamable HTTP 在 3000 端口运行。需要 DUPLICATI_URL 指向可访问的 Duplicati 实例,若网页界面设有密码还需 DUPLICATI_PASSWORD。需要能访问该实例的网络。db_* 历史工具还需 DUPLICATI_DB_PATH 指向 Duplicati-server.sqlite,使用 Docker 时以只读方式共享。
安装前请注意
DUPLICATI_PASSWORD 是机密,会以明文环境变量或配置文件传递。写入类工具可启动或中止备份、修改任务配置并新建任务;将 DUPLICATI_READONLY 设为 true 可禁用这些操作。SQLite 工具直接读取 Duplicati 数据库,请确保 DUPLICATI_DB_PATH 只指向目标文件,并在 Docker 中以只读方式挂载。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Duplicati Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Duplicati MCP Server

MCP (Model Context Protocol) server for managing Duplicati backups from an LLM.

Version française / French version

Architecture

The server wraps the Duplicati REST API and exposes it via the MCP protocol. Two transports are supported:

  • stdio — for local use via Claude Code (no network, no port)
  • Streamable HTTP — for Docker deployment, accessible over the network

Getting Started

Local use with Claude Code (stdio)

The simplest way to get started. The .mcp.json at the project root handles everything:

bash
# Install uv if neededbrew install uv
# Claude Code will auto-detect .mcp.json and launch the server

Set your Duplicati URL and password in .mcp.json:

json
{  "mcpServers": {    "duplicati": {      "type": "stdio",      "command": "uv",      "args": ["run", "duplicati-mcp"],      "env": {        "DUPLICATI_URL": "http://localhost:8200",        "DUPLICATI_PASSWORD": "your-password",        "DUPLICATI_READONLY": ""      }    }  }}

With Docker Compose (Docker Hub image)

bash
# Edit DUPLICATI_URL and DUPLICATI_PASSWORD in docker-compose.yml, then:docker compose up -d

With Docker Compose (local build)

bash
# Edit docker-compose.yml: comment out `image:` and uncomment `build: .`docker compose up -d --build

Direct Docker usage

bash
docker run -d \  --name duplicati-mcp-server \  -p 3000:3000 \  -e DUPLICATI_URL=http://your-duplicati-host:8200 \  -e DUPLICATI_PASSWORD=your-password \  kcofoni/duplicati-mcp:latest

Verification

bash
# Check that the server is runningdocker logs duplicati-mcp-server
# Test the MCP endpointcurl -X POST http://localhost:3000/mcp \  -H "Content-Type: application/json" \  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'

Client Configuration

Claude Code — local (stdio)

For local use without Docker, add to your project .mcp.json:

json
{  "mcpServers": {    "duplicati": {      "type": "stdio",      "command": "uv",      "args": ["run", "duplicati-mcp"],      "env": {        "DUPLICATI_URL": "http://localhost:8200",        "DUPLICATI_READONLY": ""      }    }  }}

Credentials are loaded from the .env file at the project root (see Getting Started).

Claude Code — Docker/remote (HTTP)

Add to your .mcp.json:

json
{  "mcpServers": {    "duplicati": {      "type": "http",      "url": "http://your-host:3000/mcp"    }  }}

Claude Desktop

Claude Desktop requires mcp-proxy as a bridge to HTTP servers. Add to your configuration file:

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

json
{  "mcpServers": {    "duplicati": {      "command": "uvx",      "args": ["mcp-proxy", "--transport", "streamablehttp", "http://your-host:3000/mcp"]    }  }}

Available Tools

Once connected, the LLM has access to:

Backup Jobs

  1. list_backups — List all configured jobs with ID, name, last run date and result
  2. get_backup — Get detailed information about a specific job
  3. run_backup — Trigger a backup job immediately
  4. abort_backup — Abort the currently running backup for a job

Status & Progress

  1. get_progress — Live progress of the active backup task (phase, %, file counts)
  2. get_server_status — Duplicati server state, version and active task

Configuration

  1. export_backup_config — Export a job configuration as JSON
  2. update_backup_config — Update an existing job configuration in place (use with export_backup_config to modify sources, settings, schedule, etc.)
  3. import_backup_config — Import a job configuration from JSON (creates a new job)

History & Diagnostics (SQLite — requires DUPLICATI_DB_PATH)

  1. db_get_backup_metadata — Rich metadata from the local database: last run date, duration, file counts, quota usage, last error
  2. db_get_backup_schedule — Schedule configuration for a backup job
  3. db_list_errors — Recent error log entries, optionally filtered by job
  4. db_list_notifications — System notifications (update alerts, etc.)
  5. db_get_backup_options — Configuration options for a job (compression, retention policy, etc.) — passphrases excluded
  6. db_list_operations — Operation history for a job (Backup, Restore, List, etc.) with timestamps
  7. db_get_operation_log — Full result and statistics for a specific operation
  8. db_list_filesets — Available restore points (backup versions) for a job

Example Prompts

Once the server is connected to your LLM, here are prompts you can use:

General status

  • "What backup jobs are configured on my Duplicati?"
  • "What was the last backup that ran and what was the result?"
  • "Is a backup currently running?"

History & statistics (requires DUPLICATI_DB_PATH)

  • "Show me the last 10 operations for backup job 2"
  • "What is the average duration of recent backups?"
  • "Have there been any errors on my backups in the past few weeks?"
  • "How many files are backed up and what is the total size on the destination?"

Restore points (requires DUPLICATI_DB_PATH)

  • "What restore points are available for my backup job?"
  • "What is the oldest backup available for a restore?"

Configuration (requires DUPLICATI_DB_PATH)

  • "What retention policy is configured on my backup job?"
  • "What compression and encryption options are in use?"

Diagnostics (requires DUPLICATI_DB_PATH)

  • "Are there any pending system notifications on Duplicati?"
  • "Has my Duplicati encountered any errors recently? Which ones?"
  • "Analyse the last backup and tell me if everything went well"

Open-ended (combines multiple tools)

  • "Give me a full health report on my Duplicati backups"

Environment Variables

VariableDefaultDescription
DUPLICATI_URLhttp://localhost:8200URL of the Duplicati instance
DUPLICATI_PASSWORD(empty)Duplicati web interface password (leave empty if none set)
DUPLICATI_READONLY(empty)Set to true, 1 or yes to disable write operations
DUPLICATI_DB_PATH(empty)Path to Duplicati-server.sqlite — enables SQLite-backed history tools
MCP_TRANSPORTstdioTransport: stdio or streamable-http
MCP_PORT3000Port for Streamable HTTP transport

Read-only Mode

DUPLICATI_READONLY=true disables run_backup, abort_backup, update_backup_config and import_backup_config. All read tools remain active. Useful for safely exploring and analysing backup configurations without any risk of modification.

SQLite Access

Setting DUPLICATI_DB_PATH enables the db_* tools, which read directly from the Duplicati SQLite databases. Access is strictly read-only: databases are opened in read-only mode and copied to memory via the SQLite Online Backup API before any query — the live Duplicati databases are never locked or modified.

Local use — point to the server database on your machine:

DUPLICATI_DB_PATH=/path/to/duplicati/config/Duplicati-server.sqlite

Docker — share the Duplicati config directory as a read-only volume. In docker-compose.yml:

yaml
services:  duplicati-mcp:    # ...    volumes:      - duplicati_config:/duplicati-config:ro   # named volume (recommended)      # or: - /srv/duplicati/config:/duplicati-config:ro  # bind mount    environment:      - DUPLICATI_DB_PATH=/duplicati-config/Duplicati-server.sqlite
volumes:  duplicati_config:   # must be the same volume used by the Duplicati container

Docker Hub

bash
docker pull kcofoni/duplicati-mcp:latest

Development

File Structure

duplicati-mcp/├── src/│   └── duplicati_mcp/│       ├── __init__.py│       ├── __main__.py│       ├── client.py        # Duplicati REST API client│       ├── db.py            # Read-only SQLite access (server DB + per-backup DBs)│       └── server.py        # FastMCP server and tools├── mcp-publication/         # MCP registry publication files├── requirements.txt         # Python dependencies├── pyproject.toml           # Project metadata├── Dockerfile├── docker-compose.yml├── .mcp.json                # Claude Code local config (stdio)├── test_server.sh           # Docker container smoke test├── test_mcp.py              # MCP protocol test├── README.md                # This file (English)└── README_fr.md             # French documentation

Running Tests

bash
# Smoke test (requires running Docker container)./test_server.sh
# MCP protocol test (requires running server)python test_mcp.pypython test_mcp.py localhost:3000

Interactive Tool Testing (local)

bash
uv run mcp dev src/duplicati_mcp/server.py

Troubleshooting

Cannot connect to Duplicati

Check that DUPLICATI_URL is reachable from the container. If both run in Docker, put them on the same network and use the service name as hostname.

Authentication failed

Verify DUPLICATI_PASSWORD matches the password set in Duplicati's web interface. Leave empty if no password is configured.

MCP endpoint not responding

bash
docker ps | grep duplicati-mcp-serverdocker logs duplicati-mcp-server

License

This project is licensed under the MIT License — see the LICENSE file for details.

来源:README.md,提交 ab1914d

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分