LibreNMS MCP Server

MCP server for LibreNMS network monitoring - query devices, ports, alerts, and manage infrastructure

Local serverstdioPython

What is the LibreNMS MCP MCP server?

Most database access work still happens through a UI a human drives. LibreNMS MCP MCP server moves it into the conversation instead. MCP server for LibreNMS network monitoring - query devices, ports, alerts, and manage infrastructure.

The short version

LibreNMS MCP Server is a Python-based Model Context Protocol (MCP) server designed to provide advanced, programmable access to LibreNMS network monitoring data and management features. It exposes a modern API for querying, automating, and integrating LibreNMS resources such as devices, ports, alerts, inventory, locations, logs, and more. The server supports both read and write operations, robust security features, and is suitable for integration with automation tools, dashboards, and custom network management workflows.

The tools it exposes

The server publishes 14 tools. What each one is for:

  • devices_list — List all devices (with optional filters)
  • device_get — Get details for a specific device
  • device_add — Add a new device
  • device_update — Update device metadata
  • device_delete — Remove a device
  • device_ports — List all ports for a device
  • device_ports_get — Get details for a specific port on a device
  • device_fdb — List the forwarding database (learned MACs) for a device
  • device_nac — List network access control (802.1X / MAB) sessions on a device
  • device_availability — Get device availability
  • device_outages — Get device outages
  • device_set_maintenance — Set device maintenance mode

Getting it running

Installation goes through your MCP client rather than a global install: point it at librenms-mcp on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

Configuration is passed through the environment: LIBRENMS_URL, LIBRENMS_TOKEN, SENTRY_DSN, MCP_HTTP_HOST, MCP_HTTP_BEARER_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Python 3.11 to 3.14 - Access to a LibreNMS - Valid LibreNMS token with appropriate permissions

How it compares

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. LibreNMS MCP's toolset — devices_list, device_get, device_add and 11 more — is a fair guide to whether it matches your workflow. It is maintained by mhajder; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against LibreNMS MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch LibreNMS MCP.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
devices_listList all devices (with optional filters)
device_getGet details for a specific device
device_addAdd a new device
device_updateUpdate device metadata
device_deleteRemove a device
device_portsList all ports for a device
device_ports_getGet details for a specific port on a device
device_fdbList the forwarding database (learned MACs) for a device
device_nacList network access control (802.1X / MAB) sessions on a device
device_availabilityGet device availability
device_outagesGet device outages
device_set_maintenanceSet device maintenance mode
device_discoverDiscover or add a device using provided credentials
device_renameRename an existing device

How to install the LibreNMS MCP MCP server

{
  "mcpServers": {
    "librenms": {
      "command": "uvx",
      "args": ["librenms-mcp"],
      "env": {
        "LIBRENMS_URL": "your-value",
        "LIBRENMS_TOKEN": "your-value",
        "SENTRY_DSN": "your-value",
        "MCP_HTTP_HOST": "your-value",
        "MCP_HTTP_BEARER_TOKEN": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.11 to 3.14 - Access to a LibreNMS - Valid LibreNMS token with appropriate permissions
VariableDescriptionRequired
LIBRENMS_URLEndpoint or connection string the server talks to.Yes
LIBRENMS_TOKENCredential the server authenticates with.Yes
SENTRY_DSNEndpoint or connection string the server talks to.Yes
MCP_HTTP_HOSTEndpoint or connection string the server talks to.Optional
MCP_HTTP_BEARER_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use LibreNMS MCP to devices list.
  • Use LibreNMS MCP to device get.
  • Use LibreNMS MCP to device add.

Frequently asked questions

It connects LibreNMS MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (devices_list, device_get, device_add, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with LibreNMS MCP directly.