DashyNMS MCP support

Setting it up, or stuck? Here’s how to get going and how to get help.

What you need

Setting it up

1. Get the server. Pull the container image, or download the standalone archive for your platform from GitHub Releases and verify it against SHA256SUMS:

docker pull ghcr.io/dashynms/mcp:latest

2a. Claude Code: add the server with one command. Put in your own LibreNMS address and token.

claude mcp add dashynms -e LIBRENMS_URL=https://librenms.example.net -e LIBRENMS_TOKEN=your-token -- docker run -i --rm -e LIBRENMS_URL -e LIBRENMS_TOKEN ghcr.io/dashynms/mcp:latest

2b. Claude Desktop (Docker): first make a settings file somewhere outside any code repository, say dashynms.env, with one setting per line and no quotes:

LIBRENMS_URL=https://librenms.example.net
LIBRENMS_TOKEN=your-token

Then in Claude Desktop, open Settings → Developer → Edit Config and add this, pointing at your file:

{
  "mcpServers": {
    "dashynms": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "--env-file", "C:\\path\\to\\dashynms.env", "ghcr.io/dashynms/mcp:latest"]
    }
  }
}

2c. Without Docker: point command at the unpacked binary and pass settings in env:

{
  "mcpServers": {
    "dashynms": {
      "command": "C:\\path\\to\\dashynms-mcp.exe",
      "env": { "LIBRENMS_URL": "https://librenms.example.net", "LIBRENMS_TOKEN": "your-token" }
    }
  }
}

Quit Claude Desktop completely, from its tray icon rather than just closing the window, and open it again.

3. Ask it something. "What's alerting right now?" is a good first question.

Sharing over HTTP

To run one server for a team, set MCP_TRANSPORT=http and give each person or client a named bearer token in MCP_HTTP_TOKENS (at least 32 characters each, formatted as alice:<token>,bob:<token>). Put a TLS reverse proxy such as Caddy or nginx in front of port 8080 and point clients at /mcp. Use /health and /ready for liveness and readiness probes. See the HTTP set-up guide for reverse-proxy examples.

Common questions

"It won't start."

When it starts, the server checks its settings and tests your LibreNMS address and token before it answers anything. If something's wrong, it stops with one plain line explaining why. In Claude Desktop you'll find that line under Settings → Developer.

"My server uses a self-signed certificate."

The server can't stop and ask you, so it stops and prints the certificate's details, including its fingerprint. Check that fingerprint against your server's own certificate, then add it to LIBRENMS_TRUSTED_CERTS. Only that exact certificate is trusted, so you'll add the new one when it's renewed.

"Can it change anything on my network?"

No. It has no tools that change anything. With a read-only token, LibreNMS would refuse a change even if one were asked for. Do the same for Unimus and Graylog. You can also turn individual tools off with MCP_TOOLS_DENY or list only the ones to offer in MCP_TOOLS_ALLOW.

"I don't want config backups leaving my network."

Secrets are redacted from backups and diffs, but what's left is still your configuration. Set MCP_CONFIG_TEXT=summary to only say whether a config changed, when, and by how much, or off to leave Unimus out entirely.

"The health overview says it can't see every device."

LibreNMS only shares its network-wide sensor list with users who have global read access (or sensor.view on custom roles). Without it, device_sensors still works and health_overview reads devices one by one: up to 25 in a group or location in full, or alerting devices first for larger scopes.

"The log and config questions don't work."

Those need Graylog and Unimus connected, with GRAYLOG_URL, GRAYLOG_USERNAME and GRAYLOG_PASSWORD, and UNIMUS_URL and UNIMUS_TOKEN. They aren't tested at startup, so if one can't be reached, the answer will say so. If LibreNMS uses short hostnames while Unimus uses FQDNs, set UNIMUS_MY_DOMAIN.

"What happens if LibreNMS goes down?"

By default, a question asked before returns its last known good answer (for up to 24 hours), marked stale with its timestamp. Set MCP_LAST_KNOWN_GOOD_DIR to keep those answers encrypted across restarts. Config, log, graph, partial and redacted answers are never cached.

"How do I update it?"

With Docker, pull the image again and restart your AI app (or pin a version tag such as 2.0 instead of latest). With a standalone binary, download the new archive from GitHub Releases, check SHA256SUMS and replace the binary.

"Does it work with apps other than Claude?"

Yes. It's a standard MCP server supporting both stdio and Streamable HTTP, so Claude Desktop, Claude Code, Codex, VS Code, Cursor and other MCP clients can all use it.

"Do I need DashyNMS Desktop or Mobile too?"

No. It works on its own with any LibreNMS server. Desktop and Mobile are there if you want alerts on your screen or your phone as well.

Contact

Report a bug or ask for a feature: GitHub issues. For a security problem, please report it privately; see the security policy.

You can also reach us at support@dashynms.net.