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 分