synology-office-mcp

Visit landing page.
A self-hosted Model Context Protocol server that exposes Synology Drive, Spreadsheet, MailPlus, and Calendar as structured tools for AI agents (Claude Code, Claude Desktop, GoClaw, or any MCP-compatible client).
Wraps the official Synology Office Suite REST API. LAN-only by default — no data leaves your network unless you explicitly opt in.
v0.3.0 milestone — All four modules (Drive, Spreadsheet, MailPlus, Calendar) implemented and unit-tested with MSW mocks. Smoke tests against a real DSM 7.2.2 NAS are needed before declaring v1.0.0 production-ready. See CHANGELOG for details.
Table of Contents
Features
| Module | Tools | Key Capabilities |
|---|
| Drive | 11 | List / search / get info / download / upload / create folder / move / delete / share / labels |
| Spreadsheet | 13 | List / register-by-name / get info / read sheet / get styles / write cells / append rows / batch update / add-rename-delete sheet / create / export |
| MailPlus | 6 | List folders / list messages / get message / send / move / mark read-unread |
| Calendar | 7 | List calendars / list events / get event / create calendar / create event / update event / delete event |
| MCP Layer | — | Resources (file tree, mail folders, calendar list), prompts, stdio + SSE transports |
| Security | — | TLS verify, path-guard, origin-guard, bearer-auth, log redaction, confirm-required writes |
Modules not included (no public API yet): Synology Docs, Synology Slides.
Design principles
- Self-hosted, LAN-only by default — TLS verification on, SSE bound to
127.0.0.1 unless MCP_AUTH_TOKEN is set
- No third-party MCP middlemen — every Synology call goes through the official REST API
- Read-heavy, safe writes — destructive operations require an explicit
confirm: true parameter
- Stateless tool calls — each MCP invocation is independent; session/token lifecycle is internal
- Single binary — compiled ESM TypeScript, deployable as
node dist/index.js
Requirements
| Component | Version |
|---|
| Node.js | >= 22.0.0 (ESM-only) |
| pnpm | >= 9.0.0 (dev only) |
| Synology DSM | 7.2.2 build 72806+ |
| Synology Drive | 3.5.2+ |
| Synology Office | 3.7.0+ (for Spreadsheet) |
| Synology MailPlus | 3.3.1+ (requires MailPlus Server package) |
| Synology Calendar | 2.5.3+ |
Verify your DSM build: Control Panel > Info Center > DSM Version. Must be ≥ 72806.
Install
Global CLI (npm/pnpm):
npm install -g synology-office-mcp
# or
pnpm add -g synology-office-mcp
From source:
git clone https://github.com/vocweb/synology-mcp-server.git
cd synology-mcp-server
pnpm install && pnpm build
Quick Start
1. Deploy the Spreadsheet API container on your NAS
The Spreadsheet module talks to Synology's official synology/spreadsheet-api container — not to DSM directly. Skip this step only if you set SYNO_ENABLE_SPREADSHEET=false.
In Container Manager (DSM 7.2+) or via SSH:
# Pull the official image
sudo docker pull synology/spreadsheet-api:latest
# Run (port 3000 is the container default; map to whatever you prefer on the host)
sudo docker run -d \
--name synology-spreadsheet-api \
--restart unless-stopped \
-p 3000:3000 \
synology/spreadsheet-api:latest
Then in DSM:
- Control Panel → Application Privileges → Synology Office — make sure the DSM account you'll use has access.
- Control Panel → Security → Account — whitelist the Docker bridge subnet so the container's back-call to DSM is not auto-blocked.