mcp-synology
MCP server exposing Synology DSM capabilities as tools across System, File Station, Synology Photos, Download Station, and Storage; modules are read-only by default, with write/admin tools opt-in.
System: get NAS model, DSM version, RAM, uptime, temperature, and live CPU/memory/disk/network usage (some details require admin).
File Station: list shares/files/recycle bins, search, get file info and folder sizes, download/upload files, create folders, rename, copy, move, delete, restore from recycle bin, and track long-running file tasks.
Synology Photos: list/search photos and videos, view details/EXIF, download/upload, manage albums and share links, create/rename folders, tag/edit photos, manage people and merges, create photo requests, copy/move/delete items and folders, and track photo tasks.
Download Station: list tasks, inspect task details/stats/config/schedule, create downloads from URIs or torrent/NZB files, delete/pause/resume/edit tasks, set download config, and set schedules.
Storage: view storage health overview, pools, volumes, disks/S.M.A.R.T. data, SSD caches, schedules, settings, external storage, and snapshots (admin only).
Operational features: per-module read/write permissions, local-path confinement for uploads/downloads, 2FA/keyring credential support, multi-NAS configs, async handles for long operations, and prompt-injection safeguards.
Enables interaction with Synology NAS devices through the DSM API, providing tools for file management (browsing, searching, transferring, organizing, and deleting files via File Station) and system monitoring (CPU load, memory usage, disk I/O, temperature, uptime), with support for permission tiers, multi-instance configurations, and two-factor authentication.
mcp-synology
MCP server for Synology NAS devices. Exposes Synology DSM API functionality as MCP tools that Claude can use.
Tested on DSM 7.1 to 7.4.1, on virtual DSMs in CI and on a real NAS by AI clients driving the tools: see Testing.
Once it's connected, ask in plain words, for example:
"Which shared folders can I see, and how much space is free?"
"Find every .mkv under /video and move the ones from 2023 into /video/Archive."
"Make an album of last July's beach photos and give me a share link."
"Add this magnet link to Download Station, into /video/TV."
"Is any disk failing, and how full is each volume?" (Storage needs an administrator account)
Security at a glance:
Each module is READ-only unless its config says
permission: write(oradmin, the same); the tools that delete or replace are marked so your client can ask before running them (where the client passes those marks on).Local files: uploads and downloads use only the folders you list (your Downloads folder by default).
setupuses HTTPS unless you decline, and stores the password in the OS keyring, tied to the NAS's host and port.Text from the NAS is marked as data, not instructions: docs/prompt-injection.md.
Reporting a vulnerability: SECURITY.md.
Supported modules
Each module covers one DSM package. A module loads only when it's listed under modules: in the config, and its permission decides whether you get its READ tools only or its WRITE tools too.
Module | Config key | READ tools | WRITE tools | DSM account | DSM versions |
| 2 · Partial | — | Any; | 7.1 – 7.4.1 | |
| 7 · Most | 8 · Partial | Any | 7.1 – 7.4.1 | |
| 4 · Most | 15 · Most | Any, with the Photos privilege | 7.1 – 7.4.1 (favorites and concepts: 7.2.2+) | |
| 5 · Most | 7 · Partial | Any, with the Download Station privilege (other accounts see only their own tasks) | 7.1 – 7.4.1 | |
| 11 · Most | — | Admin only | 7.1 – 7.4.1 |
What's not covered, in short (each module's section has the full list):
System: process list, system health, logs, connected users. No WRITE tools (no reboot or shutdown).
File Station: compress and extract, share links, favorites, thumbnails, MD5 checksums, permissions and ownership changes, mounting remote folders.
Synology Photos: timeline and similar-photo views, video streaming, Shared Space folder permissions, face-level People edits, guest uploads to photo requests, changing Photos' own settings.
Download Station: BT search, RSS feeds, choosing files inside a torrent, editing a torrent's trackers, settings other than speed limits and the default destination.
Storage: no WRITE tools (no data scrubbing, S.M.A.R.T. tests, hot spares, storage settings, TRIM or snapshot changes); no iSCSI LUNs and SAN Manager, Hyper Backup or Task Scheduler. Never anything that wipes disks or changes a pool's layout.
Related MCP server: synology-office-mcp
Quick start
1. Run setup
uvx mcp-synology setupRequires uv. uvx downloads the latest version and caches it — no separate install step needed. It checks PyPI again once its cached copy of the index is more than 10 minutes old, so a restart of your MCP client usually picks up a new release; see Updates.
The rest of this README writes commands as mcp-synology …. If you run it through uvx (no install), type uvx mcp-synology … instead.
Setup will prompt for your NAS host, credentials, and preferences. If your account has 2FA enabled, it will prompt for an OTP code and store a device token for automatic future logins. It writes a config with the File Station module only; add other modules afterward (see each module below).
At the end, it prints the check command for the config it wrote, and a JSON snippet for your MCP client.
2. Add it to your MCP client
Claude Desktop: open Settings → Developer → Edit Config, which opens claude_desktop_config.json, add the snippet setup printed, and restart the app. It looks like this, with the full path to uvx and to your config, and the server named synology- plus the connection's alias if you set one, otherwise its instance ID:
{
"mcpServers": {
"synology-nas": {
"command": "/Users/you/.local/bin/uvx",
"args": ["mcp-synology", "serve", "--config", "~/.config/mcp-synology/nas.yaml"]
}
}
}The config file is named after the connection's instance ID, which setup takes from the host (home-nas.local gives home-nas.yaml).
Claude Code:
claude mcp add synology -- uvx mcp-synology serve --config ~/.config/mcp-synology/<name>.yamlOther clients: any client that starts a local (stdio) server: the command is uvx (its full path, which which uvx prints, for an app started outside a shell), with the arguments mcp-synology serve --config <your config file>.
Keep the server's name short. Claude finds a server's tools through tool search, which refuses a tool whose full name is over 64 characters, and the client builds that name from the server's name and the tool's: mcp__<server>__<tool> in Claude Code, and mcp__remote-devices__<server>__<tool> when Claude Desktop reaches a server on your computer. The longest tool name is restore_from_recycle_bin (24 characters), so the server's name can be at most 17 characters in Claude Desktop (synology- plus an alias, or without one the instance ID, of up to 8: synology-HomeNAS fits) and 33 in Claude Code. Once Claude loads a tool whose full name is too long, the conversation fails with an API error saying a string "should have at most 64 characters". setup and check warn when the name setup suggests is too long: rename the key in the snippet (synology-nas, say) or set a shorter alias.
On Linux, the server auto-detects the D-Bus session socket for keyring access. If auto-detection fails, add "env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/<uid>/bus"} to the Claude Desktop config. The setup command includes this in the generated snippet.
3. Verify
uvx mcp-synology check --config ~/.config/mcp-synology/<name>.yaml # checks the config and logs in; setup prints this line (without uvx)
uvx mcp-synology setup --list # lists the NAS configs you've set upThen restart your client and ask it: "What shared folders are on my NAS?"
Adding a module
Install the package on the NAS (Synology Photos or Download Station) from Package Center, if it isn't installed already. Without it the module's tools still appear, but every call fails with
api_not_found.Edit your config file: the one
setupwrote (the file your client's--confignames), or the per-NAS file such ashome-nas.yamlif you use Multi-NAS. Add the module inside the existingmodules:section; don't add a secondmodules:key. Each module below has a block to copy.Check the config:
mcp-synology check --config <your config file>runs the same validation asserve, so it lists the YAML, setting and module-setting mistakes it finds and names the file. It also names misspelled settings and modules, and confirms the login still works.Restart your MCP client (for example, Claude Desktop). The server reads its config only at startup.
Alternative: global install
If you prefer a persistent install (avoids download on each invocation). Requires uv — install with curl -LsSf https://astral.sh/uv/install.sh | sh (macOS/Linux) or see the installation guide for other options.
uv tool install mcp-synology
mcp-synology setup
mcp-synology check --config <your config file>Alternative: env-var-only mode
Without a config file, set SYNOLOGY_HOST and the server runs on environment variables alone, which suits Docker and CI. One catch: if the folder the server starts in holds a mcp-synology.yaml, the server stops and asks you to name it or move it (so give an MCP client a fixed working folder if it has that setting).
{
"mcpServers": {
"synology": {
"command": "uvx",
"args": ["mcp-synology", "serve"],
"env": {
"SYNOLOGY_HOST": "192.168.1.100",
"SYNOLOGY_HTTPS": "true",
"SYNOLOGY_USERNAME": "your_user",
"SYNOLOGY_PASSWORD": "your_password"
}
}
}
}Or from the CLI:
SYNOLOGY_HOST=192.168.1.100 SYNOLOGY_HTTPS=true uvx mcp-synology checkSYNOLOGY_HTTPS=true (port 5001 by default) keeps the password off the network in cleartext; leave it out only on a network you trust. DSM's default certificate is self-signed, which env-only mode can't accept (verify_ssl has no variable), so use a config file or a certificate the machine trusts.
Without a config file, mcp-synology always runs File Station, read-only. No environment variable enables another module or the write tools; for those, use a config file (the same variables then override its values, and overriding its host, port, HTTPS or instance ID prints a warning on stderr naming the variable, at any log level). The variables:
Variable | Sets | Default |
|
| — |
|
| 5000, or 5001 with HTTPS |
|
|
|
|
| the keyring |
|
| the keyring |
|
| the keyring |
|
| derived from the host |
|
|
|
|
|
|
Each value is read as its config field's type, and choices in any case (SYNOLOGY_LOG_LEVEL=DEBUG); SYNOLOGY_UPDATE_NOTICES also takes no/yes as the config file does. A value of the wrong type is an error that names the variable, and the server doesn't start: SYNOLOGY_HTTPS=sure never means off. An empty or blank variable counts as unset.
Credentials come from environment variables first, then the config file, then the keyring.
Which config is used:
--config <file>, elseMCP_SYNOLOGY_CONFIG=<file>, else~/.config/mcp-synology/config.yaml; with none of these, environment variables alone. The log says which, at INFO.No fallback: a file named by
--configorMCP_SYNOLOGY_CONFIGthat doesn't exist, or an empty value, is an error; mcp-synology doesn't fall back to the default location or to env-var-only mode.A config in the current folder (
./mcp-synology.yaml) is loaded only when you name it (--config ./mcp-synology.yaml, or its full path in an MCP client's config), because it chooses the host your stored password goes to: a folder you merely opened could otherwise send it elsewhere. Name it only if you trust it. With a home config, an unnamed one is ignored; without one,checkandservestop and say so, even withSYNOLOGY_HOSTset.
Modules
Every module is configured the same way, under modules::
enabled:true(the default) orfalse. Listing a module is enough to load it: for every module, a name with nothing under it (filestation:) is the same asfilestation: {}, enabled atreadwith no settings, and an emptysettings:is the same as no settings.enabled: falsekeeps its block in the file without loading it.permission:read(the default) registers the READ tools only;writeadds the WRITE tools.adminis also accepted and is the same aswrite. It doesn't refer to the DSM account: an administrator account doesn't need it.settings: the module's own options, listed in its section. A setting the module doesn't know is ignored with a warning that names the valid ones, so a config written for a newer version still loads. Any other key next to these three is an error, so a typo such aspermisionstops the server instead of being ignored.
System
Monitor NAS health and resource usage.
READ:
get_system_info,get_resource_usageWRITE: none
modules:
system:
enabled: true # no write tools, so no permission is neededSettings: none.
Tools. get_system_info gives every account the model, serial number, DSM version, RAM, uptime, the NAS's local time and code page, and the temperature where the NAS has a sensor. An administrator account also gets the CPU, time zone and current UTC offset, NTP server, firmware date, DSM's update-ready and crash flags, eSATA port, attached USB, SATA and PCIe devices, and redundant power on models that report it; any other account gets a line naming what needs an administrator. get_resource_usage shows live CPU load, memory usage, disk I/O and network throughput, and needs an administrator account.
Accounts. Any account can use get_system_info; an administrator account sees more (above). get_resource_usage needs an administrator account.
DSM versions: 7.1 – 7.4.1. The incompatible-NIC flag (administrators only) appears from DSM 7.2.2.
Not covered: process list, system health, logs, connected users; no reboot or shutdown.
Spec: docs/specs/system-module-spec.md.
File Station
Browse, search, transfer and manage the files in the NAS's shared folders.
READ:
list_shares,list_files,list_recycle_bin,search_files,get_file_info,get_dir_size,download_fileWRITE:
create_folder,rename,copy_files,move_files,delete_files,restore_from_recycle_bin,upload_file,file_task
modules:
filestation:
enabled: true
permission: write # or read
settings: # all optional; the values shown are the defaults
hide_recycle_in_listings: false
file_type_indicator: emoji # or text
async_timeout: 120 # search_files and get_dir_size
# search_timeout: 120 # defaults to async_timeout
# dir_size_timeout: 120 # defaults to async_timeout
delete_timeout: 30 # how long a delete_files call waits before handing off
copy_move_timeout: 30 # copy_files, move_files, restore_from_recycle_bin
upload_timeout: 300
download_timeout: 300
search_poll_interval: 1.0
# allowed_local_paths: # default: your Downloads folder
# - ~/Downloads
# default_download_dir: ~/Downloads
# default_upload_dir: /home/uploadsSettings:
Setting | Default | Accepted | What it does |
|
|
| Hide |
|
|
| Markers for files and folders in listings. |
|
| 10–3600 s | Time limit for |
|
| 10–3600 s | Time limit for |
|
| 10–3600 s | Time limit for |
|
| 10–3600 s | How long a |
|
| 10–3600 s | How long a |
|
| 10–3600 s | Time limit for |
|
| 10–3600 s | Time limit for |
|
| 0.5–10.0 s | How often |
| your Downloads folder | local folders | Local folders |
| none | a local folder | Where |
| none | a NAS folder | Where |
Accounts. Any account. The tools see the shared folders that account can see, and can change only what its DSM permissions allow.
DSM versions: 7.1 – 7.4.1, the same tools on each.
Not covered: compress and extract, share links, favorites, thumbnails, MD5 checksums, permissions and ownership changes, mounting remote folders.
Long operations hand off. For delete, copy, move and restore, the timeout is how long a call waits before handing off, not a limit on the operation. An operation that finishes within the wait returns its result as usual. One that's still running is left running on the NAS, and the reply gives a handle, such as
delete:FileStation_…, to use withfile_task: check its progress or final result, or stop it.file_taskwith no handle lists the operations still running. The wait is capped at 600 s whatever the setting, because an MCP client that gives up on a call cancels it, and a canceled call stops the operation.Client timeouts. The MCP client has its own time limits. Claude Code aborts a tool call that sends no result and no progress notification for an idle window: 30 minutes by default for a stdio server like this one (5 minutes for HTTP servers). Raise it with the
CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUTenvironment variable (milliseconds;0turns the check off), or for this server only with atimeoutfield (milliseconds) in its MCP config entry, which also sets a hard limit per call. See Claude Code's MCP docs. Delete, copy, move and restore send progress notifications while they wait, so they don't hit the idle limit.get_dir_sizeandsearch_filesdon't send progress, so one that runs longer than the idle window can be aborted by the client; raise the client's limit, or narrow the path.Folder downloads.
download_fileof a folder saves DSM's ZIP of it as<folder>.zip(or underfilename, when given). A whole shared folder can't be downloaded this way (DSM doesn't send one), so it's refused.Shared folders, recycle bins and users' home folders aren't deleted, moved or renamed whole: a shared folder (
/video), a whole recycle bin (/video/#recycle) or a user's home folder (/homes/<user>). DSM would remove the shared folder itself, empty the bin for good (other users' items included) or break that user's home. Work with the items inside, or use DSM's Control Panel;copy_filesof a shared folder is fine. Every tool also refuses a path with a.,..or empty part, or a NUL character. The File Station spec has the details per tool and DSM version.Paths are taken exactly. Whitespace inside a path is part of a name, as it is on DSM:
/video/report.pdf(with a trailing space) is a different file from/video/report.pdf, and a stray space gets "not found", never another item. A name the tools create (rename,upload_file,create_folder) can't start or end with whitespace or hold a control character (a tab inside is fine) or an invisible character that changes how it reads, and#recyclecan't be created, copied or moved into a shared folder's or a user's home folder's top level, where it would be taken for the recycle bin.Names with a line break or other control character. Every reply shows text from the NAS with such characters escaped (
report\nnote.txt), so a name can't start a line of its own in a reply, which a model could read as the server's. An argument holding one is refused, so a file or folder named that way (made on the NAS by other means) is listed but can't be acted on through File Station's tools until it's renamed in DSM. Photos finds albums, people and tags by the name a table shows, or by what's inside a reply's quotes, decoded ("Ann\\nX"isAnn\nX); a folder named that way is given by its ID. A tab is fine.File names and case. Whether
X.TXTandx.txtare two files depends on the share's file system: Btrfs keeps them apart, and a USB or network share may not. So withoverwrite=true,copy_files,move_filesandrestore_from_recycle_binrefuse two sources going to one folder whose names match ignoring case, as one could replace the other.overwrite=falsestill does the call: anything whose name is already there is skipped and listed, except a folder landing on a file, which fails.
Spec: docs/specs/filestation-module-spec.md.
Synology Photos
Browse, search, organize and share a Synology Photos library, in your personal space and in Shared Space. Needs the Synology Photos package (Photo Station, its DSM 6 predecessor, isn't supported).
READ:
list_photos,list_photo_collections,get_photo,download_photosWRITE:
upload_photos,photo_album,photo_share_link,photo_folder,copy_photos,move_photos,photo_task,tag_photos,edit_photo,edit_person,photo_request,merge_people,delete_photos,delete_photo_folders,delete_photo_albums
modules:
photos:
enabled: true
permission: write # or read
settings: # all optional; the values shown are the defaults
task_timeout: 30 # seconds a copy, move or delete waits before handing off
# allowed_local_paths: # default: your Downloads folder
# - ~/DownloadsSettings:
Setting | Default | Accepted | What it does |
|
| 1–600 s | How long |
| your Downloads folder | local folders | Local folders |
Accounts. The account needs the Synology Photos application privilege (Control Panel → Application Privileges → Synology Photos), and the personal space needs the user home service (Control Panel → User & Group → Advanced → User Home). Shared Space must be enabled in Synology Photos' settings, with access granted to the account. The tools report each of these by name when it's missing.
DSM versions: DSM 7.1 (Synology Photos 1.3.4) and DSM 7.2.2, 7.3.2 and 7.4.1 (Synology Photos 1.9.1). Favorites and concepts (things and scenes Photos recognized) need Photos 1.9.1; on 1.3.4 they're refused with not_supported.
Not covered: timeline and similar-photo views, video streaming, Shared Space folder permissions, face-level People edits, guest uploads to photo requests, changing Photos' own settings.
Edits change the original files. Photos writes ratings, descriptions, tags, taken-time changes and rotations into the files themselves, so their dates and sizes change; backup and sync tools see new versions.
Tags are given by name. A tag exists only while some item has it, so removing it from every item deletes it.
Names and folders are quoted only when needed. A reply shows a name or folder as it is, and in quotes only when it holds what its line uses as structure (
,, a quote,(,:, digits right after an ID, or a sentence's end such as.), soPeople: "Jo, Ann", Samcan't read as three people. A name passed back with the quotes gets a hint where it isn't found; a name that really has quotes still works.Albums, people and folders are given by ID or by name or path, in separate parameters (
album_idoralbum_name,folder_idorfolder_path, and so on), so a name or path made of digits is never taken for an ID, nor an ID for a name.Deletes go to the recycle bin of the share that holds the space, when it has one; Photos has no trash of its own. A large copy, move or delete hands off with a
photos:<id>handle thatphoto_taskfollows up on.
Spec: docs/specs/photos-module-spec.md, with what each tool sends and the DSM behavior behind it.
Download Station
Manage the Download Station queue and settings.
READ:
list_downloads,get_download_info,get_download_stats,get_download_config,get_scheduleWRITE:
create_download,delete_download,pause_download,resume_download,edit_download,set_download_config,set_schedule
modules:
downloadstation:
enabled: true
permission: write # or read
settings: # optional
allowed_local_paths: # folders create_download may read .torrent/.nzb files from
- ~/Downloads # the default; list it to keep it when adding others
- ~/Torrents
allow_local_addresses: false # the default: see belowSettings:
Setting | Default | Accepted | What it does |
| your Downloads folder | local folders | Local folders |
|
|
| Let |
Accounts. An administrator (a Download Station manager) can use every tool. Any other account needs the Download Station application privilege (Control Panel → User & Group → [account] → Edit → Applications), and must set a default destination once before Download Station will start its tasks: set_download_config(default_destination="<share>") (a WRITE tool, so permission: write), or in Download Station's own settings in DSM. More below.
DSM versions: DSM 7.1 (Download Station 3.9-4627) and DSM 7.2.2, 7.3.2 and 7.4.1 (Download Station 4.1-5012), the same tools on each.
Not covered: BT search, RSS feeds, choosing files inside a torrent, editing a torrent's trackers, settings other than the speed limits and the default destination (BT, FTP/HTTP, NZB, auto-extract).
Accounts other than administrators. All of these are enforced or reported by the tools:
First-time setup. Download Station doesn't start the tasks of an account other than an administrator until that user has a default destination; until then they wait forever. A user who has never opened Download Station has none. Set it once with
set_download_config(default_destination="<share>"), which DSM applies to that user only. Until then,create_downloadwith an explicitdestinationstill creates the task but warns that it won't start. Without adestination, it refuses and says what to set. That refusal applies to any account, administrator included, whenever there's no default destination to fall back on.Own tasks only.
list_downloadsand the other task tools see only the user's own tasks.Settings.
get_download_configshows the user's own view, not the NAS-wide settings.set_download_configcan change only the user's owndefault_destination; the speed limits are NAS-wide and are refused, because DSM accepts and then silently ignores them from any other account.Schedule. The weekly plan and limited-speed rates in
get_schedule/set_scheduleneed an administrator. Any other account can still turn the schedule on or off, and that switch is NAS-wide.
Known limits:
A
destinationmust be an existing folder: Download Station doesn't create missing folders. Create it first with File Station'screate_folder(/video/TV/New show; thefilestationmodule needspermission: write) or in DSM's own File Station, then pass it share-relative (video/TV/New show). An error that says the destination doesn't exist names this fix.create_downloadreturns no task IDs for URLs that useusername/password.edit_downloadchanges only the destination.A destination is taken exactly:
video/TV/New show(with a trailing space) is a different folder fromvideo/TV/New show.delete_download(force_complete=true)doesn't reliably keep partial data: DSM discarded unfinished HTTP downloads anyway. DSM also refuses it for finished tasks, and the tool reports those as not removed.
Spec: docs/specs/downloadstation-module-spec.md.
Storage
See the health of the NAS's storage: storage pools and RAID, volumes and free space, disks with S.M.A.R.T., SSD caches, external drives and share snapshots.
READ:
get_storage_overview,list_storage_pools,list_volumes,get_volume,list_disks,get_disk,list_ssd_caches,get_storage_schedules,get_storage_settings,list_external_storage,list_snapshotsWRITE: none
modules:
storage:
enabled: true # no write tools, so no permission is neededSettings: none.
Tools. Start with get_storage_overview: DSM's own status summary, every pool, volume, disk and SSD cache in one line each, anything that needs attention (a degraded pool, a failing disk, a nearly full volume) and the storage tasks running or scheduled next. The others give one area in full, with every field DSM sends: get_disk adds every S.M.A.R.T. attribute, test results and history and a 12-month health trend; get_volume adds space by category, TRIM, deduplication and the attached SSD cache.
Accounts. An administrator account only: Storage Manager answers no other account, so with any other account every tool returns permission_denied. list_snapshots also needs the Snapshot Replication package.
DSM versions: 7.1 – 7.4.1, the same tools on each. A volume's encryption and lock state, a snapshot's immutable flag and the drive database version appear from DSM 7.2.2. A section a NAS doesn't support (deduplication on some models, for example) is left out with a note.
Not covered: no WRITE tools: no data scrubbing, S.M.A.R.T. tests, hot spares, storage settings, TRIM or snapshot management. iSCSI LUNs and SAN Manager, Hyper Backup and Task Scheduler aren't covered. Anything that wipes disks or changes a pool's layout (creating, deleting, expanding or repairing pools and volumes, secure erase) is left out on purpose.
Spec: docs/specs/storage-module-spec.md.
Features
Interactive setup: guided configuration that creates your config, stores credentials, handles 2FA, and prints the JSON for your MCP client
Permission tiers: READ or WRITE per module, enforced at tool registration. Tiers control what the server can do on the NAS. Tools that write on this machine (
download_file,download_photos) are annotated as destructive so your client can confirm them, and so is every WRITE tool exceptcreate_folder,rename,upload_photos,create_download,pause_downloadandresume_download. A read-only connection tells the model which tools it withholds and how to enable them, so the model doesn't claim the server can't do itLong operations keep running: a large delete, copy, move or recycle-bin restore reports progress while the call waits, and if it's still running when the wait ends (30 s by default) the NAS keeps working on it: the reply gives a handle for
file_task, which checks on it, lists running operations or stops one. See File Station. Photos'copy_photos,move_photos,delete_photosanddelete_photo_foldersalso hand off, aftertask_timeout(default 30 s, up to 600), with aphotos:<id>handle forphoto_taskLocal path confinement: tools that read or write files on this machine use only the folders you list, by default your Downloads folder. See Local paths
Text from the NAS is data: see below
2FA support: auto-detected; device token bootstrap with automatic silent re-auth
Secure credentials: OS keyring integration that works transparently on macOS, Windows, and Linux (including from Claude Desktop). See docs/credentials.md.
Multi-NAS: manage multiple NAS devices with separate configs, credentials, and state
Text from the NAS is data
File names, folder and album names, descriptions and a download's title may have been written by someone else, and they reach the model in tool replies. mcp-synology can't tell an instruction from a name, so it marks all such text as data:
every reply starts with a line saying the text in it comes from the NAS or local files and isn't instructions, and the server instructions tell the model not to follow instructions found in it and to tell you about them;
control, line-break and bidirectional characters in that text are escaped, so a name can't write a line that looks like the server's;
a tool call is refused when it carries such characters (except a Photos description and Download Station's URIs, which are escaped wherever they're shown), an argument the tool doesn't take, or text the MCP SDK would turn into something else. The MCP layer's own type checks never quote the value sent, and an unknown argument's name is never repeated, except a renamed parameter's old name, from the server's own table; a tool's own refusal may quote what it refused, after the character check, so it can't start a line of its own.
Wording isn't filtered: whether a model acts on planted text is up to the model, and each release candidate's live test plants some in names and descriptions to check. Nor does the server see inside the files it downloads: a document's text, or an image with written instructions or a QR code, reaches the model through the client's own file reading, unlabeled; a download that saved a file says in its reply that the contents are data, not instructions. And create_download is a way off the NAS to any host: a model steered by planted text could put something private into a source URI, so give Download Station permission: read where you don't need new downloads, and use a read-only connection where you don't need writes at all (the client's own tools, such as a web fetch, are outside this server). docs/prompt-injection.md has each guard, why it exists and its tests.
Configuration
Interactive setup creates a config file for you. For manual configuration or advanced options, see examples/:
config-minimal.yaml— simplest possible configconfig-power-user.yaml— every module, HTTPS, custom timeouts, logging, instructionsconfig-docker.yaml— environment-variable-driven
The full reference is docs/specs/config-schema-spec.md. After editing a config, run mcp-synology check --config <file>: it reports YAML and validation mistakes, names misspelled settings and modules, then tries to log in. Module settings are in each module's section under Modules.
A config with every module, READ and WRITE (the module sections list each one's settings):
# ~/.config/mcp-synology/config.yaml
schema_version: 1
connection:
host: 192.168.1.100
https: true
verify_ssl: false # DSM's default self-signed certificate
auth:
username: your_user # the password stays in the keyring (setup puts it there)
modules:
system:
enabled: true
filestation:
enabled: true
permission: write
photos:
enabled: true
permission: write
downloadstation:
enabled: true
permission: write
storage:
enabled: true # READ tools only; needs a DSM administrator accountConnection and HTTPS
connection:
host: 192.168.1.100 # or a hostname; bare: no https://, user name or :port ("[fd00::1]" for IPv6, quoted, with instance_id set)
https: true # default false: credentials then cross the network in cleartext
port: 5001 # default 5000, or 5001 with https: true
verify_ssl: false # default true; false for DSM's default self-signed certificate
timeout: 30 # seconds per request, 1 to 600 (default 30)Use https: true unless the NAS is on a network you trust: with plain HTTP, the login and every request travel unencrypted, and the server logs a warning saying so. setup writes https: true unless you decline. docs/https.md covers DSM's self-signed certificate and how to get a trusted one. If DSM uses its own self-signed certificate, set verify_ssl: false (the server warns that verification is off), or install a certificate the machine trusts and keep it true. A misspelled key in connection, auth or logging (htps, verfy_ssl) stops the server with an error naming it, rather than being ignored and leaving HTTPS off. When the key may be part of a password (any unknown key under auth, or one with no value), the error names the real key it's close to instead, or lists the valid keys.
Local paths
upload_file, download_file, upload_photos, download_photos and create_download's torrent files only use local folders listed in allowed_local_paths, by default your Downloads folder:
allowed_local_paths: # top level: for every module
- ~/Downloads
- ~/Pictures/nasSet it at the top level for every module, or in a module's settings (File Station, Synology Photos and Download Station each have their own list).
A module's own list adds to the top-level list when that's set. Without a top-level list, it replaces the Downloads default, so include
~/Downloadsif you still want it.Symlinks and
..are resolved first, so they can't lead outside.create_downloadreads only.torrentand.nzbfiles.["/"]allows everything (macOS and Linux).
Multi-NAS
Each NAS gets its own config file, credentials, and Claude Desktop entry. Run setup once per NAS: it names each file after the instance ID it takes from the host (home-nas.local gives home-nas.yaml), and asks for one when the host gives none.
Set alias to give Claude a display name for the connection:
# ~/.config/mcp-synology/home-nas.yaml
alias: HomeNASThe alias appears in the MCP server name (e.g., synology-HomeNAS) so Claude knows which NAS it's talking to. Keep it to 8 characters when File Station's write tools are on, so the name fits Claude Desktop's limit (see Add it to your MCP client); setup and check warn when it doesn't.
Custom instructions
Custom instructions let you shape how Claude interacts with your NAS tools. This is useful when:
Multiple NAS connections: tell Claude which connection to prefer for different tasks ("use this for media, use admin for cross-user operations")
Safety guardrails: add rules like "always confirm before deleting" or "never touch /Backups"
Context: explain what's on the NAS ("this is a media server, /video has our library sorted by genre")
Add context: custom_instructions is prepended to the built-in prompt (higher priority):
# ~/.config/mcp-synology/config.yaml
custom_instructions: |
This is the admin NAS with elevated privileges.
Prefer this connection for file operations requiring cross-user access.
Never delete files from /Backups without explicit confirmation.Full control: instructions_file replaces the built-in prompt entirely. Start from the built-in files: server.md is sent on every connection, filestation.md only when File Station is enabled, filestation-write.md after it only when File Station's WRITE tools are enabled (permission: write or admin), and local.md before the generated LOCAL PATHS section. The Synology Photos section isn't a file: if you use Photos, copy it from the instructions a Photos connection sends. A replacement file is used as written, apart from HTML comments, so it doesn't get the generated PERMISSIONS section, which tells the model which tools this connection withholds and how to enable them (custom_instructions keeps it):
# ~/.config/mcp-synology/config.yaml
instructions_file: ~/.config/mcp-synology/my-instructions.md # a relative path is from this file's folderBoth support template variables: {display_name}, {instance_id}, {host}, {port}, {home_dir} (the local home folder) and {platform} (Linux, macOS or Windows). Any other brace is left as written, so JSON examples are fine ({{ and }} are not escapes).
HTML comments (<!-- ... -->) are removed from both before the text is sent, so they can hold notes for whoever edits the file. A comment on a line of its own is removed with that line.
2FA support
mcp-synology fully supports DSM accounts with two-factor authentication. It's auto-detected: you don't need to configure anything special:
Bootstrap:
mcp-synology setup(with--config <your config file>if you already have one) detects 2FA, prompts for your OTP code, and stores a device token in the keyringSilent re-auth: subsequent logins use the device token automatically (no OTP prompts)
Per-instance: each NAS config gets its own device token, so mixed 2FA/non-2FA setups work fine
Device tokens have no fixed lifetime: they last until the trusted device is removed in DSM (Personal > Security > Sign-in Activity) or DSM otherwise stops accepting it. If DSM rejects the stored token, the error says so; run mcp-synology setup --config <your config file> again to sign in with a new 2FA code (if device_id is set in the environment, SYNOLOGY_DEVICE_ID, or the config file, it overrides the keyring: remove it there first, then restart the server after setup).
Keyring and credentials
Credentials are stored in the OS keyring and accessed transparently:
Platform | Backend | Notes |
macOS | Keychain | Just works |
Windows | Credential Manager | Just works |
Linux | GNOME Keyring / KWallet | Auto-detects D-Bus session, works from Claude Desktop |
Credential resolution order: env vars > config file > keyring. Explicit sources override the implicit default.
A keyring entry is tied to the host and port it was set up for. If a config points at another host or port, the server refuses before sending any credential and says what to do. Two NAS whose names start the same (nas.home, nas.office) need their own instance_id.
For environments without a keyring (Docker, CI), use environment variables or inline credentials in the config file. setup still writes the config there, and lists the variables to set. For a 2FA account, get the device token from a machine with a keyring: see docs/credentials.md.
See docs/credentials.md for keyring service names, multi-NAS setup, and how to inspect/remove stored credentials.
Updates
mcp-synology checks PyPI for a newer version once a day (hourly while PyPI can't be reached), in the background when the server starts, and tells your MCP client's model, which passes it on:
On the first tool result after the check finds one, whichever module the tool belongs to. An ordinary release is announced once a week per install: connections that share an install (one copy serving several NASes) say it once between them.
A security release is announced in every session: in the server's instructions when the previous check already knew of it (so the model knows from the first message), otherwise on the first tool result.
Outside the chat: the client's MCP server log gets a WARNING, and
mcp-synology checkprints it.
The notice names the new version, the command that upgrades your install (uv tool upgrade mcp-synology, pipx upgrade mcp-synology, a restart for uvx, with uv cache clean mcp-synology if it still runs the old version, or pip install -U), and the release notes.
Each config (connection) chooses what it hears, since configs may run different installs and versions:
update_notices: all # all (default) | security | offsecurity keeps only security releases; off stops every notice in the chat (the log line and check still report it). check_for_updates: false turns off the check altogether.
To hear about releases without running the server, watch the repository on GitHub (Watch → Custom → Releases), or follow PyPI or the MCP Registry.
To manage updates from the CLI (--auto-upgrade and --revert work for a uv tool or pipx install; uvx picks up new releases itself, as Quick start says):
mcp-synology --check-update # Check for a newer version
mcp-synology --auto-upgrade enable # Auto-upgrade on each interactive run
mcp-synology --revert # Roll back to the previous version
mcp-synology --revert 0.10.0 # Roll back to a specific versionTesting
Tested DSM versions
DSM | Where | What runs |
7.1.1-42962 Update 9 | Virtual DSM, in CI | Every module's integration tests, on every change to |
7.2.2-72806 Update 10 | Virtual DSM, in CI | The same |
7.3.2-86009 Update 5 | Virtual DSM, in CI | The same |
7.4.1-90080 Update 1 | Virtual DSM, in CI | The same |
7.1.1-42962 Update 9 | A real NAS | Each release candidate's live test: AI clients driving the tools, as administrator, regular, read-only and restricted users (how) |
A virtual DSM (virtual-dsm) has the DSM packages the modules use (Synology Photos, Download Station, Snapshot Replication), but no physical disks or storage pools. The Storage module's disk and pool replies were written from captures of the real NAS.
Tested clients
Each release candidate is live-tested by these clients driving the tools on the real NAS (how):
Client | Model | Tested | How it runs the server | Notes |
Claude Code | Claude Opus 5.5 | 0.10.0, 0.11.0, 0.12.0 | Starts it itself (stdio) | Gets the server's instructions; no short reply limit (it aborts a call only after 30 minutes idle by default), so long operations and hand-offs are tested here |
claude.ai in the Claude desktop app | Claude Opus 5.5 | 0.10.0, 0.11.0, 0.12.0 | The app starts it locally; claude.ai reaches it through the app's device bridge | Doesn't pass on the server's instructions, tool titles or annotations, so the tools are written to work from their descriptions and replies alone. Replies are cut off after about 60 s |
Meta Muse (Power Plan) | Muse Wonder | 0.11.0, 0.12.0 | Its own script around | Keep one long-lived session: docs/muse.md has the instructions to paste |
Meta Muse (free plan) | Muse Spark | 0.10.0 | The same | By default a fresh server process per call (slow: every call logs in); the same instructions fix that |
A client can change the outcome on its own: the same model does less well through a client that drops the server's instructions or annotations.
Tested models
Every model that has run the tools here, with what it was tested on and how it did. These are results, not a ranking: a live round's steps differ by client, and one run per task can come out differently on a rerun.
Model | Client | Tested on | Results | Fit for |
Claude Opus 5.5 | Claude Code, claude.ai | Every live round of 0.10.0, 0.11.0 and 0.12.0; the 12-task comparison (0.11.0) | 0.12.0's last round: claude.ai 96 passed, 0 failed, 1 known (a delete reply that doesn't mention a stopped copy still listed in that folder, open for a later release); Claude Code 36 passed, 0 failed, the same 1 known. 0.11.0's last round: claude.ai 94 passed, 0 failed, 0 surprises; Claude Code 48 passed, 0 failed, 3 surprises (all the server's, open for a later release: a first login that found no stored password, a delete reply that didn't mention a stopped copy still listed in that folder, and a disk-test line that named disks already done). Comparison (0.11.0): 12 of 12 | Everything, writes and deletes included |
Claude Sonnet 5.5 | Claude Code | The 12-task comparison (0.10.0, 0.11.0) | 0.10.0: 12 of 12. 0.11.0: 12 of 12 | Everything, writes and deletes included |
Claude Haiku 5.5 | Claude Code | The 12-task comparison (0.10.0, 0.11.0) | 0.10.0: 11 of 12. 0.11.0: 9 of 11 (a twelfth task depended on one it missed, so it isn't scored). Both runs missed the same task: it didn't match a download by its source URL, so it deleted nothing. In 0.11.0 it also refused a copy, reading the server's connection-name line as forbidding a request that didn't name the NAS | Reads; check its writes, and confirm deletes yourself |
Muse Wonder | Meta Muse (Power Plan) | 0.11.0's and 0.12.0's live rounds | 0.12.0's last round: 61 passed, 2 failed, 1 surprise: it kept checking a download after the reply said it had finished, asked for a page past the last one, and restored a folder's file on its own after missing the folder in the recycle bin. Nothing it did was harmful, and the replies gave it what it needed. 0.11.0's last round: 64 passed, 0 failed, 0 surprises (Muse itself graded one correct refusal as a surprise, a password-only share link and then an expiry on a private one: it grades refusals literally). In the earlier rounds its misses found two server bugs (Photos IDs and names), fixed in 0.11.0 | Reads and writes; it follows most hints in replies, not all: it may keep checking or paging after a reply says it's done, so check what a write it made on its own did |
Muse Spark | Meta Muse (free plan) | 0.10.0's live rounds | No fails in the rounds recorded | Reads and writes |
The comparison holds the client fixed: headless Claude Code (server instructions and full tool schemas delivered, no other tools), the same 12 tasks across System, File Station, Synology Photos and Download Station, on a virtual DSM 7.2.2 restored fresh for each model, as a user who isn't an administrator. The tasks, how each was graded and the per-task results are in Comparing models.
Troubleshooting
An error's help_url points to its section in docs/error-codes.md. For behavior that looks wrong but isn't an error (a download sitting in waiting, a Photos date that reads back old, a delete that hands off with a handle), see docs/troubleshooting.md, organized by module.
Debugging
Two ways to enable debug logging:
mcp-synology check --verbose --config <your config file> # --verbose flag on setup/check
SYNOLOGY_LOG_LEVEL=debug mcp-synology serve --config <your config file> # env var, works for all commandsOr set it persistently in your config file:
# ~/.config/mcp-synology/config.yaml
logging:
level: debug
file: ~/.local/state/mcp-synology/nas/server.log # optional, logs to stderr by default; a relative path is from this file's folderDebug output includes every DSM API request/response (passwords masked), credential resolution steps, config discovery, version negotiation, and module registration decisions.
Migrating from synology-mcp
The package was called synology-mcp up to v0.3.x. If you still have that install, a migration script moves its config and state directories, keyring credentials and Claude Desktop entry to the new names:
curl -O https://raw.githubusercontent.com/cmeans/mcp-synology/main/scripts/migrate-from-synology-mcp.py
python migrate-from-synology-mcp.py # dry run — preview changes
python migrate-from-synology-mcp.py --apply # apply changesThe moved keyring entries don't say which host they're for. Unless the config is named by its full path, a login is refused until the host is recorded; see Credentials Are Tied to a Host.
Contributing
See DEVELOPMENT.md for build commands, testing, integration test setup, and design docs.
Acknowledgements
This project was built using a Spec-First Coding approach — a human-AI collaboration model where design precedes implementation and specs are the contract between the two.
Unlike vibe coding, where you describe what you want and let the AI generate code on the fly, spec-first coding treats design as a separate, deliberate phase. The four original specs in docs/specs/ were developed through extended conversation — exploring trade-offs, rejecting alternatives, and documenting decisions with rationale. Implementation then used the specs as the source of truth across 11 build phases.
Live testing against real hardware revealed behaviors the specs couldn't anticipate (DSM API quirks, such as JSON-parsed parameter values that once looked like search-service throttling, and version format incompatibilities). These discoveries are documented in the module specs and the code, which is authoritative where specs diverge.
License
Available Tools
59 toolscopy_filesADestructive
Copy files or folders into a destination folder; a folder is copied with everything in it, and the sources stay in place. To move instead, use move_files. dest_folder must already exist; it isn't created. With overwrite=false (default), items whose name is already at the destination are skipped and listed, and the rest are copied. With overwrite=true, two sources that would replace each other are refused, and a replaced file may not be in the recycle bin. If any source is missing, nothing is copied. A long copy keeps running on the NAS and returns a handle for file_task. While this user's running task is landing the same name there, the call is refused if either one replaces. That can miss another account's task or a start at the same moment from another server process, and DSM's tasks if its task list fails; overwrite=false never replaces.
Inputs: paths (required), dest_folder (required), overwrite.
copy_photosPhotos: CopyADestructive
Copy Synology Photos items and/or whole folders into another folder, in the same space or the other one. Waits up to the configured task timeout (30 s by default); a longer copy keeps running on the NAS and the reply gives a handle for photo_task. With on_conflict=overwrite it replaces files at the destination.
Inputs: ids, space, dest_space, folder_ids, +4 more.
create_downloadA
Create one or more download tasks, from URIs or from a local .torrent / .nzb file. The NAS fetches each URI, so one on the NAS or its local network (magnet trackers and wrapped links too) is refused unless the config sets allow_local_addresses. destination must be an existing folder, share-relative (DS doesn't create folders; make a new one first with File Station's create_folder when File Station write is enabled, or ask the user to create it in DSM). Omit it to use your default destination (a non-manager who has none must set it first with set_download_config, because DS won't start their tasks until then). Returns the new task IDs when DSM provides them (not for URLs with username / password); long magnet links and URI lists are supported.
Inputs: uri, password, username, destination, +1 more.
create_folderAIdempotent
Create one or more folders, each given as a full path starting with its shared folder (/video/TV Shows/New Show). By default (force_parent=true), missing folders above it are created too, and a folder that already exists is not an error. A new folder's name can't have whitespace at its ends, an invisible character where Unicode doesn't use one (a zero-width space, a soft hyphen), control or direction-changing characters, or be #recycle at a shared or home folder's top.
Inputs: paths (required), force_parent.
delete_downloadADestructive
Remove one or more download tasks. A deleted task can't be restored (its source URL is gone with it), so name the tasks and confirm with the user before deleting. Files from finished tasks are always kept. For unfinished tasks the partial data is discarded (irreversible); don't rely on force_complete to keep it.
Inputs: task_ids (required), force_complete.
delete_filesADestructive
Delete files or folders. A folder is deleted with everything in it (recursive, default true). On a share with a recycle bin, deleted items go to the bin (empty folders aren't kept): list_recycle_bin shows them and restore_from_recycle_bin brings them back. Without a bin, and for anything inside a bin (/<share>/#recycle/…), deletion is permanent. Paths are exact, not wildcard patterns, and if any path is missing nothing is deleted. A whole shared folder (/video), recycle bin (/video/#recycle) or user's home folder (/homes/<user>) is refused: delete its items by path. So is a path with a ., .. or empty part, or a NUL. A long delete keeps running on the NAS and returns a handle for file_task.
Inputs: paths (required), recursive.
delete_photo_albumsADestructive
Delete Synology Photos albums (normal or smart) and their share links. The photos in them stay where they are, but the albums' selections, conditions and links can't be recovered. Confirm with the user first. To only take items out of an album, use photo_album action=remove; to delete the photos themselves, delete_photos.
Inputs: album_ids, album_names.
delete_photo_foldersPhotos: Delete foldersADestructive
Delete folders in Synology Photos with everything in them (files and subfolders). They go to the recycle bin of the share that holds the space if it has one, otherwise they're gone. A large delete keeps running on the NAS and the reply gives a handle for photo_task. Confirm with the user first.
Inputs: space, folder_ids, folder_paths.
delete_photosPhotos: Delete itemsADestructive
Delete Synology Photos items (the files themselves) by id. They go to the recycle bin of the share that holds the space if it has one, otherwise they're gone. A large delete keeps running on the NAS and the reply gives a handle for photo_task. Confirm with the user first. To only take items out of an album, use photo_album remove.
Inputs: ids (required), space.
download_fileADestructive
Download a NAS file to a folder on this machine (where this server runs). A folder downloads as a ZIP of it, saved as <folder>.zip; a whole shared folder can't be downloaded. An existing local file is not replaced unless overwrite is true.
Inputs: path (required), filename, overwrite, dest_folder.
download_photosPhotos: DownloadADestructive
Download Synology Photos items by id to a folder on this machine: the original files or JPEG previews, one file per item, named after the original. Only writes inside the allowed local folders, and never replaces an existing file unless overwrite=true. Items that share a name get their id added; to retry part of a call, repeat it with the same ids in the same order, since names depend on all of them. For files outside Photos, use File Station's download_file when that module is enabled.
Inputs: ids (required), size, space, overwrite, +1 more.
edit_downloadADestructiveIdempotent
Edit task parameters. Currently supports destination (change the task's output share). Requires a newer Download Station (Task API v2); older versions get a clear error. This changes only the listed tasks; for global settings, use set_download_config. A finished task's file isn't moved: the reply says not changed for it.
Inputs: task_ids (required), destination.
edit_personADestructiveIdempotent
Change one person (a face-recognition group) in Synology Photos: rename them, hide or unhide them in the people list, or set their cover photo. To combine groups that are the same person, use merge_people.
Inputs: action (required), name, space, item_id, +2 more.
edit_photoADestructive
Edit Synology Photos items: rating, description, taken time (set or shift), rotation and favorite (Photos 1.9.1+). Pass only the fields to change; they apply to every id given. Photos writes these into the original files, so file dates and sizes change. Location can't be edited; for tags use tag_photos.
Inputs: ids (required), space, rating, rotate, +4 more.
file_taskADestructive
Follow up on a delete, copy, move or restore handed off to the NAS. Those tools hand off long operations and return a handle such as delete:FileStation_…, because the NAS keeps working after the reply. With a handle: action="status" shows progress, or the final result if DSM still has it; action="stop" stops it, and the operation may then be partly done; a stop DSM is slow to confirm shows on later status calls. Without a handle: lists this user's running operations, which is useful in a new chat or after a restart. Handles only work for the same NAS user. Don't poll in a loop: check when the user asks, or before doing something that depends on the result.
Inputs: action, handle.
get_dir_sizeARead-only
Calculate the total size of a folder, including everything below it: total size, file count and folder count. This is the tool for 'how much space does X use' questions. Counts only what this DSM user can read: a subfolder it can't read is left out without notice. A very large tree can take minutes, and the call gives up after a timeout (120 s unless the server is configured otherwise).
Inputs: path (required).
get_diskARead-only
Get one disk's full health: everything list_disks shows, every S.M.A.R.T. attribute (current, worst, threshold, raw value, status), the last quick and extended S.M.A.R.T. test results, recent test history, the 12-month trend of bad sectors, retries and SSD remaining life, any S.M.A.R.T. warnings, and its write-cache setting. Needs a DSM administrator account.
Inputs: disk (required), history_limit.
get_download_configARead-only
Get Download Station global configuration: default destination, BT/HTTP/FTP/NZB/eMule max speeds, eMule and auto-unzip state. For accounts that are not Download Station managers DSM returns a per-user view (labeled as such), not the NAS-wide settings. Use get_schedule for the weekly plan.
Inputs: no named parameters.
get_download_infoARead-only
Get detailed information for a specific download task: detail (status, destination, URI), transfer (size downloaded/uploaded, speed, peers), files (per-file selection for BT), trackers (BT only), peers (BT only). Use list_downloads first to find the task_id. For totals across all tasks, use get_download_stats; for settings, use get_download_config.
Inputs: task_id (required).
get_download_statsARead-only
Get current Download Station throughput statistics: total download and upload speed across all tasks, plus eMule download/upload speed when the eMule service is enabled. For per-task speeds use list_downloads.
Inputs: no named parameters.
get_file_infoARead-only
Get detailed metadata for files or folders whose paths you know: size, owner, timestamps, permissions and real path on the volume. To see what's in a folder, use list_files; for a folder's total size, use get_dir_size. A path that doesn't exist is reported as not found.
Inputs: paths (required), additional.
get_photoARead-only
Get full details for Synology Photos items by id: filename, folder, taken time, size, resolution, rating, favorite (Photos 1.9.1+), description, tags, people, GPS location and address, and camera details, plus the full EXIF table with exif=true. Use it when list_photos' one-line rows aren't enough. IDs that don't exist are listed as not found.
Inputs: ids (required), exif, space.
get_resource_usageARead-only
Get live resource utilization: CPU load, memory usage, disk I/O, and network throughput. Needs a DSM administrator account; any other account gets permission_denied. Use this to check if the NAS is under heavy load before starting expensive work on it. For the model, firmware, temperature and uptime, use get_system_info.
Inputs: no named parameters.
get_scheduleARead-only
Get the Download Station schedule: whether it is enabled, the limited-speed (alt) download/upload rates, and the weekly plan as a 7-day × 24-hour grid where each hour is full speed, limited, or no download. The weekly plan needs a Download Station manager/admin account; otherwise only the flags are shown.
Inputs: no named parameters.
get_storage_overviewARead-only
Get the overall health of the NAS's storage: DSM's own status summary, every storage pool, volume, disk and SSD cache with its status in one line each, anything that needs attention (a degraded pool, a failing or incompatible disk, a nearly full volume) and storage tasks that are running or scheduled next (data scrubbing, S.M.A.R.T. tests, RAID rebuilds). Needs a DSM administrator account. Start here for any question about disks, RAID or free space; for one object's details use get_disk, get_volume or list_storage_pools.
Inputs: no named parameters.
get_storage_schedulesARead-only
Get every scheduled storage task: data scrubbing (on or off, interval, which pools, next run), S.M.A.R.T. test tasks (quick or extended, which disks, enabled, next run), space reclamation and Btrfs deduplication windows, and SSD TRIM, with what's running now. Needs a DSM administrator account. Snapshot schedules are per shared folder: use list_snapshots.
Inputs: no named parameters.
get_storage_settingsARead-only
Get the NAS's storage settings: RAID resync speed, fast repair, automatic data scrubbing and repair, disk health warning thresholds (bad sectors, SSD remaining life, months of life left), health reports, automatic hot-spare replacement, the drive compatibility database's version, and external-storage settings. Needs a DSM administrator account.
Inputs: no named parameters.
get_system_infoARead-only
Get everything DSM reports about the NAS. Every account gets the model, serial number, DSM version, RAM, uptime, the NAS's local time and its code page, and the temperature where the NAS has a sensor. A DSM administrator account also gets the CPU, time zone with the current UTC offset, NTP server, firmware date, DSM's update-ready and crash flags, eSATA and attached devices, the network-card flag on DSM 7.2.2 and later, and redundant power on models that report it; any other account gets a line saying so. Use this to identify the NAS, check its basic health or tell the time on it. For live CPU, memory, disk and network load, use get_resource_usage.
Inputs: no named parameters.
get_volumeARead-only
Get everything about one volume: what list_volumes shows plus its space by category (shared folders, snapshots, iSCSI LUNs, other), SSD TRIM support and schedule, Btrfs deduplication (supported, last run and savings), space reclamation state, the SSD cache attached to it, and every other field DSM reports. Needs a DSM administrator account.
Inputs: volume (required).
list_disksARead-only
List the NAS's disks: bay, model, vendor, serial number, firmware, size, type (HDD or SSD, SATA, SAS, M.2), temperature, status, S.M.A.R.T. status, bad-sector count, remaining life for SSDs, and what each is used for (which pool, hot spare, SSD cache, or not in use). Shows a running S.M.A.R.T. or other disk test with its progress. Needs a DSM administrator account. For one disk's S.M.A.R.T. attributes, test history and health trend, use get_disk.
Inputs: no named parameters.
list_downloadsARead-only
List download tasks in the Download Station queue. Returns a table with id, title, type (bt/http/ftp/nzb), status, size, progress%, download and upload speed, ETA, and completion time. Paged (25 by default); the footer gives the true total and the next offset. A status filter or sort covers the whole queue, not just one page: sort_by=completed with limit=1 gives the most recently finished task. Accounts that are not Download Station managers see only their own tasks (the output says so), so an empty list does not mean the NAS is idle.
Inputs: limit, offset, sort_by, status_filter.
list_external_storageARead-only
List storage attached to the NAS from outside: USB and eSATA drives (name, size, file system, partitions, shared folder) and expansion units (model, status, disks). Needs a DSM administrator account.
Inputs: no named parameters.
list_filesARead-only
List the files and folders directly inside one folder (one level; subfolders' contents aren't listed). To find files anywhere below a folder by name, extension, size or date, use search_files. Folders show no size; for a folder's total, use get_dir_size. DSM sorts folders and files separately: ascending lists folders first, descending files first. A long listing is paged, and the reply says which offset is next.
Inputs: path (required), limit, offset, pattern, +3 more.
list_photo_collectionsARead-only
List one type of Synology Photos collection with ids and item counts: albums, albums shared with you, people, tags, places, concepts or folders. Use it to find the ids and names that list_photos filters by. Paged; name narrows the list by substring.
Inputs: type (required), name, limit, space, +4 more.
list_photosARead-only
List or search photos and videos in Synology Photos, newest first by default, with the total. folder, person and tag combine with the date, type, rating and favorite filters; album, place, concept and keyword each work alone. Each row has the item's id, filename, taken time, type, size and folder; pass the ids to get_photo for full details or to download_photos to save the files. For files outside Photos, use File Station's list_files when that module is enabled.
Inputs: tag, type, limit, place, +16 more.
list_recycle_binARead-only
List what's in one shared folder's recycle bin: the files and folders deleted from that share. list_shares shows which shares have a bin; for files that weren't deleted, use list_files. Without pattern, only the bin's top level is listed, and DSM sorts folders and files separately, as in list_files. With pattern, the bin is searched, subfolders included (up to 200 folders and 5,000 items; the reply says when it stops early), and each match shows its path in the bin. Modified is the file's own time, not when it was deleted.
Inputs: share (required), limit, offset, pattern, +2 more.
list_snapshotsARead-only
List a shared folder's snapshots (time taken, description, locked, immutable on DSM 7.2.2 and later, scheduled or manual) and its snapshot schedule. Without a shared folder, lists every shared folder's snapshot count and whether a schedule is on. Needs a DSM administrator account and the Snapshot Replication package.
Inputs: limit, share, offset.
list_ssd_cachesARead-only
List the NAS's SSD caches: which volume each speeds up, read-only or read-write, RAID type and SSDs, size, read and write hit rates, status, whether metadata is pinned, and the SSD cache advisor's recent recommendations (suggested cache size). Needs a DSM administrator account.
Inputs: no named parameters.
list_storage_poolsARead-only
List the NAS's storage pools: RAID type, member disks and their state, size and use, status, any repair, rebuild or expansion in progress with its percentage, and data scrubbing (state, last and next run). Also lists hot spares (which pools each protects), disks that could become spares, whether a spare replaces a failed disk automatically, and pools that are missing or detected but not assembled. Needs a DSM administrator account.
Inputs: no named parameters.
list_volumesARead-only
List the NAS's volumes: path (/volume1), file system, size, used and free space with the percentage used, status and what DSM says about it (for example almost full), the storage pool it's on, encryption and lock state (DSM 7.2.2 and later), and data scrubbing state. Needs a DSM administrator account. For a volume's space by category (shared folders, snapshots, iSCSI LUNs), TRIM and deduplication, use get_volume.
Inputs: no named parameters.
merge_peopleADestructive
Merge people (face-recognition groups) in Synology Photos that are the same person: every person in merge_ids and merge_names joins the target, which keeps its id, and the merged people are gone. If any person isn't found, nothing is merged. This can't be undone, so confirm with the user first. To rename or hide one person, use edit_person.
Inputs: name, space, merge_ids, target_id, +2 more.
move_filesADestructive
Move files or folders into a destination folder; a folder moves with everything in it, and the sources are removed. To keep the sources, use copy_files. dest_folder must already exist; it isn't created. With overwrite=false (default), items whose name is already at the destination are skipped, listed and left at the source. With overwrite=true, two sources that would replace each other are refused, and a replaced file may not be in the recycle bin. If any source is missing, nothing is moved. A whole shared folder (/video), recycle bin or user's home folder (/homes/<user>) is refused as a source: move its items by path. A long move keeps running on the NAS and returns a handle for file_task. While this user's running task is landing the same name there, the call is refused if either one replaces. That can miss another account's task or a start at the same moment from another server process, and DSM's tasks if its task list fails; overwrite=false never replaces.
Inputs: paths (required), dest_folder (required), overwrite.
move_photosPhotos: MoveADestructive
Move Synology Photos items and/or whole folders into another folder of the same space, or from the personal space into Shared Space (Photos can't move out of Shared Space: copy, then delete). Waits up to the configured task timeout (30 s by default); a longer move keeps running on the NAS and the reply gives a handle for photo_task. With on_conflict=overwrite it replaces files at the destination.
Inputs: ids, space, dest_space, folder_ids, +4 more.
pause_downloadA
Pause one or more download tasks. When some of the tasks can be paused, an already-paused or finished one is refused for its id (error 405) or shown as not paused: already finished, and the others are paused. When none can be paused (one finished or already-paused task alone, a missing id, or another user's task), the whole call fails with invalid_parameter; list_downloads shows each task's status. A pause takes about 3 s, or longer on a slow NAS, since Download Station can undo one while tasks start: it checks, and pauses again once. A row saying pause it again means call this once more: if it still doesn't hold, tell the user, and invalid_parameter then means there's nothing left to pause; list_downloads shows its state. see list_downloads means check the task there.
Inputs: task_ids (required).
photo_albumADestructive
Create or change a Synology Photos album: create one (normal, or smart: filled automatically from a condition), rename it, add or remove items, set its cover, copy it, or replace a smart album's condition. The photos themselves never move. Personal space albums only. To delete albums use delete_photo_albums; to share one, photo_share_link.
Inputs: action (required), ids, name, album_id, +2 more.
photo_folderPhotos: FolderADestructiveIdempotent
Create or rename a folder in Synology Photos, or set its cover photo. A name the parent folder already has is refused. To copy or move folders use copy_photos / move_photos; to delete, delete_photo_folders. For folders outside Photos, use File Station's create_folder and rename when File Station write is enabled, or ask the user to do it in DSM.
Inputs: action (required), name, space, item_id, +4 more.
photo_requestADestructive
Manage Synology Photos photo requests: links that let anyone with the link upload files into one of your Photos folders. action: create (returns the link), list (every request with its passphrase and link), update, or delete (its link stops working).
Inputs: action (required), space, expires, request, +4 more.
photo_taskADestructive
Follow up on a Synology Photos copy, move or delete that is still running. With a handle (photos:): action=status shows progress; action=stop stops it (it may then be partly done). Without a handle: lists this user's copy, move and delete tasks. action=clear removes finished tasks from that list. Don't poll in a loop: check when the user asks, or before doing something that depends on the result.
Inputs: action, handle.
renameA
Rename a file or folder in place. If the new name is already taken in that folder, DSM refuses and nothing is replaced. To move something to another folder, use move_files. A whole shared folder (/video), recycle bin or user's home folder (/homes/<user>) is refused.
Inputs: path (required), new_name (required).
restore_from_recycle_binADestructive
Restore deleted files or folders from one shared folder's recycle bin. Check what's there first with list_recycle_bin: every path must be in that share's bin, or nothing is restored; an empty item, naming the whole bin, is refused. Without dest_folder, each item goes back to its original folder, which is re-created if it's gone. An item whose name is already at the destination is skipped and stays in the bin, unless overwrite=true, which replaces the existing one, which may then not be in the recycle bin; two items that would replace each other are refused. A long restore keeps running on the NAS and returns a handle for file_task. While this user's running task is landing the same name there, the call is refused if either one replaces. That can miss another account's task or a start at the same moment from another server process, and DSM's tasks if its task list fails; overwrite=false never replaces.
Inputs: paths (required), share (required), overwrite, dest_folder.
resume_downloadA
Resume one or more paused download tasks. An active or finished task is refused for that id (error 405), while the others are resumed. list_downloads with status_filter=paused finds the paused tasks.
Inputs: task_ids (required).
search_filesARead-only
Search a folder and everything below it for files and folders by name, extension, size or modified date. For what's in one known folder, use list_files; for how much space a folder uses, use get_dir_size, not a search. With no filter, it returns everything under the folder, up to limit. A search that runs out of time returns what it found so far and says so.
Inputs: folder_path (required), limit, pattern, size_to, +7 more.
set_download_configADestructiveIdempotent
Set Download Station global configuration. All parameters are optional: only the fields you pass are updated. The rate fields require a Download Station manager/admin account: DSM silently ignores them from other accounts, so the tool refuses them. Any user can set default_destination: DSM applies it per user, and DS won't start a non-manager's tasks until it is set.
Inputs: bt_max_upload, bt_max_download, emule_max_upload, emule_max_download, +1 more.
set_scheduleADestructiveIdempotent
Set the Download Station schedule; get_schedule shows the current one. All parameters are optional: only what you pass is updated. enabled / emule_enabled toggle whether the schedule applies (DSM lets any Download Station user toggle this NAS-wide flag). schedule_plan is in the NAS's local hours, and download_rate / upload_rate are the limited speed. The plan and rates need a Download Station manager/admin account; if that write is refused, nothing is applied.
Inputs: enabled, upload_rate, download_rate, emule_enabled, +1 more.
tag_photosADestructive
Add or remove tags on Synology Photos items. Photos writes tags into the original files and re-indexes them, so file dates and sizes change. A tag disappears once no item has it, so to delete a tag remove it from every item that has it (list_photos tag=...); to rename, add the new name to those items, then remove the old one.
Inputs: ids (required), tags (required), action (required), space.
upload_fileADestructive
Upload one file from this machine (where this server runs) to a NAS folder; a local folder can't be uploaded. An existing NAS file of the same name is not replaced unless overwrite is true.
Inputs: local_path (required), filename, overwrite, dest_folder, +1 more.
upload_photosPhotos: UploadA
Upload photos or videos from this machine into a Synology Photos folder, optionally adding them to an existing album. Only reads files inside the allowed local folders. Starts no new file after the configured task timeout (30 s by default, at most 45 s) and lists the files not tried, to pass to another call. Photos indexes new items over the next seconds to minutes; until then their taken dates and previews may be missing.
Inputs: local_paths (required), space, album_id, folder_id, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 59 tools
The descriptions draw clear boundaries between similar tools: list_files vs search_files vs get_dir_size, File Station vs Photos copy/move/delete, and overview vs detail storage tools. A few multiplexed tools (photo_album, photo_share_link, photo_request, file_task, photo_task) and parallel File Station/Photos operations can still be confused, but the set is mostly distinct.
Most names follow a readable snake_case verb_noun pattern such as list_files, create_folder, delete_photos, and get_disk. Deviations exist: noun-only or multiplexed names like rename, photo_album, photo_folder, photo_request, file_task, and photo_task break the pattern, but they remain understandable.
59 tools is far above the typical 3-15 range and creates substantial choice overload, even across the server’s many modules. The tools are individually purposeful, but the set is too large for efficient agent selection.
Coverage is strong for files, downloads, Photos, system information, and storage inspection. However, core NAS administration is missing or read-only: user/group management, shared-folder creation and permissions, snapshot creation/deletion, and broader package/network administration. Agents can complete many file and media workflows but hit dead ends for full NAS management.
Maintenance
Related MCP Connectors
Linux server administration over OAuth MCP: shell, Docker, systemd, files and monitoring.
MCP server for SmartAgent CRM: leads, tasks, sales pipelines, property listings
Build, deploy, and host full-stack web apps from any MCP client. DB, auth, storage, cron included.
MCP server for InsForge BaaS — database, storage, edge functions, and deployments
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to manage Synology NAS devices with file operations (create, delete, move, search) and Download Station control through secure authentication and session management.130 PyPI258MIT
- AlicenseAqualityCmaintenanceSelf-hosted MCP server that exposes Synology Drive, Spreadsheet, MailPlus, and Calendar as structured tools for AI agents, enabling file, spreadsheet, email, and calendar management via natural language.3913 npm11MIT
- AlicenseNot gradedqualityDmaintenanceComprehensive Synology NAS management through MCP, enabling file operations, downloads, backups, Docker, photos, VMs, snapshots, and more across up to 9 NAS units.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Synology NAS services including DSM, File Station, Calendar, Note Station, Contacts, Chat, Download Station, and Container Manager through a modular MCP interface with configurable safety modes.MIT