Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

netbox-mcp-server

Latest version: v1.4.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
PyPI package Publisher: org:netboxlabs
261 Stars
113 Forks
3 Versions
606 Downloads
Python Repo language

Scan summary

netbox-mcp-server was last scanned on 30 Nov 2026 at version 1.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest was published on 30 Nov 2026.
  • Findings: No rules fired in version 1.4.0.
  • Downloads: 606 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.4.0 LATEST 30 Nov 2026 No rules fired
1.3.1 23 Nov 2026 No rules fired
1.3.0 20 Nov 2026 No rules fired

No rules fired in 1.4.0

Findings

Findings for v1.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.4.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

NetBox MCP Server

⚠️ Breaking Change in v1.0.0: The project structure has changed. If upgrading from v0.1.0, update your configuration:

  • Change uv run server.py to uv run netbox-mcp-server
  • Update Claude Desktop/Code configs to use netbox-mcp-server instead of server.py
  • Docker users: rebuild images with updated CMD
  • See CHANGELOG.md for full details

This is a simple read-only Model Context Protocol server for NetBox. It enables you to interact with your data in NetBox directly via LLMs that support MCP.

The server is intentionally simple: easy to get started with, hard to misuse (read-only by default, no plugin surface), and easy to fork and adapt. Forking under Apache 2.0 is a first-class path for users who need capabilities beyond the project's scope.

Community

For chat, use cases, and general MCP discussion, join the NetBox community at netdev.chat. The #ai channel is the right home for MCP integrations, questions, and sharing use cases. Bugs and feature ideas specific to this server go in issues.

Tools

Tool Description
netbox_get_objects Retrieves NetBox core objects based on their type and filters
netbox_get_object_by_id Gets detailed information about a specific NetBox object by its ID
netbox_get_changelogs Retrieves change history records (audit trail) based on filters
netbox_search_objects Searches NetBox objects by a text query, optionally limited by object type and returned fields

Note: Core NetBox object types are always available. Plugin object types can be auto-discovered. See Plugin Object Type Discovery. Advanced features (GraphQL, dynamic model discovery, etc.) are deliberately out of scope. See CONTRIBUTING.md for the full scope statement and rationale.

Usage

  1. Create a read-only API token in NetBox with sufficient permissions for the tool to access the data you want to make available via MCP.

  2. Install the server. The published package runs without a clone:

    # Run directly with uv
    uvx netbox-mcp-server
    
    # Or install with pip
    pip install netbox-mcp-server

    To run from a clone of this repository instead, install dependencies:

    # Using UV (recommended)
    uv sync
    
    # Or using pip
    pip install -e .
  3. Verify the server can run: NETBOX_URL=https://netbox.example.com/ NETBOX_TOKEN=<your-api-token> uv run netbox-mcp-server (from a clone), or the same with uvx netbox-mcp-server for the published package.

  4. Add the MCP server to your LLM client. See below for some examples with Claude.

Claude Code
Stdio Transport (Default)

Add the server using the claude mcp add command:

claude mcp add --transport stdio netbox \
  --env NETBOX_URL=https://netbox.example.com/ \
  --env NETBOX_TOKEN=<your-api-token> \
  -- uv --directory /path/to/netbox-mcp-server run netbox-mcp-server

Important notes:

  • Replace /path/to/netbox-mcp-server with the absolute path to your local clone, or replace everything after -- with uvx netbox-mcp-server to use the published package
  • The -- separator distinguishes Claude Code flags from the server command
  • Use --scope project to share the configuration via .mcp.json in version control
  • Use --scope user to make it available across all your projects (default is local)

After adding, verify with /mcp in Claude Code or claude mcp list in your terminal.

HTTP Transport

For HTTP transport, first start the server manually:

# Start the server with HTTP transport (using .env or environment variables)
NETBOX_URL=https://netbox.example.com/ \
NETBOX_TOKEN=<your-api-token> \
TRANSPORT=http \
uv run netbox-mcp-server

Then add the running server to Claude Code:

# Add the HTTP MCP server (note: URL must include http:// or https:// prefix)
claude mcp add --transport http netbox http://127.0.0.1:8000/mcp

