Skip to content

Connect your assistant

github-actions[bot] edited this page Nov 29, 2026 · 2 revisions

Your assistant starts the server and talks to it directly, so you give it three things: how to start the server, your LibreNMS address and your token.

The examples use https://librenms.example.net. Replace it and your-token with your own.

Claude Code

With Docker, put your settings in a file that only you can read, one per line and without quotes. That keeps the token out of your shell's history:

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

Then add the server with the file's full path:

claude mcp add dashynms -- docker run -i --rm --env-file /home/you/dashynms.env ghcr.io/dashynms/mcp:latest

With the program, set LIBRENMS_TOKEN where your shell keeps its secrets, and let Claude Code read it from there. In .mcp.json in your project:

{
  "mcpServers": {
    "dashynms": {
      "command": "/opt/dashynms/dashynms-mcp",
      "env": { "LIBRENMS_URL": "https://librenms.example.net", "LIBRENMS_TOKEN": "${LIBRENMS_TOKEN}" }
    }
  }
}

Claude Desktop with Docker

  1. Put your settings in a file that only you can read, as above.

  2. In Claude Desktop, open Settings → Developer → Edit Config and add:

    {
      "mcpServers": {
        "dashynms": {
          "command": "docker",
          "args": ["run", "-i", "--rm", "--env-file", "C:\\path\\to\\dashynms.env", "ghcr.io/dashynms/mcp:latest"]
        }
      }
    }
  3. Quit Claude Desktop completely, from its tray or menu bar icon, then open it again.

Claude Desktop with the program

Follow the same steps with this instead. command is the program's full path:

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

Another assistant

Any client that can start an MCP server over stdio works the same way: the command is docker with the arguments above, or the program's path with no arguments. Settings are environment variables. A client that connects to a web address needs a server shared over HTTP.

OpenAI Codex

Add the server with the CLI, pointing at your env file:

codex mcp add dashynms -- docker run -i --rm --env-file /home/you/dashynms.env ghcr.io/dashynms/mcp:latest

With the standalone program, add it to ~/.codex/config.toml and keep LIBRENMS_TOKEN in your shell environment:

[mcp_servers.dashynms]
command = "/opt/dashynms/dashynms-mcp"
env = { LIBRENMS_URL = "https://librenms.example.net" }
env_vars = ["LIBRENMS_TOKEN"]

VS Code and GitHub Copilot

Add .vscode/mcp.json in your workspace (or open MCP: Open User Configuration from the Command Palette). With Docker:

{
  "servers": {
    "dashynms": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "--env-file", "/home/you/dashynms.env", "ghcr.io/dashynms/mcp:latest"]
    }
  }
}

With the standalone program, keep LIBRENMS_TOKEN in your shell environment and pass it through:

{
  "servers": {
    "dashynms": {
      "type": "stdio",
      "command": "/opt/dashynms/dashynms-mcp",
      "env": { "LIBRENMS_URL": "https://librenms.example.net", "LIBRENMS_TOKEN": "${env:LIBRENMS_TOKEN}" }
    }
  }
}

Cursor and Gemini CLI

Cursor (~/.cursor/mcp.json or .cursor/mcp.json) and Gemini CLI (~/.gemini/settings.json) use the same mcpServers JSON format as Claude Desktop above.

Ask your assistant to set it up

If your assistant edits its own configuration, paste this prompt with your path or Docker env file:

Add a stdio MCP server named dashynms to your MCP configuration.
Run it with: docker run -i --rm --env-file /home/you/dashynms.env ghcr.io/dashynms/mcp:latest
(Or with the standalone program: /opt/dashynms/dashynms-mcp with no arguments, LIBRENMS_URL=https://librenms.example.net, and LIBRENMS_TOKEN read from my environment.)
Do not write my token into any tracked file.

Check that it works

Ask "Which devices are down?". When the server starts it tests your address and token first. If something's wrong it stops and says what in one line. Claude Desktop shows that line under Settings → Developer; in Claude Code, run claude mcp list.

If your server has a self-signed certificate, see Troubleshooting.

Clone this wiki locally