
ruaan-deysel/unraid-management-agent
Developer toolsThe 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
- Open Apps in the Unraid web UI.
- Search for Unraid Management Agent.
- Click Install.
Install from a URL
-
Open Plugins → Install Plugin.
-
Paste this URL:
https://raw.githubusercontent.com/tinkerologie/unraid-management-agent/main/unraid-management-agent.plg -
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.
-
Send a request to the health endpoint:
curl --fail --silent --show-error http://tower.local:8043/api/v1/health -
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.
- Open Settings → Utilities → Unraid Management Agent.
- Under API Token, click Generate.
- Click Copy.
- 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.
-
In a Bash terminal, run this command:
read -rs UMA_TOKEN -
Paste the token.
-
Press Enter.
-
Send the request:
curl --fail --silent --show-error \ -H "Authorization: Bearer ${UMA_TOKEN}" \ http://tower.local:8043/api/v1/system -
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_FILEandTLS_KEY_FILEenable 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.
- Open Settings → Utilities → Unraid Management Agent.
- Click Run Self-Test.
- Click Download Diagnostics.
- Examine the ZIP for private information.
- 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.
-
Clone the repository:
git clone https://github.com/tinkerologie/unraid-management-agent.git -
Change to the repository directory:
cd unraid-management-agent -
Build the agent:
make local -
Run the Go tests:
make test -
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
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 →