
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.
概览
该 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 时以只读方式共享。
安装
在 SourceWeft 中
- 打开 控制台中的 Duplicati Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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:
Set your Duplicati URL and password in .mcp.json:
With Docker Compose (Docker Hub image)
With Docker Compose (local build)
Direct Docker usage
Verification
Client Configuration
Claude Code — local (stdio)
For local use without Docker, add to your project .mcp.json:
Credentials are loaded from the .env file at the project root (see Getting Started).
Claude Code — Docker/remote (HTTP)
Add to your .mcp.json:
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
Available Tools
Once connected, the LLM has access to:
Backup Jobs
- list_backups — List all configured jobs with ID, name, last run date and result
- get_backup — Get detailed information about a specific job
- run_backup — Trigger a backup job immediately
- abort_backup — Abort the currently running backup for a job
Status & Progress
- get_progress — Live progress of the active backup task (phase, %, file counts)
- get_server_status — Duplicati server state, version and active task
Configuration
- export_backup_config — Export a job configuration as JSON
- update_backup_config — Update an existing job configuration in place (use with
export_backup_configto modify sources, settings, schedule, etc.) - import_backup_config — Import a job configuration from JSON (creates a new job)
History & Diagnostics (SQLite — requires DUPLICATI_DB_PATH)
- db_get_backup_metadata — Rich metadata from the local database: last run date, duration, file counts, quota usage, last error
- db_get_backup_schedule — Schedule configuration for a backup job
- db_list_errors — Recent error log entries, optionally filtered by job
- db_list_notifications — System notifications (update alerts, etc.)
- db_get_backup_options — Configuration options for a job (compression, retention policy, etc.) — passphrases excluded
- db_list_operations — Operation history for a job (Backup, Restore, List, etc.) with timestamps
- db_get_operation_log — Full result and statistics for a specific operation
- 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
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:
Docker — share the Duplicati config directory as a read-only volume. In docker-compose.yml:
Docker Hub
- Repository: kcofoni/duplicati-mcp
- Latest tag:
kcofoni/duplicati-mcp:latest
Development
File Structure
Running Tests
Interactive Tool Testing (local)
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
License
This project is licensed under the MIT License — see the LICENSE file for details.
来源:README.md,提交 ab1914d
工具
0版本历史
1- v1.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分