Important notes:

  • The URL must include the protocol prefix (http:// or https://)
  • The default endpoint is /mcp when using HTTP transport
  • The server must be running before Claude Code can connect
  • Verify the connection with claude mcp list - you should see a ✓ next to the server name
Claude Desktop

Add the server configuration to your Claude Desktop config file. On Mac, edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
    "mcpServers": {
        "netbox": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/netbox-mcp-server",
                "run",
                "netbox-mcp-server"
            ],
            "env": {
                "NETBOX_URL": "https://netbox.example.com/",
                "NETBOX_TOKEN": "<your-api-token>"
            }
        }
    }
}

On Windows, use full, escaped path to your instance, such as C:\\Users\\myuser\\.local\\bin\\uv and C:\\Users\\myuser\\netbox-mcp-server. For detailed troubleshooting, consult the MCP quickstart.

  1. Use the tools in your LLM client. For example:
> Get all devices in the 'Equinix DC14' site
...
> Tell me about my IPAM utilization
...
> What Cisco devices are in my network?
...
> Who made changes to the NYC site in the last week?
...
> Show me all configuration changes to the core router in the last month
Field Filtering (Token Optimization)

Both netbox_get_objects() and netbox_get_object_by_id() support an optional fields parameter to reduce token usage:

# Without fields: ~5000 tokens for 50 devices
devices = netbox_get_objects("devices", {"site": "datacenter-1"})

# With fields: ~500 tokens (90% reduction)
devices = netbox_get_objects(
    "devices", {"site": "datacenter-1"}, fields=["id", "name", "status", "site"]
)

Common field patterns:

  • Devices: ['id', 'name', 'status', 'device_type', 'site', 'primary_ip4']
  • IP Addresses: ['id', 'address', 'status', 'dns_name', 'description']
  • Interfaces: ['id', 'name', 'type', 'enabled', 'device']
  • Sites: ['id', 'name', 'status', 'region', 'description']

The fields parameter uses NetBox's native field filtering. See the NetBox API documentation for details.

Configuration

The server supports multiple configuration sources with the following precedence (highest to lowest):

  1. Command-line arguments (highest priority)
  2. Environment variables
  3. .env file in the project root
  4. Default values (lowest priority)
