Better Unraid MCP
v0.4.0Unraid MCP server: manage your array, Docker, VMs, ZFS, logs, and UPS from any MCP client.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
system_info Get Unraid System Info
Read-only. Returns the Unraid server's static identity: OS distro, release, kernel, hostname, and a CPU summary (model, cores, threads); `response_format: detailed` adds platform, boot time, and current server time. For live CPU, memory, and network load use system_metrics; for a scored health verdict use system_health.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
system_metrics Get System Metrics
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).
| Parameter | Type | Description |
|---|---|---|
include_temperature | boolean | Also probe temperature sensors; off by default because a cold probe can take seconds on multi-disk servers. |
response_format | string | `detailed` returns full JSON instead of readable text. |
metrics_history Metric History
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.
| Parameter | Type | Description |
|---|---|---|
topic * | string | Series to return: cpu (percent), memory (percent, usedBytes), or network (rx/tx bytes per second summed over interfaces). |
response_format | string | `detailed` returns full JSON instead of readable text. |
window_minutes | integer | How far back to look, in minutes; the maximum is the recorder's 24-hour retention. |
log_list List Log Files
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).
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
log_read Read Log File
Read-only. Returns lines from a server log file. `path` is a path or name from log_list — validated against that list before reading (reads are limited to filenames the server lists in its log directory; symlinked entries are read as the server resolves them). Omitting `start_line` returns the last `lines` lines; pass `start_line` (1-indexed) to window from there and re-call with the hinted values to page. Counts may drift slightly on rapidly-growing logs; the cap bounds line count, not bytes. Requires LOGS read permission (any viewer-level key). For container logs use docker_container_logs;…
| Parameter | Type | Description |
|---|---|---|
path * | string | Full path or bare file name of a log, exactly as log_list returns it. |
lines | integer | Maximum number of lines to return. |
response_format | string | `detailed` returns full JSON instead of readable text. |
start_line | integer | 1-indexed line to start reading from; omit to get the last `lines` lines of the file. |
array_status Get Unraid Array Status
Read-only. Returns the array state, capacity, current parity-check status and progress, and disk counts; `response_format: detailed` (or structuredContent) adds a row per data, parity, and cache disk: its `id` (what array_disk_action takes), status and temperature, plus usage and error counts where the API reports them. Parity error counts come from parity_history, not this tool. Use disk_list for hardware details (model, SMART, partitions) and system_health for one scored verdict.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
array_action Start or Stop the Unraid Array
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 `confirm: true`; stop additionally requires `acknowledge_risk: true`. The mutation cannot report the resulting state — run array_status afterward to confirm (state reads may lag a few seconds). Requires an Unraid API key with ADMIN role. Encrypted arrays cannot be started by this tool (no decryption inputs) — use the web UI.
| Parameter | Type | Description |
|---|---|---|
action * | string | `start` brings the array online; `stop` takes every share, Docker container, and VM offline until it is started again. |
acknowledge_risk | boolean | Set `true` only after the user accepts the outage; needed with `confirm` for `stop` (`start` needs only `confirm`). |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
array_disk_action Array Disk Operations
⚠ 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 `confirm: true` AND `acknowledge_risk: true`. For mount, unmount, and clear_statistics, `id` is the disk row's `id` from array_status with `response_format: detailed` (its `disks`, `parities`, and `caches` rows). The API does not document which id `add` expects, so conf…
| Parameter | Type | Description |
|---|---|---|
action * | string | `add` puts a disk in the array (array must be STOPPED); `mount`, `unmount`, and `clear_statistics` need a STARTED array. |
id * | string | Unraid API id, sent unchanged. For `mount`, `unmount` and `clear_statistics`, use the disk's `id` from array_status (`response_format: detailed`). For `add`, confirm the exact disk with the user first… |
acknowledge_risk | boolean | Set `true` only after the user accepts the risk; needed with `confirm` for every action. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
slot | integer | Array slot number to put the disk in; optional, and only accepted with `add`. |
parity_history Get Unraid Parity Check History
Read-only. Returns past parity checks, newest first (date, status, error count, speed; `response_format: detailed` adds duration and whether the check was correcting). Use array_status for a check that is running now and parity_check to start or control one.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many of the most recent checks to return. |
response_format | string | `detailed` returns full JSON instead of readable text. |
parity_check Control the Parity Check
Starts, pauses, resumes, or cancels a parity check. `action: "start"` accepts `correct` (true = write corrections to parity, like the web UI checkbox; default false = read-only check). Requires `confirm: true`. The mutations return no usable status — run array_status afterward to confirm (status reads may lag a few seconds); pause/resume/cancel with no check running may be accepted with no effect. Requires an Unraid API key with ADMIN role. Behavior validated against Unraid API v4.35.0 (upstream marks these mutations WIP).
| Parameter | Type | Description |
|---|---|---|
action * | string | `start` begins a check (refused while one is running); `pause`, `resume`, and `cancel` act on the running check. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
correct | boolean | Only with `start`: `true` writes corrections to parity; omitted or `false` runs a read-only check. |
response_format | string | `detailed` returns full JSON instead of readable text. |
disk_list List Unraid Physical Disks
Read-only. Lists every physical disk with model, size, SMART status, and temperature; `response_format: detailed` adds the device path (/dev/sdX), vendor, serial, interface, spin state, and partitions. Use array_status for each disk's role and health in the array, disk_smart_report for one disk's full SMART attributes, and unassigned_list for disks outside the array and pools.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
docker_autostart_set Set Docker Container Autostart
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 `confirm: true`. Needs Unraid OS 7.3+ (ENABLE_NEXT_DOCKER_RELEASE).
| Parameter | Type | Description |
|---|---|---|
changes * | array | Containers whose autostart setting to change; unlisted containers keep theirs. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
persist | boolean | `true` also writes the WebGUI's saved prefs, which irreversibly reorders the Docker-page container list; leave it false unless that is wanted. |
response_format | string | `detailed` returns full JSON instead of readable text. |
docker_container_action Start / Stop / Restart / Pause / Unpause a Docker Container
Changes a container's run state (start | stop | pause | unpause | restart). restart uses the API's native restart mutation (API 4.37+). Requires `confirm: true`. Pass the container `id` from docker_container_list; names often work but the API's post-action read-back is unreliable with names. stop/pause/restart disrupt a running container; start/unpause are restorative but still gated for consistency. To delete a container use docker_container_remove; to change what starts at boot use docker_autostart_set.
| Parameter | Type | Description |
|---|---|---|
action * | string | Run-state change to apply; `unpause` resumes a paused container. |
id * | string | Container id from docker_container_list (preferred over a name). |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
docker_container_list List Docker Containers
Read-only. Lists Docker containers with state, image, whether an update is available, and the container `id` that the other docker_container_* tools and docker_autostart_set take (each concise line ends with `[id: …]`). Use `name` to filter by a container-name substring. For live CPU/memory use docker_stats; for a container's output use docker_container_logs.
| Parameter | Type | Description |
|---|---|---|
name | string | Case-insensitive substring of the container name; omit to list every container. |
response_format | string | `detailed` returns full JSON instead of readable text. |
docker_container_logs Get Docker Container Logs
Read-only. Returns the most recent log lines for a container. To page, re-pass the returned `cursor` as `since`; the boundary line repeats, so de-dupe. The API can miss containers that log only to stderr; when SSH is configured, this tool automatically falls back to `docker logs` for those (plain text in both formats). For the Unraid server's own log files use log_read instead.
| Parameter | Type | Description |
|---|---|---|
id * | string | Container id from docker_container_list. |
response_format | string | `detailed` returns full JSON instead of readable text. |
since | string | Inclusive lower bound as an ISO-8601 timestamp; pass a previous response's `cursor` to page forward. |
tail | integer | Number of most recent log lines to return. |
docker_container_remove Remove Docker Container
Permanently deletes a container; force-kills it if running (no graceful stop); irreversible. `with_image` also attempts to delete the image (best-effort — may report success without deleting a shared/in-use image). Requires `confirm: true`. Needs Unraid OS 7.3+. To stop a container and keep it, use docker_container_action instead.
| Parameter | Type | Description |
|---|---|---|
id * | string | Container id from docker_container_list. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
with_image | boolean | `true` also attempts to delete the container's image (best-effort). |
docker_container_update Update Docker Container(s)
Pulls the latest image(s) and recreates container(s). `ids` updates those containers (force-pull regardless of update-available); `all` updates every container with a known-available update (returns none if the cache is cold — not an error). Updating an orphaned container with no template is a silent no-op. Requires `confirm: true`. Needs Unraid OS 7.3+. docker_container_list shows which containers have an update available.
| Parameter | Type | Description |
|---|---|---|
all | boolean | `true` updates every container with a known available update; cannot be combined with `ids`. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
ids | array | Container ids from docker_container_list to update; cannot be combined with `all`. |
response_format | string | `detailed` returns full JSON instead of readable text. |
docker_network_list List Docker Networks
Read-only. Lists the Docker networks defined on the server: name, driver, scope, and IPv6/internal flags (`detailed` adds id and attachable). It does not show which containers are attached to each network; for port clashes between containers use docker_port_conflicts.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
docker_port_conflicts List Docker Port Conflicts
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.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
vm_list List Virtual Machines
Read-only. Lists virtual machines with their run state (RUNNING, SHUTOFF, PAUSED, …). Use `name` to filter by a VM-name substring. Call it before vm_action to get a VM's name, state and id; each concise line ends with the VM's `[id: …]`, which vm_action takes when several VMs share a name. For a VM's snapshots use vm_snapshot_list.
| Parameter | Type | Description |
|---|---|---|
name | string | Case-insensitive substring of the VM name; omit to list every VM. |
response_format | string | `detailed` returns full JSON instead of readable text. |
vm_action Control a Virtual Machine
Changes a VM's run state. `action`: start/resume (bring up / un-pause), stop (graceful ACPI shutdown — waits ~10s then force-kills if the guest doesn't respond), reboot (graceful — fails if the guest ignores ACPI within ~10s; use forceStop then start), pause (freeze in memory), or forceStop/reset (⚠ ungraceful hard kill / hard kill-and-cold-boot that can corrupt the guest filesystem). `vm` accepts a VM name or id from vm_list. Requires `confirm: true`; forceStop and reset additionally require `acknowledge_risk: true`. The configured Unraid API key must have VM permission.
| Parameter | Type | Description |
|---|---|---|
action * | string | Run-state change to apply; `forceStop` and `reset` are the ungraceful ones. |
vm * | string | VM name (exact, case-insensitive) or id from vm_list; pass the id when several VMs share a name. |
acknowledge_risk | boolean | Set `true` only after the user accepts possible guest filesystem corruption; needed for `forceStop` and `reset`, ignored otherwise. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
notification_overview Notification Overview
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.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
notification_list List Notifications
Read-only. Lists notifications of one `type` (`unread` or `archive`), newest first. Optional `importance` filter (alert/warning/info); paginate with `offset` and `limit`. The source of truth for which notifications exist and for the ids that notification_archive, notification_unread and notification_delete take; each concise line ends with the notification's `[id: …]`. For just the unread warnings and alerts use notification_alerts; for counts only use notification_overview.
| Parameter | Type | Description |
|---|---|---|
type * | string | Which bucket to list: unread notifications or archived ones. |
importance | string | Only return notifications of this importance; omit for all levels. |
limit | integer | Maximum number of notifications to return per page. |
offset | integer | Number of notifications to skip, for paging. |
response_format | string | `detailed` returns full JSON instead of readable text. |
notification_alerts Notification Alerts
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 `[id: …]` for notification_archive or notification_delete.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
notification_archive Archive or Unarchive Notifications
Archive (hide) or unarchive (restore to unread) notifications — reversible; nothing is deleted (to remove notifications permanently use notification_delete). Target specific `ids` (from notification_list — archive expects currently-unread ids, unarchive expects archived ids) or `all: true` (optionally one `importance`). Reports the action only: the API swallows per-id failures, so an unknown or wrong-bucket id silently succeeds — verify with notification_list.
| Parameter | Type | Description |
|---|---|---|
direction * | string | `archive` moves unread notifications into the archive; `unarchive` moves archived ones back to unread. |
all | boolean | `true` moves every notification in the source bucket. Use instead of `ids`, never with it. |
ids | array | Notification ids from notification_list, taken from the bucket being moved out of. Use instead of `all`, never with it. |
importance | string | Limits an `all: true` move to one importance level; rejected alongside `ids`. |
response_format | string | `detailed` returns full JSON instead of readable text. |
notification_unread Mark Notification Unread
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 (`type: unread`) or notification_alerts. To restore several ids or everything at once use notification_archive with `direction: unarchive`. Reversible via notification_archive. Get ids from notification_list.
| Parameter | Type | Description |
|---|---|---|
id * | string | Id of the archived notification to mark unread, from notification_list with `type: archive`. |
notification_delete Delete Notifications
⚠ Permanently deletes notifications (irreversible): one by id, or every archived one. Requires `confirm: true`. Reports the resulting counts. To hide notifications without losing them use notification_archive instead.
| Parameter | Type | Description |
|---|---|---|
scope * | string | `one` deletes a single notification (needs `id` and `type`); `all_archived` deletes every archived notification. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
id | string | Notification id from notification_list. Required for `scope: one`; rejected with `all_archived`. |
response_format | string | `detailed` returns full JSON instead of readable text. |
type | string | Bucket the notification was listed under. Required for `scope: one`; rejected with `all_archived`. |
notification_create Create Notification
Creates a notification in Unraid's notification center, e.g. to record the outcome of a task for whoever runs the server. `mode: always` always creates; `mode: if_unique` skips creation when an equivalent unread one already exists, so repeated checks do not pile up duplicates. `importance`: alert/warning/info. Reports the created title and importance, or that creation was skipped; `response_format: detailed` returns the created notification with its id. To hide or remove existing notifications use notification_archive or notification_delete.
| Parameter | Type | Description |
|---|---|---|
description * | string | Message body with the details; reads return it only in `detailed` format. |
importance * | string | Severity; `warning` and `alert` also surface in notification_alerts while unread. |
mode * | string | `always` creates unconditionally; `if_unique` creates only when no equivalent unread notification exists. |
subject * | string | One-line subject shown next to the title in listings, e.g. what the event concerns. |
title * | string | Short title naming the event (Unraid's 'event' field), e.g. `Backup done`. |
link | string | Optional link attached to the notification, e.g. the web UI path `/Dashboard`. |
response_format | string | `detailed` returns full JSON instead of readable text. |
notification_recalculate Recalculate Notification Overview
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.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
plugin_list List Plugins
Read-only. Lists installed plugins of both kinds: API (npm) plugins and native OS `.plg` plugins. Use it to check the result of plugin_add, plugin_remove or plugin_install_plg. `plugins` are the API's active/loaded set (config-declared, installed, and schema-valid) captured as a boot snapshot that changes only after an API restart; `installedUnraidPlugins` are the live OS `.plg` filenames. An empty list is NOT a definitive zero — it can also mean safe mode (api plugins) or an unreadable plugin directory (OS `.plg`). Requires CONFIG read permission (any viewer-level key).
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
plugin_add Add API Plugins
⚠ Installs one or more Unraid API plugins by npm package name (`names`). This runs `npm install`, which executes the package's lifecycle scripts on the server (supply-chain / code-execution risk), then RESTARTS the Unraid API to load them — your connection will drop briefly. `names` must be bare or scoped package names (no URLs, git refs, paths, or version suffixes). Requires `confirm: true` and a key with CONFIG write permission (UPDATE_ANY). Reports submission; verify with plugin_list after the API reconnects. For native OS plugins (.plg files) use plugin_install_plg instead.
| Parameter | Type | Description |
|---|---|---|
names * | array | npm package names of Unraid API plugins, bare or scoped (`@scope/name`); versions, URLs, git refs and paths are refused. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
plugin_remove Remove API Plugins
⚠ Uninstalls one or more Unraid API plugins by npm package name (`names`, as shown by plugin_list) and RESTARTS the Unraid API to unload them — your connection will drop briefly. Only plugins currently in the API config are affected (unknown names are a no-op); it does not uninstall OS `.plg` plugins (the `installedUnraidPlugins` entries in plugin_list). `names` must be bare or scoped package names. Requires `confirm: true` and a key with CONFIG write permission (DELETE_ANY). Reports submission; verify with plugin_list after the API reconnects.
| Parameter | Type | Description |
|---|---|---|
names * | array | npm package names of Unraid API plugins, bare or scoped (`@scope/name`); versions, URLs, git refs and paths are refused. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
plugin_install_plg Install Native Unraid Plugin (.plg)
⚠ 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 `confirm: true` AND `acknowledge_risk: true`. Returns a queued/running operation without waiting for the install to finish; verify with plugin_list and the syslog (log_read). For npm-based API plugins use plugin_add instead.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the plugin's `.plg` file; must end in `.plg`. |
acknowledge_risk | boolean | Set `true` only after the user accepts that the `.plg` installer runs arbitrary code as root; needed on every call. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
forced | boolean | Force installation even when the plugin is already present; when omitted the Unraid API defaults to forcing. |
name | string | Optional human-readable plugin name, used by the Unraid API for logging. |
apikey_list List API Keys
Read-only. Lists the Unraid API keys configured on the server: name, id, roles, and creation date, plus description and permissions with `response_format: detailed`. Key VALUES are never selected or returned. Use it to get the key ids that apikey_manage takes. Requires an API key with permission to read API keys (typically ADMIN).
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
apikey_manage Manage API Keys
⚠ 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 `confirm: true` AND `acknowledge_risk: true`. Use apikey_list (read-only) for ids and to inspect keys.
| Parameter | Type | Description |
|---|---|---|
action * | string | `create` a key, `update` whichever of name/description/roles are given, `add_role`/`remove_role` one role on a key, or `delete` keys. |
acknowledge_risk | boolean | Set `true` only after the user accepts changing the credentials that control server access; needed for every action. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
description | string | Free-text note stored with the key; used by `create` and `update`. |
id | string | Key id from apikey_list. Required for `update`, `add_role` and `remove_role`. |
ids | array | Ids of the keys to delete, from apikey_list. Required for `delete`; unused otherwise. |
name | string | Key name. Required for `create`; optional new name for `update`. |
roles | array | ADMIN = full access, VIEWER = read-only, GUEST = own profile only, CONNECT = Unraid Connect internal. Exactly one for add_role/remove_role. |
ups_status Get UPS Status
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 i…
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
mover_status Mover Status
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.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
mover_action Start or Stop the Mover
Starts or stops the mover (the process migrating data from the cache pool to the array) via `/usr/local/sbin/mover` over SSH. Requires `confirm: true` and SSH to be configured (UNRAID_SSH_* variables). ⚠ stop interrupts in-flight transfers and can leave partial files on the destination. Check mover_status first; progress appears in the syslog.
| Parameter | Type | Description |
|---|---|---|
action * | string | `start` runs the mover now; `stop` halts a running one. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
system_power Reboot or Shut Down the Server
⚠ Reboots (`/sbin/reboot`) or shuts down (`/sbin/poweroff`) the entire Unraid server over SSH. Unraid performs a clean array stop on the way down. Every share, Docker container, and VM goes offline; shutdown requires physical/WoL access to power back on. Requires `confirm: true` AND `acknowledge_risk: true`, plus SSH (UNRAID_SSH_* variables). The SSH connection dropping after the command is expected. `response_format: detailed` returns JSON with `requested`, `command` and `outcome` (`initiated`, or `issued-unverified` when the connection dropped mid-command). To take only the array offline,…
| Parameter | Type | Description |
|---|---|---|
action * | string | `reboot` restarts the server; `shutdown` powers it off until it is turned on physically or by wake-on-LAN. |
acknowledge_risk | boolean | Set `true` only after the user accepts every share, container, and VM going offline; needed with `confirm` for both actions. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
system_health System Health Rollup
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.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
disk_spin Spin Disk Up/Down
Spins a disk up or down over SSH. Pass exactly one target: array slots and `cache*` pools (`disk`: disk1, parity, cache, ...) go through emhttpd (`emcmd`) so Unraid's tracked spin state stays consistent; unassigned devices (`device`: /dev/sdX) use `sdspin` (an hdparm wrapper — ATA only, SAS needs the community plugin). Requires `confirm: true` and SSH (UNRAID_SSH_*). Spinning down interrupts nothing but adds spin-up latency on next access. Verify the result with disk_list (`response_format: detailed` shows the spin state).
| Parameter | Type | Description |
|---|---|---|
action * | string | Whether to spin the target disk up or down. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
device | string | Path /dev/sdX of an unassigned device (see unassigned_list); use this instead of `disk`. NVMe paths are rejected. |
disk | string | Slot name: diskN, parity, parity2, or a pool named cache or cacheN (other pool names are rejected); use this instead of `device`. |
disk_smart_report Deep SMART Report
Read-only. Full smartctl attribute report for one disk (`device`: /dev/sdX or /dev/nvmeXnY) over SSH, returned as raw text — the deep view behind disk_list's summary SMART status. smartctl's informational exit flags are tolerated; the report is returned whenever produced, keeping only the last 30000 characters if longer. Get device paths from disk_list (`response_format: detailed`). Requires SSH (UNRAID_SSH_*).
| Parameter | Type | Description |
|---|---|---|
device * | string | Block device path, /dev/sdX or /dev/nvmeXnY: the `device` field of disk_list's detailed output. |
vm_snapshot_list List VM Snapshots
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.
| Parameter | Type | Description |
|---|---|---|
vm * | string | VM name, passed to `virsh` as the libvirt domain. |
response_format | string | `detailed` returns full JSON instead of readable text. |
vm_snapshot_create Create VM Snapshot
⚠ Creates an EXTERNAL disk snapshot of a VM via `virsh snapshot-create-as --atomic --disk-only` over SSH — the same external-snapshot flow Unraid 7 uses (internal snapshots fail on raw disks and OVMF VMs). Adds overlay files to the VM's storage chain. Requires `confirm: true` AND `acknowledge_risk: true`. Revert/delete are deliberately not offered (chain-corruption risk); use the Unraid VM UI for those. Requires SSH (UNRAID_SSH_*) and the VM service enabled; check the result with vm_snapshot_list.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the new snapshot; letters, digits, `.`, `_` and `-` only. |
vm * | string | VM name, passed to `virsh` as the libvirt domain. |
acknowledge_risk | boolean | Set `true` only after the user accepts that overlay files stay in the VM's disk chain until merged in the Unraid UI; needed on every call. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
user_script_list List User Scripts
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 `<name>/script` in that directory with file_read. Reports clearly when the plugin is not installed, and separately (as an empty list, not an error) when it is installed but has no scripts.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
user_script_run Run a User Script
⚠ Runs one User Scripts plugin script by name over SSH — user scripts are arbitrary code, executed here as the SSH user (typically root). Requires `confirm: true` AND `acknowledge_risk: true`. The flash drive is mounted non-executable, so the script is copied to a temp file (CRs stripped) and run via bash, exactly like the plugin's own runner. Optional `args`: each item becomes exactly one positional argument ($1, $2, ...), passed literally, never as a shell expression; not for secrets. Get names from user_script_list; a non-zero exit is reported faithfully, not as a tool error. Waits for…
| Parameter | Type | Description |
|---|---|---|
name * | string | Script name exactly as returned by user_script_list (its folder name). |
acknowledge_risk | boolean | Set `true` only after the user accepts running arbitrary code as the SSH user; needed on every call. |
args | array | Optional positional arguments for the script, in order. Every item becomes exactly one argument ($1, $2, ...) passed literally, not a shell expression: nothing in it is expanded or run. Omit for no ar… |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
timeout_seconds | integer | Seconds to wait for the script; on timeout the call fails but the script may keep running on the host. |
gpu_metrics GPU Metrics
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_*).
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
process_list Top Processes
Read-only. The host's busiest processes by CPU or memory via `ps` over SSH: pid, CPU %, memory %, elapsed run time, and command name (no arguments) — for finding what's eating resources when docker_stats doesn't explain the load. Requires SSH (UNRAID_SSH_*).
| Parameter | Type | Description |
|---|---|---|
count | integer | How many of the top-ranked processes to return. |
response_format | string | `detailed` returns full JSON instead of readable text. |
sort_by | string | Rank processes by CPU share or by memory share, highest first. |
zfs_status ZFS Pool Status
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 `zpool status` through shell_exec for those). Reports clearly when ZFS is not available. ZFS ships with Unraid 6.12+.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
zfs_dataset_list List ZFS Datasets
Read-only. Lists ZFS datasets with used/available space and mountpoints over SSH; optional `pool` limits to one pool (recursive). `detailed` returns exact byte counts plus referenced size. Use the returned names as `dataset` in zfs_snapshot_list and zfs_snapshot_action; for pool health use zfs_status instead. Reports clearly when ZFS is not available.
| Parameter | Type | Description |
|---|---|---|
pool | string | Pool name from zfs_status (or a pool/dataset path) to list recursively; omit for every pool. |
response_format | string | `detailed` returns full JSON instead of readable text. |
zfs_snapshot_list List ZFS Snapshots
Read-only. Lists ZFS snapshots (full `dataset@snapshot` name, space used, creation time) over SSH; optional `dataset` limits to one dataset (recursive). Split a name at `@` to get the `dataset` and `snapshot` arguments for zfs_snapshot_action. For a VM's libvirt snapshots use vm_snapshot_list instead. Reports clearly when ZFS is not available.
| Parameter | Type | Description |
|---|---|---|
dataset | string | Pool or pool/dataset path from zfs_dataset_list; lists its snapshots and its children's. Omit for all. |
response_format | string | `detailed` returns full JSON instead of readable text. |
zfs_snapshot_action ZFS Snapshot Actions
⚠ Creates, destroys, or rolls back a ZFS snapshot (`dataset` + `snapshot` name) over SSH; never recursive, so child datasets are untouched. destroy permanently deletes the rollback point; rollback DISCARDS all changes made after the snapshot and only works against the most recent snapshot (older ones fail with zfs's own error — deliberate: no -r). Every action, including create, requires `confirm: true` AND `acknowledge_risk: true`. Check existing snapshots with zfs_snapshot_list first; for VM disk snapshots use vm_snapshot_create instead.
| Parameter | Type | Description |
|---|---|---|
action * | string | `create` takes a new snapshot, `destroy` deletes one permanently, `rollback` discards every dataset change made after it. |
dataset * | string | Dataset the snapshot belongs to, as pool or pool/dataset from zfs_dataset_list (no `@`). |
snapshot * | string | Snapshot short name, the part after `@` (existing ones: zfs_snapshot_list); letters, digits, and . _ : - only. |
acknowledge_risk | boolean | Set `true` only after the user accepts the risk; needed with `confirm` for every action, including `create`. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
flash_backup Back Up Flash Device
⚠ 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); `full: true` archives all of /boot (several GB, includes the OS images). Writes /mnt/user/<share>/flash-backups/flash-backup-<scope>-<UTC timestamp>.tar.gz, verifies it with `tar -tzf`, and reports size and entry count; `keep: N` keeps the newest N archives of the scope just written (including the new one), deletes older ones of that scope only (a config backup never prunes full archives, nor the reverse), and lists exactly what it removed. Th…
| Parameter | Type | Description |
|---|---|---|
share * | string | Existing user share to write the archive into: the plain name from share_list, not a path. Spaces are fine; quotes, `$`, backticks, `/`, and a leading `-` are refused. |
acknowledge_risk | boolean | Set `true` only after the user accepts that the archive holds the license key, API keys, and passwords; needed on every call. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
full | boolean | `true` archives all of /boot; omitted or `false` archives /boot/config only. |
keep | integer | Newest archives of this call's scope (config or full) to keep in the share's flash-backups folder, counting the new one; older archives of that scope are deleted and the other scope's are never touche… |
response_format | string | `detailed` returns full JSON instead of readable text. |
service_list List Host Services
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_*).
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
service_action Restart / Start / Stop a Host Service
⚠ Runs `/etc/rc.d/rc.<service> restart|start|stop` over SSH for samba, nfs, sshd, docker, libvirt, or tailscale, then reads the status back and reports it (never assumes success). `restart` is the normal use. `stop` additionally requires `allow_stop: true` because stopping samba/nfs cuts every client off their shares (and stopping sshd cuts off this very tool); stopping docker or libvirt is refused outright — use array_action or the web UI. Requires `confirm: true` AND `acknowledge_risk: true`, plus SSH. Check current state with service_list.
| Parameter | Type | Description |
|---|---|---|
action * | string | rc.d verb to run. `stop` also needs `allow_stop: true` and is always refused for docker and libvirt. |
service * | string | Host service to control (samba = SMB shares, libvirt = VMs); current state comes from service_list. |
acknowledge_risk | boolean | Set `true` only after the user accepts the service being interrupted for its clients; needed for every action. |
allow_stop | boolean | Set `true` only after the user accepts every client of the service being cut off; needed for `stop`. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
unassigned_list List Unassigned Disks
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_*).
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
unassigned_action Mount / Unmount an Unassigned Partition
⚠ Mounts or unmounts an unassigned partition (e.g. /dev/sdz1 from unassigned_list) through the Unassigned Devices plugin's `rc.unassigned mount|umount` over SSH, then verifies the mount point with lsblk. Mounting may run the plugin's device script and share the partition over SMB per the plugin's settings. Refuses partitions of array/pool/flash disks, and refuses entirely when the plugin is not installed (no raw mount fallback). Requires `confirm: true` AND `acknowledge_risk: true`, plus SSH.
| Parameter | Type | Description |
|---|---|---|
action * | string | `mount` mounts the partition under /mnt/disks; `unmount` detaches it, so anything still writing to it fails. |
device * | string | Partition path from unassigned_list, e.g. /dev/sdz1 or /dev/nvme1n1p1 (a partition, not a whole disk). |
acknowledge_risk | boolean | Set `true` only after the user accepts the risk; needed with `confirm` for both `mount` and `unmount`. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
docker_stats Docker Container Stats
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 `docker stats --no-stream` over SSH; the response says which source served it (live rows are labelled by container id, SSH rows by name). The SSH path requires UNRAID_SSH_* configuration. For host-wide CPU/memory use system_metrics; for the host's busiest processes use process_list.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |
file_read Read Host File
Read-only. Returns the last `lines` lines of any absolute file path on the Unraid host over SSH, reaching files the GraphQL API cannot (e.g. /boot/logs/syslog-previous, /proc/cpuinfo). Optional `pattern` (extended regex) filters server-side via grep before the tail, so searching huge logs stays cheap. Prefer log_read for any log that log_list returns: it needs no SSH and pages from any line. file_read only tails; output beyond 30000 characters is cut from the start, so the newest lines are kept (detailed JSON then reports `truncated` and the characters dropped). Requires SSH to be configured (…
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path of the file on the Unraid host (must start with `/`). |
lines | integer | Lines to return from the end of the file, or the last N matching lines when `pattern` is set. |
pattern | string | Extended regex (grep -E); only matching lines are returned, filtered on the host before the tail. |
response_format | string | `detailed` returns full JSON instead of readable text. |
shell_exec Run Shell Command
⚠ 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 `confirm: true` on every call; without it the tool refuses and nothing runs. Prefer a dedicated tool when one covers the task, and use file_read for plain file reads (it is ungated). Non-zero exit codes are reported as results, not errors; output beyond 30000 characters is cut from the start, so the newest lines of stdout and stderr are kept (detailed JSON then reports `truncated` and the characters dropped). Requires SSH to be configured (UNRAID_SSH_* env…
| Parameter | Type | Description |
|---|---|---|
command * | string | Command line run by the host's shell as the SSH user; pipes work, e.g. `dmesg | tail -n 50`. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
response_format | string | `detailed` returns full JSON instead of readable text. |
timeout_seconds | integer | Seconds to wait for the command; on timeout the call fails but the remote process may keep running. |
graphql_query Raw GraphQL Query
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 `query` operations are accepted; mutations must go through graphql_mutation and subscriptions are unsupported. Every document is validated against the vendored schema before it is sent (typos get did-you-mean hints); pass `dry_run: true` to validat…
| Parameter | Type | Description |
|---|---|---|
query * | string | GraphQL document containing exactly one `query` operation. |
dry_run | boolean | `true` validates the document against the vendored schema and returns without sending it. |
variables | object | Values for the variables the document declares, keyed by name without the `$`. |
graphql_mutation Raw GraphQL Mutation
⚠ 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 `confirm: true` on every call, and additionally `acknowledge_risk: true` when the mutation selects a known-dangerous field; without them the tool refuses and never touches your server. Prefer the dedicated gated tools when one exists: they encode server quirks (stale read-backs, replace-vs-merge semantics) this passthrough does not, so verify results with a follow-up read. Only…
| Parameter | Type | Description |
|---|---|---|
mutation * | string | GraphQL document containing exactly one `mutation` operation. |
acknowledge_risk | boolean | Set `true` only after the user accepts the risk; needed when the mutation selects `setState`, `forceStop`, `reset` or `configureUps`, ignored otherwise. |
confirm | boolean | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. |
dry_run | boolean | `true` validates the document against the vendored schema and returns without sending it; no `confirm` needed. |
variables | object | Values for the variables the document declares, keyed by name without the `$`. |
connection_doctor Connection Doctor
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.
| Parameter | Type | Description |
|---|---|---|
response_format | string | `detailed` returns full JSON instead of readable text. |