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-netbox-mcp": {
"command": "uvx",
"args": [
"netbox-mcp"
],
"env": {
"NETBOX_URL": "<VALUE>",
"NETBOX_TOKEN": "<YOUR_VALUE>",
"NETBOX_VERIFY_SSL": "true",
"NETBOX_TIMEOUT": "30",
"NETBOX_BRANCHING_ENABLED": "false",
"NETBOX_BRANCH": "",
"NETBOX_PLUGIN_DISCOVERY": "false",
"READ_ONLY_MODE": "false",
"DRY_RUN_MODE": "false",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RESPONSE_MAX_SIZE": "",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "60",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"SSL_CERT_DIR": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SSL_CERT_FILE": "<VALUE>",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
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-netbox-mcp": {
"command": "uvx",
"args": [
"netbox-mcp"
],
"env": {
"NETBOX_URL": "<VALUE>",
"NETBOX_TOKEN": "<YOUR_VALUE>",
"NETBOX_VERIFY_SSL": "true",
"NETBOX_TIMEOUT": "30",
"NETBOX_BRANCHING_ENABLED": "false",
"NETBOX_BRANCH": "",
"NETBOX_PLUGIN_DISCOVERY": "false",
"READ_ONLY_MODE": "false",
"DRY_RUN_MODE": "false",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RESPONSE_MAX_SIZE": "",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "60",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"SSL_CERT_DIR": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SSL_CERT_FILE": "<VALUE>",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
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-netbox-mcp": {
"command": "uvx",
"args": [
"netbox-mcp"
],
"env": {
"NETBOX_URL": "<VALUE>",
"NETBOX_TOKEN": "<YOUR_VALUE>",
"NETBOX_VERIFY_SSL": "true",
"NETBOX_TIMEOUT": "30",
"NETBOX_BRANCHING_ENABLED": "false",
"NETBOX_BRANCH": "",
"NETBOX_PLUGIN_DISCOVERY": "false",
"READ_ONLY_MODE": "false",
"DRY_RUN_MODE": "false",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RESPONSE_MAX_SIZE": "",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "60",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"SSL_CERT_DIR": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SSL_CERT_FILE": "<VALUE>",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
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-netbox-mcp": {
"command": "uvx",
"args": [
"netbox-mcp"
],
"env": {
"NETBOX_URL": "<VALUE>",
"NETBOX_TOKEN": "<YOUR_VALUE>",
"NETBOX_VERIFY_SSL": "true",
"NETBOX_TIMEOUT": "30",
"NETBOX_BRANCHING_ENABLED": "false",
"NETBOX_BRANCH": "",
"NETBOX_PLUGIN_DISCOVERY": "false",
"READ_ONLY_MODE": "false",
"DRY_RUN_MODE": "false",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RESPONSE_MAX_SIZE": "",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "60",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"SSL_CERT_DIR": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SSL_CERT_FILE": "<VALUE>",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
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-netbox-mcp": {
"command": "uvx",
"args": [
"netbox-mcp"
],
"env": {
"NETBOX_URL": "<VALUE>",
"NETBOX_TOKEN": "<YOUR_VALUE>",
"NETBOX_VERIFY_SSL": "true",
"NETBOX_TIMEOUT": "30",
"NETBOX_BRANCHING_ENABLED": "false",
"NETBOX_BRANCH": "",
"NETBOX_PLUGIN_DISCOVERY": "false",
"READ_ONLY_MODE": "false",
"DRY_RUN_MODE": "false",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RESPONSE_MAX_SIZE": "",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "60",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"SSL_CERT_DIR": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SSL_CERT_FILE": "<VALUE>",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
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-netbox-mcp": {
"command": "uvx",
"args": [
"netbox-mcp"
],
"env": {
"NETBOX_URL": "<VALUE>",
"NETBOX_TOKEN": "<YOUR_VALUE>",
"NETBOX_VERIFY_SSL": "true",
"NETBOX_TIMEOUT": "30",
"NETBOX_BRANCHING_ENABLED": "false",
"NETBOX_BRANCH": "",
"NETBOX_PLUGIN_DISCOVERY": "false",
"READ_ONLY_MODE": "false",
"DRY_RUN_MODE": "false",
"DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RESPONSE_MAX_SIZE": "",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "60",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"SSL_CERT_DIR": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SSL_CERT_FILE": "<VALUE>",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
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 |
|---|---|---|
| NETBOX_URL | Yes | The base URL of the NetBox instance, e.g. https://netbox.example.com |
| NETBOX_TOKEN secret | Yes | NetBox API token. v2 tokens (nbt_<key>.<token>, NetBox 4.5+) are sent as Bearer; legacy v1 tokens as Token. |
| NETBOX_VERIFY_SSL | No | Enable or disable SSL certificate verification for NetBox requests. Default: true |
| NETBOX_TIMEOUT | No | Total time allowed for one NetBox request, retries included (seconds). Default: 30 |
| NETBOX_BRANCHING_ENABLED | No | Set to true to enable netbox-branching plugin support and branch tools/arguments. Default: false |
| NETBOX_BRANCH | No | Default branch name or schema ID used by every call; empty means main. Requires NETBOX_BRANCHING_ENABLED=true. |
| NETBOX_PLUGIN_DISCOVERY | No | Set to true to expose plugin models (e.g. netbox_dns.zone) via object type discovery. Default: false |
| READ_ONLY_MODE | No | Set to true to hide all write tools (create, update, delete). Default: false |
| DRY_RUN_MODE | No | Set to true to make every write tool only simulate the change and never modify NetBox. Default: false |
| DISABLED_TAGS | No | Comma-separated list of tool tags to disable, e.g. delete,graphql,branching. |
| LOG_LEVEL | No | Logging level for the server. Default: INFO |
| RESPONSE_MAX_SIZE | No | Maximum tool response size in bytes; larger responses are truncated. Empty means unlimited. |
| RATE_LIMIT_ENABLED | No | Set to true to enable rate limiting. Default: false |
| RATE_LIMIT_MAX_REQUESTS | No | Maximum requests allowed per rate limit window. Default: 60 |
| RATE_LIMIT_WINDOW_MINUTES | No | Rate limit window size in minutes. Default: 1 |
| TOOL_SEARCH_ENABLED | No | Set to true to replace full tool listings with search_tools + call_tool. Default: false |
| TOOL_SEARCH_STRATEGY | No | Search strategy: bm25 (natural language) or regex (pattern match). Default: bm25 |
| TOOL_SEARCH_MAX_RESULTS | No | Maximum number of tools returned by search_tools. Default: 5 |
| SENTRY_DSN | No | Sentry DSN for error tracking and performance monitoring. Leave unset to disable Sentry. |
| SSL_CERT_DIR | No | Path to a custom CA certificate directory. Takes precedence over OS trust store when set. |
| MCP_HTTP_HOST | No | Host to bind the HTTP server when using SSE or HTTP transport. Default: 127.0.0.1 |
| MCP_HTTP_PORT | No | Port to bind the HTTP server when using SSE or HTTP transport. Default: 8000 |
| MCP_TRANSPORT | No | MCP transport type: stdio, sse, or http. Default: stdio |
| SSL_CERT_FILE | No | Path to a custom CA certificate file. Takes precedence over OS trust store when set. |
| SENTRY_RELEASE | No | Sentry release version. Auto-detected from package if not set. |
| SENTRY_ENABLE_LOGS | No | Enable log capture as Sentry breadcrumbs and events. Default: true |
| SENTRY_ENVIRONMENT | No | Sentry environment name, e.g. production or staging. |
| MCP_HTTP_BEARER_TOKEN | No | Optional bearer token for HTTP transport authentication. Leave empty for no auth. |
| SENTRY_SEND_DEFAULT_PII | No | Include personally identifiable information in Sentry events. Default: true |
| SENTRY_PROFILE_LIFECYCLE | No | Sentry profiling lifecycle mode: all, continuation, or trace. Default: trace |
| SENTRY_TRACES_SAMPLE_RATE | No | Sentry performance monitoring sample rate (0.0-1.0). Default: 1.0 |
| SENTRY_PROFILE_SESSION_SAMPLE_RATE | No | Sentry continuous profiling sample rate (0.0-1.0). Default: 1.0 |