nas-mcp
Provides read-only Docker container monitoring and diagnosis: lists containers with state, image, project, and ports; retrieves container details, restart and exit information, mounts, and redacted logs; diagnoses crash loops, permission issues, port conflicts, missing bind folders, resource problems, restart policy issues, and image/security concerns.
Provides NAS health and administration visibility for Synology systems, including model/DSM version, uptime, temperature, CPU and memory, disk SMART health, storage pools and volumes, backup target status, security scan status, and read-only access to allowed folders and files.
Integrates Watchtower update history so the server can report what Watchtower updated or stopped and when, correlate container stoppages or breakage with recent updates, and suggest rollback when problems begin after an update.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
nas-mcp
An MCP server that lets Claude look after a Synology NAS: system health, disks and volumes, Docker containers (state, logs, diagnosis), Watchtower update history, backups, and the NAS gate security scan.
Reads always; changes only while the NAS gate's "Agent (MCP)" window is open. Nothing here can change the NAS: Docker is reached through a socket proxy with POST disabled, and mounted folders are read-only.
Tools
Tool | What it answers |
| How is the NAS? (everything below, summarised) |
| Model, DSM version, uptime, temperature, CPU, memory |
| Disks (SMART, temperature, bad sectors), pools, volumes |
| Every container with state, image, project, ports |
| One container: exit code and meaning, restarts, mounts, last update |
| The container's log, secrets redacted |
| Problems and suggested fixes (see below) |
| What Watchtower updated or stopped, and when |
| Starts, stops, crashes, OOM kills, pulls and updates over time |
| Newest file per backup target, late or not |
| From the NAS gate, if configured |
| Allowed folders only |
What container_diagnose finds
crash loops and errors that repeat in the log
containers stopped with no visible cause, matched against Watchtower's own log (Container Manager does not show what Watchtower does)
breakage that started right after a Watchtower update, with a rollback suggestion
permission errors (suggests
user: "1026:100"), ports in use, missing bind folders, options a new version removed, wrong architecture, full disk, out of memoryno restart policy, standalone containers (suggests a Compose project),
:latesttagsservices without a password, privileged mode, unmaintained images
Docker forgets past events when it restarts, so a small recorder keeps its
own log in data/events.jsonl for nas_timeline.
Related MCP server: MCP SSH SRE
Install (Container Manager)
Create a DSM administrator user for the server (2-step verification off for it).
Create the folder
/volume1/docker/nas-mcpand inside it a folderdata.Put
docker-compose.ymlin it,.env.exampleas.env, andconfig.example.yamlasdata/config.yaml; fill them in.Container Manager → Project → Create → path
/volume1/docker/nas-mcp.Open
http://<nas>:8790/?token=<your token>for the status page.
Everything specific to one NAS lives in data/config.yaml and .env,
never in this repository.
Connecting Claude from anywhere (stage 1b)
Give the server a public HTTPS address without opening router ports, for example Tailscale Funnel on the NAS:
tailscale funnel --bg 8790.Set
NASMCP_PUBLIC_URLto that address and configure notifications (NASMCP_NOTIFY_MODE=hawithNASMCP_HA_URL,NASMCP_HA_TOKEN,NASMCP_HA_NOTIFY_SERVICE, orwebhook).In Claude add a custom connector with
<public url>/mcp.Claude registers itself and opens a page with a 4-digit code; your phone gets a notification with Approve / Deny buttons. Tokens are stored only as hashes, access tokens last 8 hours and rotate through refresh tokens.
Changes (stage 1c)
Tool | Does |
| start / stop / restart |
| restart policy (unless-stopped by default) |
| stop, no auto-restart, rename |
| edit a project's Compose file, validated, with backups |
| Container Manager project stop / build / start / restart |
| write, move, or set aside files in read-and-write folders |
| S.M.A.R.T. quick / extended test, or stop it |
| data scrubbing now, or resume DSM's paused schedule |
| add one allow/deny rule at the top, or put back a saved profile; phone approval, profile saved first, deny rules can never cover LAN, Docker or Tailscale |
| read-only helpers |
| read-only helpers |
Every change asks the gate first and fails closed, is logged to
data/actions.jsonl, and never deletes anything. nas-mcp, its Docker proxy
and nas-gate can never be stopped or retired from here.
Folders
Which folders the server may use is the owner's choice in the NAS gate (per shared folder: closed, read, or read and write). Mount the volumes once so the allowed ones can be reached; everything not allowed stays closed in code:
- /volume1:/host/volume1:rw
- /volume2:/host/volume2:rwAn overwritten file is first copied to .nas-mcp-history in that folder;
file_retire moves things to _to_delete instead of deleting. New files get
the owner of their parent folder. If the gate cannot be reached, only the
folders this server mounts itself (docker and the read-only DSM files) work.
After every update (stage 1d)
A watcher notices when a container starts running a new image (Watchtower or a
rebuild). It is woken by Docker's own start events, so it costs nothing while
nothing happens (plus a light safety look every 15 minutes). It checks the container 5 minutes later (crash loop, stopped, repeated errors), and if
it is broken sends an alert with Roll back / Ignore (phone push and Home
Assistant's notification panel). Rollback recreates the container with the same
settings and the previous image (keep Watchtower's cleanup off), labels it so
Watchtower leaves it alone, pins the image by digest in its Compose file, and
renames the broken one to_delete_<name>_broken_<time>. Tapping the alert is the
approval; from chat, update_rollback needs the agent window.
nas_health_scan (and GET /api/health for Home Assistant) scores disks, space,
data scrubbing, disk protection, DSM updates, backups, containers and broken updates.
Home Assistant: create an input_text helper named nas_mcp_token in password
mode (max 255). With NASMCP_HA_URL/NASMCP_HA_TOKEN set, the server writes a
read-only token into it on start. That token opens only /api/health, so a REST
sensor can read the score without a copy of the main token:
rest:
- resource: "http://NAS-IP:8790/api/health"
scan_interval: 1800
headers:
Authorization: "Bearer {{ states('input_text.nas_mcp_token') }}"
sensor:
- name: "NAS health score"
value_template: "{{ value_json.score }}"
json_attributes: [counts, findings, finished_at]/api/health?refresh=1 runs a new scan first (for a "scan now" button).
Media apps (stage 2a: reading)
Tool | Does |
| Sonarr, Radarr, Prowlarr, Bazarr, qBittorrent, Jellyfin, Seerr: address, key found, answers, version |
| read one settings section of one app through its own API |
| where each app's links point (download clients, indexers, Prowlarr apps, Bazarr, Seerr), whether something answers there, and whether the stored key matches the real one |
Keys are read from the apps' own files in the docker folder (config.xml,
Bazarr's config/config.yaml, Seerr's settings.json), kept in memory only
and never returned: every answer hides secret fields and any known key.
Jellyfin: create an API key named nas-mcp (Dashboard > API Keys); it is read
from Jellyfin's database, read-only. qBittorrent has no key on disk, so set
NASMCP_QBIT_USER and NASMCP_QBIT_PASSWORD. NASMCP_APPS_HOST is the
address the apps are reached at (default: the Docker gateway, i.e. the NAS).
Changes to app settings come in stage 2b.
Roadmap
1c: write tools behind an "MCP" window in the NAS gate, phone approval for destructive actions, nothing ever deleted (renamed
_to_delete_…)2b: changes to media app settings, with a saved copy before each change
Development
pip install -r requirements.txt pytest
python -m pytest -qTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Read-only Linux server and Docker monitoring for AI assistants: CPU, memory, disk, network.
Read-only server insight: why a Linux server or K8s cluster is slow, failing or changed.
Read-only local AI advice, shared reports and website audits. No PC scan or local actions.
Read-only AI access to HAVN properties, leads, tasks, files, media, and analytics.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables Claude to monitor and manage homelab infrastructure including Docker containers, OPNsense firewall, and TrueNAS storage with configurable capability levels from read-only monitoring to full management control.137-
- AlicenseNot gradedqualityDmaintenanceProvides read-only server monitoring and diagnostic tools for AI assistants to manage Linux and Unraid systems via SSH. It enables natural language interactions for container management, storage health checks, and system log analysis while keeping credentials secure.17ISC
- AlicenseAqualityDmaintenanceEnables Claude to monitor CPU, memory, disk, processes, network connections, Docker containers, and system logs for system diagnostics and troubleshooting.5MIT
- AlicenseAqualityCmaintenanceProvides Claude with read-only access to PC diagnostics including hardware specs, live performance metrics, disk usage, network checks, and more, enabling natural language queries about PC health and performance.151MIT