原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

LibreNMS MCP

作者:mhajder版本 1.12.0i★ –i在你的电脑上运行
注册名称io.github.mhajder/librenms-mcp

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio, Streamable HTTP
  • 分类: 开发者工具
  • 你需要填写:LIBRENMS_URL, LIBRENMS_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: LIBRENMS_URL, LIBRENMS_TOKEN, LIBRENMS_VERIFY_SSL, LIBRENMS_TIMEOUT, READ_ONLY_MODE, DISABLED_TAGS, LOG_LEVEL, RATE_LIMIT_ENABLED, RATE_LIMIT_MAX_REQUESTS, RATE_LIMIT_WINDOW_MINUTES, TOOL_SEARCH_ENABLED, TOOL_SEARCH_STRATEGY, TOOL_SEARCH_MAX_RESULTS

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "librenms": {
      "command": "uvx",
      "args": [
        "librenms-mcp"
      ],
      "env": {
        "LIBRENMS_URL": "your-value",
        "LIBRENMS_TOKEN": "your-value",
        "LIBRENMS_VERIFY_SSL": "your-value",
        "LIBRENMS_TIMEOUT": "your-value",
        "READ_ONLY_MODE": "your-value",
        "DISABLED_TAGS": "your-value",
        "LOG_LEVEL": "your-value",
        "RATE_LIMIT_ENABLED": "your-value",
        "RATE_LIMIT_MAX_REQUESTS": "your-value",
        "RATE_LIMIT_WINDOW_MINUTES": "your-value",
        "TOOL_SEARCH_ENABLED": "your-value",
        "TOOL_SEARCH_STRATEGY": "your-value",
        "TOOL_SEARCH_MAX_RESULTS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add librenms --env LIBRENMS_URL=your-value --env LIBRENMS_TOKEN=your-value --env LIBRENMS_VERIFY_SSL=your-value --env LIBRENMS_TIMEOUT=your-value --env READ_ONLY_MODE=your-value --env DISABLED_TAGS=your-value --env LOG_LEVEL=your-value --env RATE_LIMIT_ENABLED=your-value --env RATE_LIMIT_MAX_REQUESTS=your-value --env RATE_LIMIT_WINDOW_MINUTES=your-value --env TOOL_SEARCH_ENABLED=your-value --env TOOL_SEARCH_STRATEGY=your-value --env TOOL_SEARCH_MAX_RESULTS=your-value -- uvx librenms-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "librenms": {
      "command": "uvx",
      "args": [
        "librenms-mcp"
      ],
      "env": {
        "LIBRENMS_URL": "your-value",
        "LIBRENMS_TOKEN": "your-value",
        "LIBRENMS_VERIFY_SSL": "your-value",
        "LIBRENMS_TIMEOUT": "your-value",
        "READ_ONLY_MODE": "your-value",
        "DISABLED_TAGS": "your-value",
        "LOG_LEVEL": "your-value",
        "RATE_LIMIT_ENABLED": "your-value",
        "RATE_LIMIT_MAX_REQUESTS": "your-value",
        "RATE_LIMIT_WINDOW_MINUTES": "your-value",
        "TOOL_SEARCH_ENABLED": "your-value",
        "TOOL_SEARCH_STRATEGY": "your-value",
        "TOOL_SEARCH_MAX_RESULTS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "librenms": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "librenms-mcp"
      ],
      "env": {
        "LIBRENMS_URL": "your-value",
        "LIBRENMS_TOKEN": "your-value",
        "LIBRENMS_VERIFY_SSL": "your-value",
        "LIBRENMS_TIMEOUT": "your-value",
        "READ_ONLY_MODE": "your-value",
        "DISABLED_TAGS": "your-value",
        "LOG_LEVEL": "your-value",
        "RATE_LIMIT_ENABLED": "your-value",
        "RATE_LIMIT_MAX_REQUESTS": "your-value",
        "RATE_LIMIT_WINDOW_MINUTES": "your-value",
        "TOOL_SEARCH_ENABLED": "your-value",
        "TOOL_SEARCH_STRATEGY": "your-value",
        "TOOL_SEARCH_MAX_RESULTS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • LIBRENMS_URL 必填 env
    LibreNMS instance URL (e.g., https://librenms.example.com)
  • LIBRENMS_TOKEN 机密 必填 env
    LibreNMS API token with appropriate permissions
  • LIBRENMS_VERIFY_SSL env
    Verify TLS certificates for LibreNMS requests (true/false)
  • LIBRENMS_TIMEOUT env
    HTTP timeout for LibreNMS API requests in seconds
  • READ_ONLY_MODE env
    Enable read-only mode to block write operations
  • DISABLED_TAGS env
    Comma-separated tool tags to disable (e.g., alerts,bills)
  • LOG_LEVEL env
    Logging level (DEBUG, INFO, WARNING, ERROR)
  • RATE_LIMIT_ENABLED env
    Enable per-client rate limiting (true/false)
  • RATE_LIMIT_MAX_REQUESTS env
    Maximum requests allowed per rate-limit window
  • RATE_LIMIT_WINDOW_MINUTES env
    Rate-limit window duration in minutes
  • TOOL_SEARCH_ENABLED env
    Enable FastMCP tool search transform
  • TOOL_SEARCH_STRATEGY env
    Tool search strategy: 'bm25' (natural language) or 'regex' (pattern match)
  • TOOL_SEARCH_MAX_RESULTS env
    Maximum number of tools returned by search_tools

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mhajder 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 1396 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1396 个服务器的 66% 更新
  • 基础检查结果等于或优于此分类中其他 1396 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

LibreNMS MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:LIBRENMS_URL, LIBRENMS_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.12.0)于25天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv), Docker。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT4天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT16天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

LibreNMS MCP Server

Let AI agents query and manage LibreNMS network monitoring through the Model Context Protocol

Installation · Tools · Configuration · Security

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.

✨ Features

Core Features
  • Query LibreNMS devices, ports, inventory, locations, logs, and alerts with flexible filtering
  • Retrieve network topology, device status, and performance metrics
  • Access and analyze alert history, event logs, and system health
  • Monitor interface statistics, port status, and traffic data
  • Track endpoints and connected devices by MAC or IP address
  • Retrieve and manage device groups, port groups, and poller groups
  • Get detailed information about network services and routing
Management Operations
  • Create, update, and delete devices, ports, and groups (if enabled)
  • Manage alert rules, notifications, and device metadata
  • Configure read-only mode to restrict all write operations for safe monitoring
  • Support for bulk operations on devices and ports
Advanced Capabilities
  • Rate limiting and API security features
  • Real-time network monitoring and health tracking
  • Comprehensive logging and audit trails
  • SSL/TLS support and configurable timeouts
  • Optional tool-search transform for large tool catalogs
  • Extensible with custom middlewares and utilities

🚀 Installation

Prerequisites
  • Python 3.11 to 3.15
  • Access to a LibreNMS
  • Valid LibreNMS token with appropriate permissions
Quick Install from PyPI

The easiest way to get started is to install from PyPI:

# Using UV (recommended)

uvx librenms-mcp

Or using pip

pip install librenms-mcp

Remember to configure the environment variables for your LibreNMS instance before running the server:

# Create environment configuration

export LIBRENMS_URL=https://domain.tld:8443 export LIBRENMS_TOKEN=your-librenms-token

For more details, visit: https://pypi.org/project/librenms-mcp/

Install from Source
  1. Clone the repository:
git clone https://github.com/mhajder/librenms-mcp.git

cd librenms-mcp

  1. Install dependencies:
# Using UV (recommended)

uv sync

Or using pip

pip install -e .

  1. Configure environment variables:
cp .env.example .env

Edit .env with your LibreNMS url and token

  1. Run the server:
# Using UV (recommended)

uv run librenms-mcp

Or using the installed command directly

librenms-mcp

Using Docker

A Docker image is available on GitHub Packages for easy deployment. It runs the HTTP Streamable transport on port 8000 (/mcp).

docker pull ghcr.io/mhajder/librenms-mcp:latest
Open WebUI

Open WebUI 0.6.31 and later connect to the image directly; the separate MCPO image (ghcr.io/mhajder/librenms-mcpo) is no longer published. In Open WebUI, go to Admin Settings > Integrations > External Tool Servers, add a connection of type MCP (Streamable HTTP) with the URL http:// :8000/mcp, and set Bearer authentication to your MCP_HTTP_BEARER_TOKEN.

Development Setup

For development with additional tools:

# Clone and install with development dependencies

git clone https://github.com/mhajder/librenms-mcp.git cd librenms-mcp uv sync --group dev

Run tests

uv run pytest

Run with coverage

uv run pytest --cov=src/

Run linting and formatting

uv run ruff check . uv run ruff format .

Run type checking

uv run ty check .

Setup pre-commit hooks

uv run prek install

🔧 Configuration

Environment Variables

Boolean settings accept true/false, 1/0, yes/no and on/off (case-insensitive). Any other value stops the server at startup, so a typo cannot silently turn read-only mode or TLS verification off. The exception is SENTRY_SEND_DEFAULT_PII and SENTRY_ENABLE_LOGS: when SENTRY_DSN is set, an invalid value there logs an error and leaves Sentry off, and the server keeps running.

# LibreNMS Connection Details

LIBRENMS_URL=https://domain.tld:8443 LIBRENMS_TOKEN=your-librenms-token

SSL Configuration

LIBRENMS_VERIFY_SSL=true LIBRENMS_TIMEOUT=30

Read-Only Mode

Set READ_ONLY_MODE true to disable all write operations (put, post, delete)

READ_ONLY_MODE=false

SNMP Credential Redaction

Replaces SNMP community and SNMPv3 credentials in API responses with ;

set REDACT_SNMP_CREDENTIALS false to return them as LibreNMS sends them

REDACT_SNMP_CREDENTIALS=true

Disabled Tags

Comma-separated list of tags to disable tools for (empty by default)

Example: DISABLED_TAGS=alert,alert-rules,alert-templates,bills

DISABLED_TAGS=

Logging Configuration

LOG_LEVEL=INFO

Rate Limiting (requests per minute)

Set RATE_LIMIT_ENABLED true to enable rate limiting

RATE_LIMIT_ENABLED=false RATE_LIMIT_MAX_REQUESTS=100 RATE_LIMIT_WINDOW_MINUTES=1

Tool Search Transform (Optional)

Set TOOL_SEARCH_ENABLED true to replace full tool listings with search_tools + call_tool

TOOL_SEARCH_ENABLED=false

Search strategy: bm25 (natural language) or regex (pattern match)

TOOL_SEARCH_STRATEGY=bm25

Maximum number of tools returned by search_tools

TOOL_SEARCH_MAX_RESULTS=5

Short Device Names (Optional)

Set RESOLVE_SHORT_HOSTNAMES true to accept a device's short name ("rtr1") where

a hostname is expected, resolving it to the one device whose hostname, up to the

first dot, or whose sysName equals it (ignoring case)

RESOLVE_SHORT_HOSTNAMES=false

Sentry Error Tracking (Optional)

Set SENTRY_DSN to enable error tracking and performance monitoring

SENTRY_DSN=https://your-key@o12345.ingest.us.sentry.io/6789

Optional Sentry configuration

SENTRY_TRACES_SAMPLE_RATE=1.0

SENTRY_SEND_DEFAULT_PII=false

SENTRY_ENVIRONMENT=production

SENTRY_RELEASE=1.2.3

SENTRY_PROFILE_SESSION_SAMPLE_RATE=1.0

SENTRY_PROFILE_LIFECYCLE=trace

SENTRY_ENABLE_LOGS=true

MCP Transport Configuration

Transport type: 'stdio' (default), 'sse' (Server-Sent Events), or 'http' (HTTP Streamable).

'streamable-http' is accepted as an alias for 'http'. Any other value stops the server at startup.

MCP_TRANSPORT=stdio

HTTP Transport Settings (used when MCP_TRANSPORT=sse or MCP_TRANSPORT=http)

Host to bind the HTTP server (default: 127.0.0.1)

MCP_HTTP_HOST=127.0.0.1

Port to bind the HTTP server (default: 8000)

MCP_HTTP_PORT=8000

Optional bearer token for authentication (leave empty for no auth)

MCP_HTTP_BEARER_TOKEN=

🧰 Available Tools

Device & Inventory Tools
  • 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
  • device_discover: Discover or add a device using provided credentials
  • device_rename: Rename an existing device
  • device_maintenance_status: Get the maintenance status for a device
  • device_vlans: List VLANs for a device
  • device_links: List links for a device
  • device_wireless_sensors: List wireless sensors (frequency, clients, rssi, ...) with current values
  • device_parents_set: Set the dependency parents of a device (replaces the current set)
  • device_parents_clear: Remove dependency parents from a device
  • device_eventlog_add: Add an event log entry for a device
  • inventory_device: Get inventory for a device
  • inventory_device_flat: Get flat inventory for a device
  • devicegroups_list: List device groups
  • devicegroup_add: Add a device group
  • devicegroup_update: Update a device group
  • devicegroup_delete: Delete a device group
  • devicegroup_devices: List devices in a device group
  • devicegroup_set_maintenance: Set maintenance for a device group
  • devicegroup_add_devices: Add devices to a device group
  • devicegroup_remove_devices: Remove devices from a device group
  • locations_list: List all locations
  • location_add: Add a location
  • location_edit: Edit a location
  • location_delete: Delete a location
  • location_get: Get details for a location
  • location_set_maintenance: Set maintenance for a location
Port & Port Group Tools
  • ports_list: List all ports (with optional filters)
  • ports_search: Search ports (general search)
  • ports_search_field: Search ports by a specific field
  • ports_search_mac: Search ports by MAC address
  • port_get: Get details for a specific port
  • port_fdb: List MAC addresses learned on a port
  • port_ip_info: Get IP address information for a port
  • port_transceiver: Get transceiver information for a port
  • port_description_get: Get a port description
  • port_description_update: Update a port description
  • port_groups_list: List port groups
  • port_group_add: Add a port group
  • port_group_list_ports: List ports in a port group
  • port_group_assign: Assign ports to a port group
  • port_group_remove: Remove ports from a port group
Port Security Tools
  • port_security_list: List port security configuration across all devices
  • port_security_device: Get port security configuration for a device
  • port_security_port: Get port security configuration for a single port
Graph Tools

Graphs are returned as MCP images. The tools ask LibreNMS for PNG, which MCP clients such as Claude can display (SVG, LibreNMS's default webui.graph_type, often is not). A LibreNMS release that ignores the request renders in its webui.graph_type format instead; the MIME type is taken from the response.

  • device_graphs_list: List the graph types available for a device
  • device_graph: Render a device-level graph (e.g. device_icmp_perf)
  • port_graph: Render a per-port graph by interface name (bits, upkts, nupkts, errors, etherlike; the LibreNMS names such as `p

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx