
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 分