Skip to main content
Glama

Better Unraid MCP

Monitor and manage your Unraid server in plain English, from any MCP client.

npm version CI Coverage License: MIT Node.js 20+

MCP protocol 2026-07-28 MCP Registry Docker Claude Desktop bundle

Features · Quick start · Tools · MCP features · Configuration · HTTP transport · Security · FAQ · Development

Better Unraid MCP is an open-source Unraid MCP server. It connects Claude Desktop, Claude Code, Codex, Gemini CLI, or any other Model Context Protocol client to the Unraid GraphQL API, so you can ask things like "why is my array degraded?", "tail the syslog", or "restart the Plex container".

Features

Ask a plain question and get a real answer from your server. "Why is my array degraded?" turns into calls to array_status and disk_list, and you find out which disk is unhappy and what SMART thinks of it without opening an SSH session or clicking through WebGUI tabs.

The 67 tools cover most of what you would normally do over SSH or in the WebGUI:

  • Diagnose problems in one conversation: unread alerts, CPU and memory pressure, network errors, disk temperatures, SMART health

  • Read any log on the server: list them all, tail the syslog, or page through the middle of a huge file

  • Manage Docker: container status and logs, per-container resource usage, start and stop, image updates, port conflict detection, boot autostart order

  • Control VMs through libvirt, from a graceful shutdown to a hard reset

  • Run the array: start or stop it, manage parity checks, review parity history, check the mover

  • Triage notifications: read, archive, and clear the alerts you have been putting off

  • Watch the UPS during an outage: battery charge, runtime estimate, load

  • Go past the API when you need to (optional, via SSH): read any file on the host, such as /boot/logs/syslog-previous, or run a confirmed one-off command

  • Work with ZFS: pool health, datasets, snapshots (create, destroy, rollback), and ARC usage

  • Reach the host when the API can't: processes, GPU metrics, disk spin, SMART deep reports, User Scripts, VM snapshots

  • Manage the platform itself: API keys, native .plg plugin installs, mover control, reboot and shutdown

  • Watch things live: WebSocket-fed resources for parity progress, Docker stats, system metrics (CPU, memory, network, temperature), UPS, array state, notifications, and log following (unraid://live/*, unraid://logs/{path})

  • Reach the rest of the API with raw graphql_query and a confirm-gated graphql_mutation while dedicated tools catch up

The tools are deliberately paranoid. A destructive tool refuses to run unless the request includes confirm: true, so a stray sentence in a chat can't stop your array. The operations that can really hurt (stopping the array, hard-killing a VM, rebooting the host) also need acknowledge_risk: true. If your client supports MCP elicitation, you get an interactive confirmation prompt instead. Every read works with a viewer-level API key, and MCP_READ_ONLY=true takes every state-changing tool out of the listing.

You don't install anything on the Unraid server. The MCP server runs on your machine, talks to Unraid's built-in GraphQL API with one API key, and starts with a single npx command.

Related MCP server: mcp-homelab

Quick start

1. Create an Unraid API key

On your Unraid server (7.2 or newer), go to Settings > Management Access > API Keys and create a key. Or from the Unraid terminal:

unraid-api apikey --create
IMPORTANT

The key controls your server, so treat it like a password and give it the least privilege you need. A viewer-level key is enough for every read-only tool.

2. Add the server to your MCP client

claude mcp add better-unraid \
  -e UNRAID_API_URL=https://tower.local/graphql \
  -e UNRAID_API_KEY=your-api-key \
  -- npx -y better-unraid-mcp@latest

Add an entry to the mcpServers object in your claude_desktop_config.json:

{
  "mcpServers": {
    "better-unraid": {
      "command": "npx",
      "args": ["-y", "better-unraid-mcp@latest"],
      "env": {
        "UNRAID_API_URL": "https://tower.local/graphql",
        "UNRAID_API_KEY": "your-api-key"
      }
    }
  }
}
codex mcp add better-unraid \
  --env UNRAID_API_URL=https://tower.local/graphql \
  --env UNRAID_API_KEY=your-api-key \
  -- npx -y better-unraid-mcp@latest

Or add a server table to ~/.codex/config.toml:

[mcp_servers.better-unraid]
command = "npx"
args = ["-y", "better-unraid-mcp@latest"]
env = { UNRAID_API_URL = "https://tower.local/graphql", UNRAID_API_KEY = "your-api-key" }

Add an entry to the mcpServers object in ~/.gemini/settings.json:

{
  "mcpServers": {
    "better-unraid": {
      "command": "npx",
      "args": ["-y", "better-unraid-mcp@latest"],
      "env": {
        "UNRAID_API_URL": "https://tower.local/graphql",
        "UNRAID_API_KEY": "your-api-key"
      }
    }
  }
}

If your server uses a self-signed TLS certificate on the LAN, also set UNRAID_ALLOW_SELF_SIGNED=true. To turn on the SSH-backed tools (reading files like /boot/logs/syslog-previous, ZFS, running one-off commands, and the rest of the tools marked SSH below), also pass the UNRAID_SSH_* variables described under Configuration. @latest keeps you on the newest release; pin a version (for example better-unraid-mcp@0.1.3) if you want fully predictable behavior.

Other ways to install

All of them run the same server, and none of them install anything on the Unraid box.

Option

Details

Claude Desktop, one click

Download better-unraid-mcp-<version>.mcpb from the latest release and open it. Claude Desktop asks for the URL and API key.

Claude Code plugin marketplace

claude plugin marketplace add mswdev/better-unraid-mcp, then claude plugin install better-unraid@better-unraid-mcp. The plugin reads UNRAID_API_URL and UNRAID_API_KEY from your environment.

Docker (remote HTTP transport)

ghcr.io/mswdev/better-unraid-mcp. See Docker.

MCP Registry

Listed as io.github.mswdev/better-unraid-mcp for clients that browse the registry.

Cautious quickstart (read-only)

Not ready to let a model touch anything? Add MCP_READ_ONLY=true to the environment above and the server registers only the read-only tools. The state-changing tools aren't refused at call time; they never appear at all. Pair that with a VIEWER-role API key and nothing in this server can change your machine.

3. Verify your setup

Before wiring up a client, run the built-in doctor with the same environment:

UNRAID_API_URL=https://tower.local/graphql UNRAID_API_KEY=... npx better-unraid-mcp doctor

It prints one line per check (GraphQL reachability and versions, schema skew against the server's API version, SSH when configured, rate limiting, and read-only mode) and exits non-zero when something is broken:

✓ Reachable in 12 ms — Unraid 7.3.2, API 4.37.4+ad268301, online=true.
✓ Vendored schema matches the server API (4.37.4 vs 4.37.4+ad268301).
⚠ SSH: not configured (optional). Host tools (...) are unavailable; set UNRAID_SSH_* to enable them.
✓ Client-side rate limiting active: 90 request burst, 9/s refill.
✓ read-only mode: disabled — mutating tools are registered (each behind its confirm gate).
doctor: OK

4. Try it

Ask your client:

"What's the status of my Unraid array?"

Tools

Read-only tools never change anything. Destructive tools always require confirm: true; without it they refuse and leave your server alone.

Speed and safety

The SSH channel is one kept-alive connection: it connects lazily, sends keepalive probes, reconnects on its own, and closes after UNRAID_SSH_IDLE_SECONDS of idle time, so commands don't pay for a new handshake each time. GraphQL requests reuse a keep-alive HTTP agent and have a hard 30-second timeout, and idempotent queries get a small jittered retry on transient failures. The busiest reads (system_metrics, array_status, docker_container_list) come from a 5-second snapshot cache, and detailed output includes data_age_ms so you can see how fresh the data is. Long-running shell_exec and docker_container_update calls send MCP progress notifications when the client asks for them (stdio or session-mode HTTP).

All tool output goes through secret redaction: your configured API key, SSH password, and bearer token, plus credential-shaped key/value pairs and JWTs, come back as [redacted]. A client-side rate limiter keeps request bursts inside the Unraid API's throttle, and oversized JSON results are truncated into an envelope that still parses with JSON.parse.

System and storage

Tool

Type

Description

system_info

read-only

OS, kernel, uptime, hostname, and CPU summary.

array_status

read-only

Array state, capacity, current parity-check status, and per-disk health.

parity_history

read-only

Recent parity checks (date, status, errors, speed).

disk_list

read-only

Physical disks with model, size, SMART status, temperature, and partitions.

disk_smart_report

read-only

Full smartctl attribute report for one disk (SSH).

disk_spin

mutation

Spins a disk up or down (SSH; confirm): array slots through emhttpd so the state stays consistent, unassigned /dev/sdX through sdspin (ATA only).

share_list

read-only

User shares with usage; filter by name.

mover_status

read-only

Whether the mover (cache-to-array migration) is running, plus its schedule.

system_health

read-only

One severity-scored health rollup (OK / WARNING / CRITICAL) across array, capacity, disks and temperatures, parity, notifications, UPS, and pending container updates. Start here.

connection_doctor

read-only

Self-test of this MCP server's plumbing: GraphQL reachability and latency, API key validity, versions, schema skew (vendored schema vs the server's API version), SSH connectivity, rate-limit config, and read-only mode. Run it first when something misbehaves; it is also available as npx better-unraid-mcp doctor.

gpu_metrics

read-only

GPU utilization over SSH: full metrics from nvidia-smi, a one-line summary (frequency, idle share, engine load, GPU clients) parsed from intel_gpu_top, or a clear report when neither is present.

process_list

read-only

The host's busiest processes by CPU or memory (SSH).

mover_action

destructive

Starts or stops the mover over SSH (requires confirm: true). Stopping can leave partial files on the destination.

system_power

destructive

Reboots or shuts down the whole server over SSH. Requires confirm: true and acknowledge_risk: true.

Array control

Both tools require an API key with the ADMIN role. They report that the request was issued; run array_status afterward to confirm the result.

Tool

Type

Description

array_action

destructive

Starts or stops the array. Stopping takes every share, container, and VM offline, so stop also requires acknowledge_risk: true.

array_disk_action

destructive

Adds a disk to the array (checks first that the array is STOPPED), mounts or unmounts an array disk, or clears disk statistics. The Unraid API (4.37+) no longer supports removing a disk, so use the web UI for that. Requires confirm + acknowledge_risk.

parity_check

destructive

Starts (optionally correcting), pauses, resumes, or cancels a parity check.

Docker

Tool

Type

Description

docker_container_list

read-only

Containers with state, image, and update availability; filter by name.

docker_container_logs

read-only

Recent log lines for a container, with tail and time-based paging.

docker_network_list

read-only

Docker networks (driver, scope, IPv6/internal/attachable).

docker_port_conflicts

read-only

Container and LAN port conflicts.

docker_stats

read-only

Per-container CPU, memory, network, and block IO usage, hungriest first. Uses a fresh sample from the live WebSocket subscription when one exists and otherwise falls back to docker stats over SSH (see Host shell); the response says which source it used.

docker_container_action

destructive

Start, stop, pause, unpause, or restart a container (restart uses the API's native restart mutation, API 4.37+).

docker_container_remove

destructive

Permanently deletes a container (irreversible) and optionally its image. Needs Unraid 7.3+.

docker_container_update

destructive

Pulls the latest image and recreates containers, by id or all with updates. Needs Unraid 7.3+.

docker_autostart_set

destructive

Sets which containers start on boot without losing the existing boot order. Needs Unraid 7.3+.

Virtual machines

Tool

Type

Description

vm_list

read-only

Virtual machines with run state; filter by name.

vm_action

destructive

Start, stop, pause, resume, forceStop, reboot, or reset a VM by name or id. forceStop and reset are ungraceful and also require acknowledge_risk: true.

vm_snapshot_list

read-only

Lists a VM's libvirt snapshots through virsh (SSH; the GraphQL API doesn't expose them).

vm_snapshot_create

destructive

Creates an EXTERNAL disk snapshot through virsh, the same way Unraid 7 does. Requires confirm + acknowledge_risk. Revert and delete stay in the Unraid UI on purpose.

Notifications

Tool

Type

Description

notification_overview

read-only

Unread and archived counts broken down by importance.

notification_list

read-only

Notifications by type (unread or archive) with paging; the source of truth for ids.

notification_alerts

read-only

Deduplicated unread warnings and alerts: the "needs attention now" view.

notification_archive

mutation

Archives or unarchives notifications (reversible, no confirmation needed). The API swallows per-id failures, so verify with notification_list.

notification_unread

mutation

Marks one notification as unread again (reversible, no confirmation needed).

notification_create

mutation

Creates a notification (no confirmation needed).

notification_recalculate

mutation

Re-syncs cached overview counts from disk (no confirmation needed).

notification_delete

destructive

Permanently deletes notifications (irreversible).

Observability

Tool

Type

Description

log_list

read-only

The server's log files with size and last-modified time.

log_read

read-only

Tails or windows a log file (default 100 lines, max 2000), with paging hints.

system_metrics

read-only

Point-in-time CPU load, memory pressure, per-interface network rates, and server time. Temperature data is opt-in.

metrics_history

read-only

Recent CPU, memory, and network history from the opt-in in-memory recorder (MCP_METRICS_HISTORY=true): 30-second min/avg/max buckets for up to 24 hours, with gaps reported as gaps. When recording is off, it says how to turn it on.

Plugins

Tool

Type

Description

plugin_list

read-only

Installed API plugins and OS .plg plugins.

plugin_add

destructive

Installs API plugins by npm package name, then restarts the Unraid API. npm install on your server runs package lifecycle scripts, so only install packages you trust.

plugin_remove

destructive

Uninstalls API plugins by npm package name, then restarts the Unraid API.

plugin_install_plg

destructive

Installs a native Unraid OS plugin from a .plg URL. A .plg runs arbitrary code as root, so this requires confirm + acknowledge_risk. Only install from sources you trust.

ZFS (SSH)

ZFS ships with Unraid 6.12+. These tools say so plainly when no pools exist.

Tool

Type

Description

zfs_status

read-only

Pool health and capacity, plus ARC memory usage.

zfs_dataset_list

read-only

Datasets with used and available space and mountpoints; optional pool filter.

zfs_snapshot_list

read-only

Snapshots with size and creation time; optional dataset filter.

zfs_snapshot_action

destructive

Create, destroy, or roll back a snapshot. Rollback discards everything after the snapshot, so this requires confirm + acknowledge_risk.

Host configuration (SSH)

The GraphQL API has nothing for services, share changes, or unassigned devices, so these tools use the same mechanisms as the web UI: the /etc/rc.d/rc.* scripts, emhttpd's form handler through emcmd, and the Unassigned Devices plugin. Every write is checked by reading the result back.

Tool

Type

Description

service_list

read-only

Running, stopped, or not-installed state of samba, nfs, sshd, docker, libvirt, and tailscale.

service_action

destructive

restart, start, or stop one of those services, then check its status. stop needs allow_stop: true, and stopping docker or libvirt is refused (use array_action). Requires confirm + acknowledge_risk.

unassigned_list

read-only

Disks outside the array, pools, and flash, with partitions, filesystems, and mount points.

unassigned_action

destructive

Mounts or unmounts an unassigned partition through the Unassigned Devices plugin (rc.unassigned) and checks the result with lsblk. Refuses when the plugin isn't installed. Requires confirm + acknowledge_risk.

share_create

destructive

Creates a user share through emhttpd with a validated subset of settings (comment, allocator, cache mode and pool, SMB export and security), then checks the written .cfg. Requires confirm + acknowledge_risk.

share_edit

destructive

Changes that same subset of settings on an existing share, leaves the other settings alone, and checks the result by reading it back. Requires confirm + acknowledge_risk.

share_delete

destructive

Deletes an EMPTY share's configuration. It never deletes files and refuses while the share holds data. Requires confirm + acknowledge_risk.

Backup (SSH)

Tool

Type

Description

flash_backup

destructive

Archives the flash (USB boot) device into a user share as /mnt/user/<share>/flash-backups/flash-backup-<scope>-<timestamp>.tar.gz: /boot/config by default, or the whole flash with full: true. Each archive is checked with tar -tzf, and keep: N prunes older archives and lists what it removed. The archive contains your license key, API keys, and passwords, so it stays on your array. Requires confirm + acknowledge_risk.

User Scripts (SSH)

Tool

Type

Description

user_script_list

read-only

Lists scripts managed by the User Scripts plugin.

user_script_run

destructive

Runs one user script with the plugin's noexec-safe runner. A user script is arbitrary root code, so this requires confirm + acknowledge_risk.

API keys

These tools hand the model the credentials that control access to your server, so use them with the same care as the keys themselves.

Tool

Type

Description

apikey_list

read-only

Lists configured API keys (name, roles, permissions, created). Key values are never selected or returned.

apikey_manage

destructive

Creates, updates, adds or removes roles on, or deletes API keys. Requires confirm + acknowledge_risk. The key value is shown exactly once, at creation. Deleting the key this MCP server uses locks it out.

UPS

Tool

Type

Description

ups_status

read-only

Live UPS telemetry from apcupsd: status (ONLINE, ONBATT, LOWBATT, ...), battery charge and runtime, and power load. When apcaccess has nothing to report, it says "no live UPS data" instead of erroring or inventing a healthy reading. That includes NUT-managed servers, which the Unraid API can't see.

Host shell (optional, needs SSH)

The GraphQL API can't reach everything: old boot logs under /boot/logs, /proc, one-off commands. These tools fill that gap over SSH. They are off by default and turn on only when you set the UNRAID_SSH_* variables (see Configuration); without them they refuse and explain how to set it up. docker_stats also falls back to this channel when no fresh live sample is available.

Tool

Type

Description

file_read

read-only

Tails any absolute file path on the host (default 200 lines, max 2000). An optional pattern greps on the server first, so searching huge logs stays cheap.

shell_exec

destructive

Runs an arbitrary command as the SSH user (typically root). Every call requires confirm: true. Output is capped, and timeouts are enforced (default 30 s, max 120 s).

Raw GraphQL (advanced)

These cover the parts of the Unraid API that no dedicated tool wraps yet, such as users and registration. Use a dedicated tool when one exists, because the dedicated tools handle server quirks that these passthroughs don't. The full schema ships with the package at schema/unraid.graphql.

Tool

Type

Description

graphql_query

read-only

Runs an arbitrary GraphQL query and returns the raw JSON. Query operations only; output is capped. Validated against the vendored schema before sending, with did-you-mean hints; dry_run: true validates without sending.

graphql_mutation

destructive

Runs an arbitrary GraphQL mutation. Requires confirm: true on every call, plus acknowledge_risk: true when it selects a known-dangerous field (setState, forceStop, reset, configureUps). Verify results with a follow-up read. Validated against the vendored schema before the confirm gate; dry_run: true validates without sending and needs no confirm.

NOTE

Tool behavior is checked against the vendored Unraid API 4.37.4 schema and covered by unit tests at 100% coverage. The read-only tools have been run against a live Unraid 7.3 server, but the write paths haven't been widely exercised on live servers yet. Treat destructive tools with care, and pleaseopen an issue if anything misbehaves.

MCP features beyond tools

The server is built on the MCP TypeScript SDK v2 (protocol revision 2026-07-28). Clients on older revisions are negotiated down automatically.

Feature

Details

Interactive confirmation (elicitation)

When your client supports MCP elicitation (over stdio or session-mode HTTP), gated tools show a real confirmation prompt instead of refusing; the riskiest actions show the warning with two checkboxes. The confirm and acknowledge_risk arguments still work everywhere and are the only option on stateless HTTP. Declining the prompt changes nothing on the server.

Resources

unraid://schema (the vendored GraphQL SDL this package was built against), unraid://health (the system-health rollup as JSON), unraid://doctor (the connection self-test as JSON), and unraid://live/history (the last hour of recorded CPU, memory, and network history when MCP_METRICS_HISTORY=true, or a hint on how to turn it on).

Live resources

Subscribe to unraid://live/parity, unraid://live/docker-stats, unraid://live/metrics, unraid://live/ups, unraid://live/array, and unraid://live/notifications for updates pushed over the Unraid API's WebSocket, or to unraid://logs/{path} to follow a log file.

Prompts

Four guided workflows: triage-array-problem, find-resource-hog, safe-container-update (takes an optional container argument), and health-report.

Structured output

system_health, system_metrics, array_status, and docker_container_list declare an outputSchema and return structuredContent alongside the human-readable text in both response formats.

Complete annotations

Every tool declares readOnlyHint, destructiveHint, idempotentHint, and openWorldHint, and a registry test enforces it.

Configuration

Variable

Required

Default

Description

UNRAID_API_URL

yes

Full Unraid GraphQL endpoint, including /graphql.

UNRAID_API_KEY

yes

API key from Quick start step 1.

MCP_TRANSPORT

no

stdio

stdio (local clients) or http (remote clients).

MCP_HTTP_PORT

no

3000

Port for the http transport.

MCP_HTTP_HOST

no

127.0.0.1

Bind address for the http transport.

MCP_HTTP_ALLOWED_HOSTS

no

Comma-separated Host allow-list; turns on DNS-rebinding protection.

UNRAID_ALLOW_SELF_SIGNED

no

false

Set true only for a self-signed TLS certificate on the LAN.

MCP_READ_ONLY

no

false

Set true to register only the read-only tools.

MCP_METRICS_HISTORY

no

false

Set true to record CPU, memory, and network history in memory (30-second min/avg/max buckets, 24 hours, cleared on restart) for metrics_history and unraid://live/history. Keeps one WebSocket open to the server.

MCP_HTTP_BEARER_TOKEN

http

Required for the http transport: clients must send Authorization: Bearer <token>.

MCP_HTTP_ALLOW_UNAUTHENTICATED

no

false

Explicit opt-in to run the http transport with no auth (trusted networks only).

LOG_LEVEL

no

info

fatal, error, warn, info, debug, trace, or silent.

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

22

SSH port.

UNRAID_SSH_USER

no

root

SSH user. Unraid administration is normally done as root.

UNRAID_SSH_PASSWORD

no

SSH password. Prefer UNRAID_SSH_KEY_PATH where you can.

UNRAID_SSH_KEY_PATH

no

Path to an SSH private key file (readable by the MCP server process).

UNRAID_SSH_IDLE_SECONDS

no

90

Idle seconds before the persistent SSH connection closes (it reconnects when next needed).

MCP_HTTP_SESSIONS

no

false

Set true for stateful HTTP sessions (SSE responses), which carry server-initiated messages: progress notifications, elicitation prompts, and live-resource updates.

See .env.example for a copy-paste template.

Remote HTTP transport

For remote or hosted clients, run over Streamable HTTP instead of stdio:

MCP_TRANSPORT=http \
MCP_HTTP_BEARER_TOKEN=some-long-random-token \
UNRAID_API_URL=https://tower.local/graphql \
UNRAID_API_KEY=your-api-key \
npx -y better-unraid-mcp@latest

The MCP endpoint is then POST http://host:3000/mcp, and every request must carry the token:

curl -X POST http://host:3000/mcp \
  -H "Authorization: Bearer some-long-random-token" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

By default the endpoint is stateless: each POST gets a complete JSON response, and server-initiated messages (progress notifications, elicitation prompts, live-resource updates) are unavailable. Set MCP_HTTP_SESSIONS=true for stateful streamable-HTTP sessions. The client initializes once, sends the returned mcp-session-id header on later requests, receives SSE responses that can carry server-initiated messages, and can end the session with a DELETE. Idle sessions expire after 5 minutes.

The server refuses to start in HTTP mode without MCP_HTTP_BEARER_TOKEN. To run an open endpoint on a trusted network on purpose, set MCP_HTTP_ALLOW_UNAUTHENTICATED=true, and the server logs a warning at startup. Requests without a matching token get a 401, and the token comparison is constant-time.

WARNING

Every request uses your privileged Unraid API key upstream. The server binds to localhost by default. To expose it further (including to cloud clients such as ChatGPT connectors), put TLS in front with a reverse proxy and setMCP_HTTP_ALLOWED_HOSTS for DNS-rebinding protection. Never expose the endpoint unauthenticated to an untrusted network.

Docker (HTTP transport)

The image runs only the HTTP transport (MCP_TRANSPORT=http, bound to 0.0.0.0:3000 inside the container) and, like the CLI, refuses to start without MCP_HTTP_BEARER_TOKEN:

services:
  better-unraid-mcp:
    image: ghcr.io/mswdev/better-unraid-mcp:latest
    ports: ["127.0.0.1:3000:3000"]
    environment:
      UNRAID_API_URL: https://tower.local/graphql
      UNRAID_API_KEY: ${UNRAID_API_KEY}
      MCP_HTTP_BEARER_TOKEN: ${MCP_HTTP_BEARER_TOKEN}
      MCP_HTTP_ALLOWED_HOSTS: localhost,mcp.example.com   # DNS-rebinding protection
      # UNRAID_SSH_HOST / UNRAID_SSH_PASSWORD for host tools; MCP_HTTP_SESSIONS=true for subscriptions/elicitation
    restart: unless-stopped

Point your client at http://<host>:3000/mcp with Authorization: Bearer <token>, and put TLS in front before it leaves the LAN. Every release publishes multi-arch (amd64/arm64) images.

Security

The Unraid API key controls your server. Give it the least privilege you need, keep it only in environment variables or your client's secret store, and never commit it to version control.

FAQ

What is an Unraid MCP server?

The Model Context Protocol (MCP) is the standard AI clients use to call outside tools. An Unraid MCP server exposes your Unraid server's status and controls as MCP tools, so an assistant such as Claude, Codex, or Gemini CLI can check the array, read a log, or restart a container when you ask. Better Unraid MCP provides 67 of those tools.

Is there an official Unraid MCP server?

Not as of November 2026: neither Unraid OS nor its API includes an MCP server. Better Unraid MCP is an independent, MIT-licensed community project and isn't affiliated with Unraid or Lime Technology. It talks to the official GraphQL API that ships with Unraid.

Which Unraid versions does it support?

Unraid 7.2 or newer, where the GraphQL API is built into the OS. Three Docker tools (docker_container_remove, docker_container_update, and docker_autostart_set) need Unraid 7.3 or newer.

Do I have to install anything on my Unraid server?

No. The MCP server runs on your own computer with npx and reaches Unraid over the network with an API key. If you would rather host it, the Docker image serves the same tools over HTTP; see Docker.

Which AI clients does it work with?

Any MCP client. The Quick start has setup steps for Claude Code, Claude Desktop, Codex, and Gemini CLI, and remote clients can connect over the HTTP transport.

Can I keep it read-only?

Yes. Set MCP_READ_ONLY=true and use a VIEWER-role API key, and nothing in the server can change your machine; see the cautious quickstart. With writes enabled, every destructive tool refuses to run without confirm: true, and the riskiest ones also need acknowledge_risk: true.

Does the AI get SSH or root access to my server?

Not unless you turn it on. By default the server only calls the Unraid GraphQL API, with whatever permissions your API key has. SSH is optional: setting UNRAID_SSH_HOST turns on the tools marked SSH in the tool list, such as ZFS, SMART reports, flash backup, User Scripts, file reads, and one-off commands.

Development

git clone https://github.com/mswdev/better-unraid-mcp.git
cd better-unraid-mcp
npm install
npm run build      # or: npm run dev

Run the quality gate before every commit (npm run test:coverage also enforces the coverage threshold that CI checks):

npm run typecheck && npm run build && npm test && npm run lint

To contribute, branch off develop, keep one logical change per commit (conventional commits), and open a draft PR into develop. Never hand-edit the vendored schema (schema/unraid.graphql) or the generated types (src/types/unraid/**); refresh them with npm run schema:update and npm run generate.

License

MIT

Available Tools

67 tools
apikey_listList API KeysA
Read-onlyIdempotent

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).

Inputs: response_format.

apikey_manageManage API KeysA
Destructive

⚠ 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.

Inputs: action (required), id, ids, name, +4 more.

array_actionStart or Stop the Unraid ArrayA
Destructive

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.

Inputs: action (required), confirm, response_format, acknowledge_risk.

array_disk_actionArray Disk OperationsA
Destructive

⚠ 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 confirm the exact disk with the user first. Results are requested, not confirmed — verify with array_status/disk_list.

Inputs: id (required), action (required), slot, confirm, +2 more.

array_statusGet Unraid Array StatusA
Read-onlyIdempotent

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.

Inputs: response_format. Returns: disks, state, caches, capacity, +3 more

connection_doctorConnection DoctorA
Read-onlyIdempotent

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.

Inputs: response_format.

disk_listList Unraid Physical DisksA
Read-onlyIdempotent

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.

Inputs: response_format.

disk_smart_reportDeep SMART ReportA
Read-onlyIdempotent

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_*).

Inputs: device (required).

disk_spinSpin Disk Up/DownA
Idempotent

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).

Inputs: action (required), disk, device, confirm.

docker_autostart_setSet Docker Container AutostartA
DestructiveIdempotent

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).

Inputs: changes (required), confirm, persist, response_format.

docker_container_actionStart / Stop / Restart / Pause / Unpause a Docker ContainerA
Destructive

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.

Inputs: id (required), action (required), confirm, response_format.

docker_container_listList Docker ContainersA
Read-onlyIdempotent

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.

Inputs: name, response_format. Returns: containers, data_age_ms

docker_container_logsGet Docker Container LogsA
Read-onlyIdempotent

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.

Inputs: id (required), tail, since, response_format.

docker_container_removeRemove Docker ContainerA
Destructive

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.

Inputs: id (required), confirm, with_image, response_format.

docker_container_updateUpdate Docker Container(s)A
Destructive

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.

Inputs: all, ids, confirm, response_format.

docker_network_listList Docker NetworksA
Read-onlyIdempotent

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.

Inputs: response_format.

docker_port_conflictsList Docker Port ConflictsA
Read-onlyIdempotent

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.

Inputs: response_format.

docker_statsDocker Container StatsA
Read-onlyIdempotent

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.

Inputs: response_format.

file_readRead Host FileA
Read-onlyIdempotent

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, and output beyond 30000 characters is truncated. Requires SSH to be configured (UNRAID_SSH_* environment variables); reads run as the SSH user (typically root).

Inputs: path (required), lines, pattern, response_format.

flash_backupBack Up Flash DeviceA
Destructive

⚠ 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//flash-backups/flash-backup--.tar.gz, verifies it with tar -tzf, and reports size and entry count; keep: N prunes older archives in that folder beyond N and lists exactly what it removed. The archive CONTAINS your license key, API keys, passwords, and network config — it stays on your own array; never copy it off the server unencrypted. Requires confirm: true AND acknowledge_risk: true, plus SSH (UNRAID_SSH_*). Replaces the Unraid API's flash-backup mutation, which is an unimplemented stub.

Inputs: share (required), full, keep, confirm, +2 more.

gpu_metricsGPU MetricsA
Read-onlyIdempotent

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_*).

Inputs: response_format.

graphql_mutationRaw GraphQL MutationA
Destructive

⚠ 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 mutation operations are accepted (use graphql_query for queries). Every document is validated against the vendored schema before the confirm gate (typos get did-you-mean hints); dry_run: true validates only. The schema is in this package's schema/unraid.graphql; results are subject to the API key's permissions.

Inputs: mutation (required), confirm, dry_run, variables, +1 more.

graphql_queryRaw GraphQL QueryA
Read-onlyIdempotent

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 validate only. The schema is in this package's schema/unraid.graphql. Results are subject to the API key's permissions; oversized results are head-truncated, so narrow the selection or page.

Inputs: query (required), dry_run, variables.

log_listList Log FilesA
Read-onlyIdempotent

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).

Inputs: response_format.

log_readRead Log FileA
Read-onlyIdempotent

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; for host files log_list does not show, use file_read (SSH).

Inputs: path (required), lines, start_line, response_format.

metrics_historyMetric HistoryA
Read-onlyIdempotent

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.

Inputs: topic (required), window_minutes, response_format.

mover_actionStart or Stop the MoverA
Destructive

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.

Inputs: action (required), confirm, response_format.

mover_statusMover StatusA
Read-onlyIdempotent

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.

Inputs: response_format.

notification_alertsNotification AlertsA
Read-onlyIdempotent

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.

Inputs: response_format.

notification_archiveArchive or Unarchive NotificationsA
Idempotent

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.

Inputs: direction (required), all, ids, importance, +1 more.

notification_createCreate NotificationA

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.

Inputs: mode (required), title (required), subject (required), importance (required), +3 more.

notification_deleteDelete NotificationsA
Destructive

⚠ 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.

Inputs: scope (required), id, type, confirm, +1 more.

notification_listList NotificationsA
Read-onlyIdempotent

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.

Inputs: type (required), limit, offset, importance, +1 more.

notification_overviewNotification OverviewA
Read-onlyIdempotent

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.

Inputs: response_format.

notification_recalculateRecalculate Notification OverviewA
Idempotent

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.

Inputs: response_format.

notification_unreadMark Notification UnreadA
Idempotent

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.

Inputs: id (required).

parity_checkControl the Parity CheckA
Destructive

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).

Inputs: action (required), confirm, correct, response_format.

parity_historyGet Unraid Parity Check HistoryA
Read-onlyIdempotent

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.

Inputs: limit, response_format.

plugin_addAdd API PluginsA
Destructive

⚠ 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.

Inputs: names (required), confirm, response_format.

plugin_install_plgInstall Native Unraid Plugin (.plg)A
Destructive

⚠ 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.

Inputs: url (required), name, forced, confirm, +1 more.

plugin_listList PluginsA
Read-onlyIdempotent

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).

Inputs: response_format.

plugin_removeRemove API PluginsA
Destructive

⚠ 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.

Inputs: names (required), confirm, response_format.

process_listTop ProcessesA
Read-onlyIdempotent

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_*).

Inputs: count, sort_by, response_format.

service_actionRestart / Start / Stop a Host ServiceA
Destructive

⚠ 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.

Inputs: action (required), service (required), confirm, allow_stop, +2 more.

service_listList Host ServicesA
Read-onlyIdempotent

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_*).

Inputs: response_format.

share_createCreate User ShareA
Destructive

⚠ 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 no; SMB settings are submitted only when smbExport or smbSecurity is passed. Requires confirm: true AND acknowledge_risk: true, plus SSH. The GraphQL API has no share mutations.

Inputs: name (required), comment, confirm, useCache, +5 more.

share_deleteDelete User Share (config only)A
Destructive

⚠ 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 confirm: true AND acknowledge_risk: true, plus SSH.

Inputs: name (required), confirm, acknowledge_risk.

share_editEdit User ShareA
DestructiveIdempotent

⚠ 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 confirm: true AND acknowledge_risk: true, plus SSH.

Inputs: name (required), comment, confirm, useCache, +5 more.

share_listList Unraid SharesA
Read-onlyIdempotent

Read-only. Lists user shares with usage (free/used/total); detailed adds each share's cache flag, included/excluded disks, and comment. Use name to filter by a share name substring. Pass a returned name to share_edit, share_delete, or flash_backup; those accept only letters, digits, dots, underscores, and hyphens. Other settings are not returned: the allocator is on the API's Share type (graphql_query shares { name allocator }), and /boot/config/shares/.cfg (file_read, over SSH) holds all of them, including cache mode and SMB. For array-wide capacity and per-disk usage use array_status.

Inputs: name, response_format.

shell_execRun Shell CommandA
Destructive

⚠ 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; stdout and stderr are each truncated beyond 30000 characters. Requires SSH to be configured (UNRAID_SSH_* environment variables).

Inputs: command (required), confirm, response_format, timeout_seconds.

system_healthSystem Health RollupA
Read-onlyIdempotent

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.

Inputs: response_format. Returns: overall, subsystems

system_infoGet Unraid System InfoA
Read-onlyIdempotent

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.

Inputs: response_format.

system_metricsGet System MetricsA
Read-onlyIdempotent

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).

Inputs: response_format, include_temperature. Returns: metrics, systemTime, data_age_ms

system_powerReboot or Shut Down the ServerA
Destructive

⚠ 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, use array_action instead.

Inputs: action (required), confirm, response_format, acknowledge_risk.

unassigned_actionMount / Unmount an Unassigned PartitionA
DestructiveIdempotent

⚠ 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.

Inputs: action (required), device (required), confirm, response_format, +1 more.

unassigned_listList Unassigned DisksA
Read-onlyIdempotent

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_*).

Inputs: response_format.

ups_statusGet UPS StatusA
Read-onlyIdempotent

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).

Inputs: response_format.

user_script_listList User ScriptsA
Read-onlyIdempotent

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 (the same error is returned when it has no scripts).

Inputs: response_format.

user_script_runRun a User ScriptA
Destructive

⚠ 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. Get names from user_script_list; a non-zero exit is reported faithfully, not as a tool error. Waits for the script to finish and returns its exit code, stdout, and stderr. For a one-off command that is not a saved script use shell_exec instead.

Inputs: name (required), confirm, response_format, timeout_seconds, +1 more.

vm_actionControl a Virtual MachineA
Destructive

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.

Inputs: vm (required), action (required), confirm, response_format, +1 more.

vm_listList Virtual MachinesA
Read-onlyIdempotent

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.

Inputs: name, response_format.

vm_snapshot_createCreate VM SnapshotA
Destructive

⚠ 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.

Inputs: vm (required), name (required), confirm, acknowledge_risk.

vm_snapshot_listList VM SnapshotsA
Read-onlyIdempotent

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.

Inputs: vm (required), response_format.

zfs_dataset_listList ZFS DatasetsA
Read-onlyIdempotent

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.

Inputs: pool, response_format.

zfs_snapshot_actionZFS Snapshot ActionsA
Destructive

⚠ 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.

Inputs: action (required), dataset (required), snapshot (required), confirm, +1 more.

zfs_snapshot_listList ZFS SnapshotsA
Read-onlyIdempotent

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.

Inputs: dataset, response_format.

zfs_statusZFS Pool StatusA
Read-onlyIdempotent

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+.

Inputs: response_format.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 67 tools

    Disambiguation4/5

    Most tools have clearly distinct resource/action targets, and descriptions explicitly route between overlapping reads such as system_health vs array_status vs system_metrics, notification_list vs notification_alerts vs notification_overview, and log_read vs file_read. Some read-only status/list/metrics views still require close reading, but no two tools are truly interchangeable.

    Naming Consistency4/5

    Names are consistently snake_case and generally follow a resource_operation pattern, with reads using _list/_status/_info and writes using _action/_create/_edit/_delete. A few utility names such as connection_doctor, shell_exec, and flash_backup drift from the dominant pattern, so it is not perfectly uniform.

    Tool Count1/5

    67 tools is far beyond the typical 3-15 range and well past the 25+ heavy threshold; many read-only status/list/metrics variants and eight notification tools could be consolidated. Unraid is a broad domain, but this surface is overwhelmingly large for an agent to select from efficiently.

    Completeness4/5

    The surface covers array, disks, shares, Docker, VMs, notifications, plugins, API keys, ZFS, UPS, logs, files, and services, plus GraphQL and shell escape hatches for uncovered operations. Explicit gaps remain, such as VM snapshot revert/delete, array disk removal, Docker container creation, share rename, and encrypted array start, but most are documented and workaroundable.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that gives AI assistants real-time access to your homelab infrastructure. It enables querying node status, managing Docker containers, controlling Proxmox VMs, and inspecting OPNsense firewall state through natural conversation.
      26 PyPI
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables AI assistants like Claude to manage Unraid servers through natural language. Install it from Community Applications and control your homelab from any MCP-compatible AI client.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for Home Assistant that lets you control and query your smart home through natural language via MCP clients. Provides tools for entities, devices, services, automations, scripts, history, add-ons, and system info, with read-only access by default and optional configurable write support.
      1
      MIT