Configuration Reference
Setting Type Default Required Description
NETBOX_URL URL - Yes Base URL of your NetBox instance (e.g., https://netbox.example.com/)
NETBOX_TOKEN String - Unless TOKEN_PASSTHROUGH API token for authentication. Must not be set with TOKEN_PASSTHROUGH.
TRANSPORT stdio | http stdio No MCP transport protocol
HOST String 127.0.0.1 If HTTP Host address for HTTP server
PORT Integer 8000 If HTTP Port for HTTP server
MCP_AUTH_TOKEN String - No Bearer token required on the HTTP endpoint. When unset, the HTTP transport is unauthenticated. Clients send Authorization: Bearer <token>.
TOKEN_PASSTHROUGH Boolean false No HTTP only. Each client sends its own NetBox token and NetBox applies that user's permissions. See Per-User NetBox Tokens.
VERIFY_SSL Boolean true No Whether to verify SSL certificates
ENABLE_PLUGIN_DISCOVERY Boolean false No Auto-discover plugin object types at startup
LOG_LEVEL DEBUG | INFO | WARNING | ERROR | CRITICAL INFO No Logging verbosity
Transport Examples
Stdio Transport (Claude Desktop/Code)

For local Claude Desktop or Claude Code usage with stdio transport:

{
    "mcpServers": {
        "netbox": {
            "command": "uv",
            "args": ["--directory", "/path/to/netbox-mcp-server", "run", "netbox-mcp-server"],
            "env": {
                "NETBOX_URL": "https://netbox.example.com/",
                "NETBOX_TOKEN": "<your-api-token>"
            }
        }
    }
}
HTTP Transport (Web Clients)

For web-based MCP clients using HTTP/SSE transport:

# Using environment variables
export NETBOX_URL=https://netbox.example.com/
export NETBOX_TOKEN=<your-api-token>
export TRANSPORT=http
export HOST=127.0.0.1
export PORT=8000

uv run netbox-mcp-server

# Or using CLI arguments
uv run netbox-mcp-server \
  --netbox-url https://netbox.example.com/ \
  --netbox-token <your-api-token> \
  --transport http \
  --host 127.0.0.1 \
  --port 8000
Per-User NetBox Tokens (Token Passthrough)

By default every client shares the permissions of NETBOX_TOKEN. With TOKEN_PASSTHROUGH=true, each client sends its own NetBox API token instead, and the server makes every NetBox call with that token. NetBox then applies that user's object permissions, so two people using the same server only see what they could see in NetBox itself.

export NETBOX_URL=https://netbox.example.com/
export TRANSPORT=http
export TOKEN_PASSTHROUGH=true
# NETBOX_TOKEN must not be set

uv run netbox-mcp-server

Each user creates an API token in NetBox (read-only is enough) and adds it to their client. Send it as Bearer even for v1 tokens; the server uses the right scheme towards NetBox.

claude mcp add --transport http netbox https://mcp.example.com/mcp \
  --header "Authorization: Bearer <your-netbox-token>"

How it works:

  • The server checks each bearer against NetBox (/api/authentication-check/, or /api/users/config/ on NetBox < 4.5). A token NetBox rejects (invalid, disabled, expired, or not allowed from this IP) gets 401. If NetBox cannot be reached or fails, the client gets 503 with Retry-After, not a misleading 401.
  • Accepted tokens are remembered for 60 seconds. A token revoked in that window still gets no data, because NetBox rejects the tool calls made with it.
  • An MCP session belongs to the user who opened it; another user's token cannot use it.
  • Tokens are kept in memory only (hashed as cache keys) and are never logged.
  • Clients send their NetBox token to this server, so always put it behind TLS. The server also forwards those tokens to NetBox, and logs a warning at startup if NETBOX_URL is plain HTTP (other than localhost) or VERIFY_SSL is off.

Limitations:

  • MCP_AUTH_TOKEN and ENABLE_PLUGIN_DISCOVERY cannot be combined with this mode, since both rely on a shared token. Plugin object types are not available.
  • Clients must be able to send a static Authorization header. MCP clients that only support OAuth sign-in cannot use this mode.
  • Each request with an unknown token costs one NetBox API call, so rate-limit this server at your proxy if it is exposed widely.
  • NetBox checks a token's Allowed IPs against the address that connects to it, which is this server, not the user. Tokens with Allowed IPs only work if the allowed range includes this server.
Example .env File

Create a .env file in the project root:

# Core NetBox Configuration
NETBOX_URL=https://netbox.example.com/
NETBOX_TOKEN=your_api_token_here

# Transport Configuration (optional, defaults to stdio)
TRANSPORT=stdio

# HTTP Transport Settings (only used if TRANSPORT=http)
# HOST=127.0.0.1
# PORT=8000
# Bearer token required on the HTTP endpoint. When unset, the endpoint is unauthenticated.
# MCP_AUTH_TOKEN=a-strong-random-token
# Use each client's own NetBox token instead of NETBOX_TOKEN (HTTP only)
# TOKEN_PASSTHROUGH=true

# Security (optional, defaults to true)
VERIFY_SSL=true

# Plugin Discovery (optional, defaults to false)
# ENABLE_PLUGIN_DISCOVERY=true

# Logging (optional, defaults to INFO)
LOG_LEVEL=INFO
CLI Arguments

All configuration options can be overridden via CLI arguments:

uv run netbox-mcp-server --help

# Common examples:
uv run netbox-mcp-server --log-level DEBUG --no-verify-ssl  # Development
uv run netbox-mcp-server --transport http --port 9000       # Custom HTTP port

Docker Usage

Pre-built Image (Docker Hub)

Pre-built multi-arch images (linux/amd64, linux/arm64) are published to Docker Hub on every tagged release:

docker pull netboxlabs/netbox-mcp-server:latest

Pin to a specific version in production. The latest tag tracks the most recent release and can change without notice. See the releases page for available versions:

docker pull netboxlabs/netbox-mcp-server:<X.Y.Z>   # exact version
docker pull netboxlabs/netbox-mcp-server:<X.Y>     # latest within a minor
docker pull netboxlabs/netbox-mcp-server:<X>       # latest within a major

Verify image provenance (optional but recommended). Images are signed with cosign (keyless, via GitHub OIDC) and ship with SLSA build provenance:

cosign verify \
  --certificate-identity-regexp '^https://github.com/netboxlabs/netbox-mcp-server/' \
  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
  netboxlabs/netbox-mcp-server:<tag>
Standard Docker Image

Build and run the NetBox MCP server in a container:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases netbox-mcp-server

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229