Better Unraid MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Log level: fatal, error, warn, info, debug, trace, or silent. | info |
| MCP_HTTP_HOST | No | Bind address for the http transport. | 127.0.0.1 |
| MCP_HTTP_PORT | No | Port for the http transport. | 3000 |
| MCP_READ_ONLY | No | Set true to register only the read-only tools. | false |
| MCP_TRANSPORT | No | MCP transport: stdio (local clients) or http (remote clients). | stdio |
| UNRAID_API_KEY | Yes | API key from Quick start step 1. | |
| UNRAID_API_URL | Yes | Full Unraid GraphQL endpoint, including /graphql. | |
| UNRAID_SSH_HOST | No | Turns on every tool marked SSH above, plus the SSH fallback for docker_stats. Requires a password or key path. | |
| UNRAID_SSH_PORT | No | SSH port. | 22 |
| UNRAID_SSH_USER | No | SSH user. Unraid administration is normally done as root. | root |
| MCP_HTTP_SESSIONS | No | Set true for stateful HTTP sessions (SSE responses), which carry server-initiated messages: progress notifications, elicitation prompts, and live-resource updates. | false |
| MCP_METRICS_HISTORY | No | Set true to record CPU, memory, and network history in memory for metrics_history and unraid://live/history. | false |
| UNRAID_SSH_KEY_PATH | No | Path to an SSH private key file (readable by the MCP server process). | |
| UNRAID_SSH_PASSWORD | No | SSH password. Prefer UNRAID_SSH_KEY_PATH where you can. | |
| MCP_HTTP_BEARER_TOKEN | No | Required for the http transport: clients must send Authorization: Bearer <token>. | |
| MCP_HTTP_ALLOWED_HOSTS | No | Comma-separated Host allow-list; turns on DNS-rebinding protection. | |
| UNRAID_SSH_IDLE_SECONDS | No | Idle seconds before the persistent SSH connection closes (it reconnects when next needed). | 90 |
| UNRAID_ALLOW_SELF_SIGNED | No | Set true only for a self-signed TLS certificate on the LAN. | false |
| MCP_HTTP_ALLOW_UNAUTHENTICATED | No | Explicit opt-in to run the http transport with no auth (trusted networks only). | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": true,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| system_infoA | Read-only. Returns the Unraid server's static identity: OS distro, release, kernel, hostname, and a CPU summary (model, cores, threads); |
| system_metricsA | Read-only. Point-in-time resource snapshot: CPU load, memory pressure (percent + available bytes), per-interface network rates/errors, server time (timezone, NTP), and optionally temperature sensors (include_temperature). Network rates read 0 right after the Unraid API restarts. For trends over time use metrics_history, for per-container usage docker_stats, for GPUs gpu_metrics, and for a scored verdict system_health. Requires INFO+VARS read permission (any viewer-level key). |
| metrics_historyA | Read-only. Recent CPU / memory / network history from this server's in-memory recorder (opt-in: MCP_METRICS_HISTORY=true): 30-second buckets with min/avg/max for up to 24 hours, honest about gaps; concise output folds the window into at most 24 rows. Nothing is persisted to disk — history starts when the server starts. When recording is off the tool says how to enable it. For current values rather than a trend, use system_metrics. |
| log_listA | Read-only. Lists the server's log files (name, path, size, last modified), most recently modified first. Pass a returned path or name to log_read. For a Docker container's own output use docker_container_logs instead. An empty list may also mean the log directory was unreadable — the API does not distinguish. Requires LOGS read permission (any viewer-level key). |
| log_readA | Read-only. Returns lines from a server log file. |
| array_statusA | Read-only. Returns the array state, capacity, current parity-check status and progress, and disk counts; |
| array_actionA | Starts or stops the array. ⚠ stop: Unraid takes every share, Docker container, and VM offline (the API does not check for active services first). Requires |
| array_disk_actionA | ⚠ Array disk operations: add a disk to the protected array (requires a STOPPED array — checked first), mount/unmount an array disk, or clear a disk's error statistics (require a STARTED array). Removing a disk is no longer offered by the Unraid API (4.37+) — use the web UI. A wrong disk id on add risks data loss. Requires |
| parity_historyA | Read-only. Returns past parity checks, newest first (date, status, error count, speed; |
| parity_checkA | Starts, pauses, resumes, or cancels a parity check. |
| disk_listA | Read-only. Lists every physical disk with model, size, SMART status, and temperature; |
| share_listA | Read-only. Lists user shares with usage (free/used/total); |
| docker_autostart_setA | Sets which containers auto-start on boot. Merge-safe: reads the current autostart config, applies your changes, and resubmits the complete set (sorted to preserve boot order) so unlisted containers are untouched. Boot-time only — does not start/stop running containers now (use docker_container_action for that); takes effect on the next array/Docker start. Requires |
| docker_container_actionA | Changes a container's run state (start | stop | pause | unpause | restart). restart uses the API's native restart mutation (API 4.37+). Requires |
| docker_container_listA | Read-only. Lists Docker containers with state, image, whether an update is available, and the container |
| docker_container_logsA | Read-only. Returns the most recent log lines for a container. To page, re-pass the returned |
| docker_container_removeA | Permanently deletes a container; force-kills it if running (no graceful stop); irreversible. |
| docker_container_updateA | Pulls the latest image(s) and recreates container(s). |
| docker_network_listA | Read-only. Lists the Docker networks defined on the server: name, driver, scope, and IPv6/internal flags ( |
| docker_port_conflictsA | Read-only. Reports ports claimed by more than one Docker container, in two groups: LAN/host port conflicts (real collisions) and containers sharing the same internal port (often harmless when they sit on different Docker networks). Use it to diagnose a port clash; it lists existing conflicts only, not every port in use. |
| vm_listA | Read-only. Lists virtual machines with their run state (RUNNING, SHUTOFF, PAUSED, …). Use |
| vm_actionA | Changes a VM's run state. |
| notification_overviewA | Read-only. Returns notification counts only, never the notifications themselves: unread and archived, each broken down by importance (alert / warning / info) plus total. Use it to check whether anything is waiting. To read the unread warnings and alerts use notification_alerts; to list notifications and get their ids use notification_list. The counts are a server-side cache; if they disagree with notification_list, run notification_recalculate. |
| notification_listA | Read-only. Lists notifications of one |
| notification_alertsA | Read-only. Lists the unread warning and alert notifications, deduplicated and newest first (up to 50) — the 'needs attention now' view. Takes no filters and never includes info or archived notifications; for those, or for an importance filter or paging, use notification_list. For counts only use notification_overview. Each concise line ends with the notification's |
| notification_archiveA | Archive (hide) or unarchive (restore to unread) notifications — reversible; nothing is deleted (to remove notifications permanently use notification_delete). Target specific |
| notification_unreadA | Marks one notification as unread (moves it back to the unread bucket), e.g. to re-surface something archived too early. This is a write, not a way to read unread notifications: to view them use notification_list ( |
| notification_deleteA | ⚠ Permanently deletes notifications (irreversible): one by id, or every archived one. Requires |
| notification_createA | Creates a notification in Unraid's notification center, e.g. to record the outcome of a task for whoever runs the server. |
| notification_recalculateA | Re-syncs the notification overview counts from disk (corrects cache drift after bulk changes). Returns the refreshed counts. Use it when notification_overview disagrees with notification_list; it rewrites only the cached counts, never a notification. To just read the counts use notification_overview. |
| plugin_listA | Read-only. Lists installed plugins of both kinds: API (npm) plugins and native OS |
| plugin_addA | ⚠ Installs one or more Unraid API plugins by npm package name ( |
| plugin_removeA | ⚠ Uninstalls one or more Unraid API plugins by npm package name ( |
| plugin_install_plgA | ⚠ Installs a native Unraid OS plugin from a .plg URL (the Community Applications format) via the Unraid API. A .plg installer runs arbitrary code as root — only install from trusted sources. Requires |
| apikey_listA | Read-only. Lists the Unraid API keys configured on the server: name, id, roles, and creation date, plus description and permissions with |
| apikey_manageA | ⚠ Credential management: create, update, add_role, remove_role, or delete Unraid API keys. This is the model managing the very credentials that control server access — the key VALUE is disclosed exactly once, at creation. Deleting the key this MCP server uses locks it out. Requires |
| ups_statusA | Read-only. Live UPS telemetry from apcupsd: operational status (passed through verbatim from apcaccess — e.g. ONLINE, ONBATT, LOWBATT, COMMLOST), battery charge and estimated runtime, and power load/voltage. When apcaccess returns nothing (apcupsd stopped, no UPS attached, or a NUT-managed UPS — the Unraid API reads apcupsd only) this tool reports 'no live UPS data' instead of an error; when apcupsd reports a device without identity the API returns placeholder values, reported the same way rather than as a healthy UPS, and battery/power values may be upstream defaults when apcaccess data is incomplete. Reachable by any authenticated key (no special permission). |
| mover_statusA | Read-only. Reports whether the mover (the process that migrates data from the cache pool to the array) is currently running, plus its cron schedule and whether mover logging is enabled. Needs a viewer-level key (VARS read). Mover activity detail appears in the syslog (see log_read). Use mover_action to start or stop it. |
| mover_actionA | Starts or stops the mover (the process migrating data from the cache pool to the array) via |
| system_powerA | ⚠ Reboots ( |
| system_healthA | Read-only. One severity-scored health report (OK / WARNING / CRITICAL) across array state, capacity, disk status and temperatures, parity (the last recorded check's outcome and error count, plus any check in progress), unread notifications, UPS, and pending container updates — start here instead of assembling health from separate reads. Thresholds: capacity warns at 90% and goes critical at 95%; disk temps warn at 50°C and go critical at 60°C; a last parity check with errors or a FAILED outcome warns. Follow up with array_status, disk_list, parity_history, or notification_alerts for depth. |
| disk_spinA | Spins a disk up or down over SSH. Pass exactly one target: array slots and |
| disk_smart_reportA | Read-only. Full smartctl attribute report for one disk ( |
| vm_snapshot_listA | Read-only. Lists a VM's libvirt snapshots by name via virsh over SSH (snapshots are not exposed by the GraphQL API). Reports clearly when the VM service is disabled. Requires SSH (UNRAID_SSH_*). Use vm_snapshot_create to add one; for ZFS dataset snapshots use zfs_snapshot_list instead. |
| vm_snapshot_createA | ⚠ Creates an EXTERNAL disk snapshot of a VM via |
| user_script_listA | Read-only. Lists the scripts managed by the User Scripts plugin (from /boot/config/plugins/user.scripts/scripts) over SSH. Returns names only: pass one to user_script_run, or review its source first by reading |
| user_script_runA | ⚠ Runs one User Scripts plugin script by name over SSH — user scripts are arbitrary code, executed here as the SSH user (typically root). Requires |
| gpu_metricsA | Read-only. GPU utilization over SSH: full per-GPU metrics via nvidia-smi (utilization, VRAM, temperature, power) when the NVIDIA driver plugin is installed; a one-line summary (frequency, idle share, engine load, GPU clients) parsed from a 3-second intel_gpu_top sample for Intel; a clear absence report otherwise. NVIDIA takes precedence when both are present. Use this for GPU load, which system_metrics does not report. Requires SSH (UNRAID_SSH_*). |
| process_listA | Read-only. The host's busiest processes by CPU or memory via |
| zfs_statusA | Read-only. ZFS pool health and capacity (zpool list) plus ARC memory usage from /proc/spl/kstat/zfs/arcstats, over SSH. Start here for ZFS, then use zfs_dataset_list for per-dataset usage and zfs_snapshot_list for snapshots. Per-device errors and scrub progress are not included (run |
| zfs_dataset_listA | Read-only. Lists ZFS datasets with used/available space and mountpoints over SSH; optional |
| zfs_snapshot_listA | Read-only. Lists ZFS snapshots (full |
| zfs_snapshot_actionA | ⚠ Creates, destroys, or rolls back a ZFS snapshot ( |
| flash_backupA | ⚠ Archives the Unraid flash (USB boot) device over SSH into a user share: by default /boot/config only (settings, plugins, keys — a few hundred MB); |
| service_listA | Read-only. Reports whether the standard Unraid host services are running — samba (SMB shares), nfs, sshd, docker, libvirt (VMs), tailscale — by asking each /etc/rc.d/rc.* script for its status over SSH. Services whose script is absent are reported as not installed. The GraphQL API has no service surface. Covers these daemons only: for individual containers use docker_container_list, for VMs vm_list; to restart, start or stop a service use service_action. Requires SSH (UNRAID_SSH_*). |
| service_actionA | ⚠ Runs |
| unassigned_listA | Read-only. Lists disks that belong to neither the array, a pool, nor the flash drive (cross-referencing lsblk with emhttpd's disks.ini over SSH): model, serial, size, transport, and each partition's filesystem, label, and mount point. Works without the Unassigned Devices plugin. Pass a partition path to unassigned_action to mount or unmount it; for all physical disks with SMART status use disk_list. The GraphQL API has no unassigned-devices surface. Requires SSH (UNRAID_SSH_*). |
| unassigned_actionA | ⚠ Mounts or unmounts an unassigned partition (e.g. /dev/sdz1 from unassigned_list) through the Unassigned Devices plugin's |
| share_createA | ⚠ Creates a user share (and its /mnt/user/ directory) through emhttpd (the same form the web UI submits, via emcmd over SSH) and verifies it by re-reading /boot/config/shares/.cfg. Refuses a name that already exists (use share_edit to change an existing share) and reserved, disk, and pool names. Omitted settings default to highwater allocation and useCache |
| share_editA | ⚠ Changes an existing user share's settings through emhttpd (the web UI's own form, via emcmd over SSH) and verifies by re-reading /boot/config/shares/.cfg. Pass at least one of comment, allocator, useCache, cachePool, smbExport, smbSecurity; omitted ones and every other share setting are passed through unchanged. It cannot rename a share, and it refuses a share that has no config yet (use share_create). Requires |
| share_deleteA | ⚠ Deletes an EMPTY user share's configuration through emhttpd (the web UI's own delete, via emcmd over SSH) and verifies that /boot/config/shares/.cfg is gone. Never deletes files: if /mnt/user/ still contains anything the tool refuses and says where the data lives. Requires |
| docker_statsA | Read-only. Per-container resource usage (CPU %, memory, network IO, block IO), hungriest first. Prefers fresh data from the live WebSocket subscription (subscribe to unraid://live/docker-stats to keep it warm) and falls back to |
| file_readA | Read-only. Returns the last |
| shell_execA | ⚠ Runs an arbitrary shell command on the Unraid host over SSH as the SSH user (typically root, i.e. full control of the server). Requires |
| graphql_queryA | Advanced escape hatch. Runs an arbitrary GraphQL query operation against the Unraid API and returns the raw JSON data, for API fields no dedicated tool covers yet (registration, the flash drive, rclone remotes, Unraid Connect, share details, ...). Prefer the dedicated tools when one exists: they encode server quirks this passthrough does not. Only |
| graphql_mutationA | ⚠ Advanced escape hatch. Runs an arbitrary GraphQL mutation against the Unraid API, reaching write operations no dedicated tool covers yet (server identity, SSH settings, system time, Docker folders, ...). Requires |
| connection_doctorA | Read-only self-test of this MCP server's plumbing: Unraid GraphQL endpoint reachability and latency, API key validity, server and API versions, schema skew between the vendored Unraid schema and the server's API version, optional SSH channel connectivity, client-side rate-limit configuration, and read-only mode. Safe to run anytime; run it first when any other tool misbehaves. It diagnoses the connection, not the server — use system_health for the Unraid server's own condition. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| triage-array-problem | Systematically diagnose an unhealthy array, worst signal first. |
| find-resource-hog | Track down what is eating CPU, memory, or network. |
| safe-container-update | Update one container (or all updatable) with pre- and post-checks. |
| health-report | A readable status report an owner can skim. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| unraid-schema | The vendored Unraid API GraphQL SDL this server was built against — the reference for graphql_query / graphql_mutation. |
| unraid-health | Severity-scored health report (ok / warning / critical) across array, capacity, disks, parity, notifications, UPS, and container updates. |
| unraid-doctor | Self-test of this MCP server's plumbing: GraphQL reachability, API key validity, SSH connectivity, rate-limit config, read-only mode. |
| unraid-live-history | Last hour of CPU/memory/network history from the opt-in in-memory recorder (MCP_METRICS_HISTORY=true), 30-second min/avg/max buckets. |
| unraid-live-parity | Parity check progress pushed over WebSocket as it changes. |
| unraid-live-docker-stats | Per-container CPU/memory/IO samples pushed over WebSocket. |
| unraid-live-metrics | CPU, memory, network, and temperature samples pushed over WebSocket, merged into one resource. |
| unraid-live-ups | UPS status and battery samples pushed over WebSocket. |
| unraid-live-array | Array state and capacity updates pushed over WebSocket. |
| unraid-live-notifications | The most recent server notification, pushed over WebSocket as it arrives. |
TDQS
Scored across 67 tools
Despite 67 tools, descriptions aggressively carve boundaries — nearly every tool names the sibling to use instead (e.g. log_read vs docker_container_logs vs file_read, system_metrics vs metrics_history vs docker_stats), which makes misselection unlikely. A few genuine overlaps remain, notably notification_unread vs notification_archive(direction: unarchive), notification_alerts vs notification_list(unread), and the graphql_query/graphql_mutation escape hatches that shadow every dedicated tool.
Names follow a very predictable snake_case subject_action pattern across domains (docker_container_list/action/remove/update, zfs_snapshot_list/action, notification_list/archive/delete, share_create/edit/delete, disk_list/spin/smart_report). Read-only vs mutating variants are consistently distinguished by verb (list/status/read vs action/create/edit/remove), so intent is inferable from the name alone.
67 tools is far past the point where an agent can hold the surface in mind; the Unraid domain is genuinely broad (array, disks, Docker, VMs, ZFS, shares, notifications, plugins, keys, UPS, SSH fallbacks), so each tool is defensible, but the sheer count plus two universal escape hatches makes the set heavy and costly to navigate. Consolidation (e.g. six notification tools, five system_* tools) would improve selection.
Coverage is unusually thorough: full read/write lifecycles for arrays, disks, parity, shares, Docker, VMs, ZFS, notifications, plugins, API keys, services, and user scripts, with shell_exec/file_read/graphql_* backstops for anything missing. Gaps exist — no Docker container create/clone, no VM create/delete, no VM snapshot revert/delete (deliberate), and no user-account management — but most are workable via the escape hatches with clear caveats.