RD

ruaan-deysel/unraid-management-agent

Developer tools
79 stars 13 forks Quality 64 Trend 21MIT

The Unraid Management Agent is a community plugin that monitors and controls an Unraid server. It provides a REST API, WebSocket events, Prometheus metrics, MQTT, and Model Context Protocol (MCP)...

Overview

The Unraid Management Agent is a community plugin that monitors and controls an Unraid server. It provides a REST API, WebSocket events, Prometheus metrics, MQTT, and Model Context Protocol (MCP)...

README

Unraid Management Agent

The Unraid Management Agent is a community plugin that monitors and controls an Unraid server. It provides a REST API, WebSocket events, Prometheus metrics, MQTT, and Model Context Protocol (MCP) tools. The plugin runs independently of the Unraid GraphQL API.

Installation · Quick start · Security · Integrations · Documentation

Requirements

  • Unraid OS 7.2 or later on an x86-64 server.
  • An available TCP port. The default port is 8043.

Core monitoring requires no other plugins. Some collectors require specific hardware or an installed service. See System requirements.

Installation

Install from Community Applications

  1. Open Apps in the Unraid web UI.
  2. Search for Unraid Management Agent.
  3. Click Install.

Install from a URL

  1. Open Plugins → Install Plugin.

  2. Paste this URL:

    https://raw.githubusercontent.com/tinkerologie/unraid-management-agent/main/unraid-management-agent.plg
    
  3. Click Install.

For update and removal procedures, see the installation guide.

Quick start

Check the service

Replace tower.local with your server address in these examples. The health endpoint does not require an API token.

  1. Send a request to the health endpoint:

    curl --fail --silent --show-error http://tower.local:8043/api/v1/health
    
  2. Make sure that the response contains "status":"ok".

The health response shows that the agent accepts HTTP requests. It does not report collector status.

Set an API token

If the agent has an API token, use that token. The steps below apply to a new token.

  1. Open Settings → Utilities → Unraid Management Agent.
  2. Under API Token, click Generate.
  3. Click Copy.
  4. Click Apply.

Read system information

[!WARNING] Do not send an API token over an untrusted network without HTTPS. A device on the network can read the token in an HTTP request.

  1. In a Bash terminal, run this command:

    read -rs UMA_TOKEN
    
  2. Paste the token.

  3. Press Enter.

  4. Send the request:

    curl --fail --silent --show-error \
      -H "Authorization: Bearer ${UMA_TOKEN}" \
      http://tower.local:8043/api/v1/system
    
  5. Remove the token from the shell variable:

    unset UMA_TOKEN
    

The quick start guide gives more read and control examples.

Features

Area Functions
System CPU, memory, temperatures, fan sensors, uptime, and hardware information
Storage Array and parity status, disk usage and SMART health, shares, ZFS, and SAS storage topology
Docker and VMs Status, resource use, container image updates, and control actions
Network and power Network interfaces, SFP and QSFP diagnostics, GPU metrics, and UPS status
Operations Alert rules, scheduled health checks, notifications, and diagnostics
Discovery mDNS records for network clients such as Home Assistant

The agent detects hardware for optional collectors. See Hardware auto-detection.

Control actions include disk spin control, parity checks, User Scripts, fan control, and CPU tuning. The agent can also reboot or shut down the server. Agent Core is an optional beta feature.

Security and privacy

[!WARNING] Do not forward the agent port to the internet. The agent listens on all interfaces over HTTP by default.

  • API token. When you set a token, protected requests require Authorization: Bearer .
  • Health and Swagger. The health endpoint and Swagger UI do not require a token.
  • MCP connect URL. The optional /mcp/ URL contains its credential. Keep that URL private.
  • Network write lock. A new installation blocks network control without a token. Some upgrades keep Allow Write Access Without a Token enabled.
  • MCP tool access. Read-Only Mode blocks state-changing MCP tools. Tool policies control access to individual tools. The REST API uses separate access rules.
  • HTTPS. The settings TLS_CERT_FILE and TLS_KEY_FILE enable HTTPS.
  • WAN IP lookup. The agent can ask external services for the public IP address when a client requests network access URLs. WAN IP Lookup controls these requests.

See Security settings and the security policy.

Configuration

The plugin stores its settings in /boot/config/plugins/unraid-management-agent/config.cfg. Apply saves the settings and restarts a running service.

Setting Purpose
Port and bind address Set the HTTP port and listener address.
API token Require a bearer token for protected requests.
Collection mode Use automatic scheduling or set intervals manually.
Endpoints Enable or disable HTTP MCP, Prometheus metrics, or WebSocket events.
Debug Logging Add diagnostic information to the agent log.

See the configuration guide for settings and defaults.

Integrations

Client or interface Guide
Home Assistant Home Assistant integration and MQTT discovery
Prometheus and Grafana Prometheus metrics and Grafana
Claude, Cursor, and other MCP clients Stateful MCP at /mcp
ChatGPT custom MCP server Secure MCP Tunnel at /mcp-stateless
ChatGPT Custom GPT REST Actions
MQTT clients MQTT topics and setup

/mcp uses sessions and supports protocol versions through 2025-11-25. /mcp-stateless also supports 2026-07-28 discovery without a session. Both routes use the same MCP tool policies.

Documentation

The Swagger UI is at /swagger/ on the agent HTTP port.

Troubleshooting and support

The agent log is at /var/log/unraid-management-agent.log. Run Self-Test on the settings page checks source health. Download Diagnostics saves a redacted ZIP file.

  1. Open Settings → Utilities → Unraid Management Agent.
  2. Click Run Self-Test.
  3. Click Download Diagnostics.
  4. Examine the ZIP for private information.
  5. Report the problem on the Unraid forum or open a GitHub issue.

See Diagnostic commands for checks on the server.

Development

A local build requires the Go version in go.mod and make.

  1. Clone the repository:

    git clone https://github.com/tinkerologie/unraid-management-agent.git
    
  2. Change to the repository directory:

    cd unraid-management-agent
    
  3. Build the agent:

    make local
    
  4. Run the Go tests:

    make test
    
  5. Run the repository checks:

    make pre-commit-run
    

The development guide describes packaging and test commands. The Ansible guide describes deployment to an Unraid test server.

Contributing

See the contribution guide for the issue and pull request process. The documentation standards apply ASD-STE100 Issue 9 to maintained technical prose.

License

MIT

View the full README on GitHub

Install

This server does not publish a one-line install command.

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →