Repository navigation
Connect your assistant
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.
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:latestWith 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}" }
}
}
}-
Put your settings in a file that only you can read, as above.
-
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"] } } } -
Quit Claude Desktop completely, from its tray or menu bar icon, then open it again.
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" }
}
}
}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.
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:latestWith 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"]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 (~/.cursor/mcp.json or .cursor/mcp.json) and Gemini CLI (~/.gemini/settings.json) use the same mcpServers JSON format as Claude Desktop above.
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.
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.
These pages are copied from docs/guide in the DashyNMS repository each time the guide changes, so edit the guide there rather than here.
Start here
Everyday tasks
Run it for your team
Help and reference