NetBox MCP Server

Model Context Protocol (MCP) server for read-only interaction with NetBox data in LLMs

Local serverstdioPython

What is the NetBox MCP Server?

Model Context Protocol (MCP) server for read-only interaction with NetBox data in LLMs

The short version

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.

What it needs from you

  • NetBox 4.2 or later - API token must have read access to the object-types endpoint - Plugin models must expose a REST API endpoint to be discovered

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_objectsRetrieves NetBox core objects based on their type and filters
get_object_by_idGets detailed information about a specific NetBox object by its ID
get_changelogsRetrieves change history records (audit trail) based on filters

How to install the NetBox MCP Server

{
    "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>"
            }
        }
    }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • NetBox 4.2 or later - API token must have read access to the object-types endpoint - Plugin models must expose a REST API endpoint to be discovered
VariableDescriptionRequired
NETBOX_URLEndpoint or connection string the server talks to.Yes
NETBOX_TOKENCredential the server authenticates with.Yes
ENABLE_PLUGIN_DISCOVERYConfiguration value read at startup.Optional
TRANSPORTConfiguration value read at startup.Optional
HOSTEndpoint or connection string the server talks to.Optional
PORTConfiguration value read at startup.Optional
MCP_AUTH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • “Use NetBox to get objects.”
  • “Use NetBox to get object by id.”
  • “Use NetBox to get changelogs.”

Frequently asked questions

Model Context Protocol (MCP) server for read-only interaction with NetBox data in LLMs Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.