Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-mhajder-librenms-mcp": {
"command": "uvx",
"args": [
"librenms-mcp"
],
"env": {
"LIBRENMS_URL": "<VALUE>",
"LIBRENMS_TOKEN": "<YOUR_VALUE>",
"LIBRENMS_VERIFY_SSL": "true",
"LIBRENMS_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"REDACT_SNMP_CREDENTIALS": "true",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"RESOLVE_SHORT_HOSTNAMES": "false",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-mhajder-librenms-mcp": {
"command": "uvx",
"args": [
"librenms-mcp"
],
"env": {
"LIBRENMS_URL": "<VALUE>",
"LIBRENMS_TOKEN": "<YOUR_VALUE>",
"LIBRENMS_VERIFY_SSL": "true",
"LIBRENMS_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"REDACT_SNMP_CREDENTIALS": "true",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"RESOLVE_SHORT_HOSTNAMES": "false",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-mhajder-librenms-mcp": {
"command": "uvx",
"args": [
"librenms-mcp"
],
"env": {
"LIBRENMS_URL": "<VALUE>",
"LIBRENMS_TOKEN": "<YOUR_VALUE>",
"LIBRENMS_VERIFY_SSL": "true",
"LIBRENMS_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"REDACT_SNMP_CREDENTIALS": "true",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"RESOLVE_SHORT_HOSTNAMES": "false",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-mhajder-librenms-mcp": {
"command": "uvx",
"args": [
"librenms-mcp"
],
"env": {
"LIBRENMS_URL": "<VALUE>",
"LIBRENMS_TOKEN": "<YOUR_VALUE>",
"LIBRENMS_VERIFY_SSL": "true",
"LIBRENMS_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"REDACT_SNMP_CREDENTIALS": "true",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"RESOLVE_SHORT_HOSTNAMES": "false",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-mhajder-librenms-mcp": {
"command": "uvx",
"args": [
"librenms-mcp"
],
"env": {
"LIBRENMS_URL": "<VALUE>",
"LIBRENMS_TOKEN": "<YOUR_VALUE>",
"LIBRENMS_VERIFY_SSL": "true",
"LIBRENMS_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"REDACT_SNMP_CREDENTIALS": "true",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"RESOLVE_SHORT_HOSTNAMES": "false",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-mhajder-librenms-mcp": {
"command": "uvx",
"args": [
"librenms-mcp"
],
"env": {
"LIBRENMS_URL": "<VALUE>",
"LIBRENMS_TOKEN": "<YOUR_VALUE>",
"LIBRENMS_VERIFY_SSL": "true",
"LIBRENMS_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"REDACT_SNMP_CREDENTIALS": "true",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"RESOLVE_SHORT_HOSTNAMES": "false",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| LIBRENMS_URL | Yes | URL of the LibreNMS instance (e.g., https://domain.tld:8443) |
| LIBRENMS_TOKEN secret | Yes | API token for LibreNMS authentication |
| LIBRENMS_VERIFY_SSL | No | Enable SSL certificate verification Default: true |
| LIBRENMS_TIMEOUT | No | Connection timeout in seconds Default: 30 |
| READ_ONLY_MODE | No | Set true to disable all write operations Default: false |
| REDACT_SNMP_CREDENTIALS | No | Replace SNMP community and SNMPv3 credentials in API responses with <redacted> Default: true |
| DISABLED_TAGS | No | Comma-separated list of tags to disable tools for |
| LOG_LEVEL | No | Logging level Default: INFO |
| RATE_LIMIT_ENABLED | No | Enable rate limiting Default: false |
| RATE_LIMIT_MAX_REQUESTS | No | Maximum requests allowed per window Default: 100 |
| RATE_LIMIT_WINDOW_MINUTES | No | Window size in minutes Default: 1 |
| TOOL_SEARCH_ENABLED | No | Replace full tool listings with search_tools + call_tool Default: false |
| TOOL_SEARCH_STRATEGY | No | Search strategy: bm25 or regex Default: bm25 |
| TOOL_SEARCH_MAX_RESULTS | No | Maximum number of tools returned by search_tools Default: 5 |
| RESOLVE_SHORT_HOSTNAMES | No | Resolve short device names to the stored hostname of the one matching device Default: false |
| SENTRY_DSN | No | Sentry DSN for error tracking (optional) |
| MCP_HTTP_HOST | No | Host to bind the HTTP server Default: 0.0.0.0 |
| MCP_HTTP_PORT | No | Port to bind the HTTP server Default: 8000 |
| MCP_TRANSPORT | No | Transport type: stdio, sse, or http Default: stdio |
| MCP_HTTP_BEARER_TOKEN | No | Optional bearer token for HTTP authentication |