Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

netbox-mcp-server

MCP.Pizza Chef: netboxlabs

The netbox-mcp-server is a Model Context Protocol server providing read-only access to NetBox core objects and change history. It allows LLMs to query and retrieve detailed information about NetBox data via defined tools, facilitating integration of network infrastructure data into AI workflows. The server supports core NetBox object types and audit trails, enabling secure, scoped, and structured interaction with NetBox environments through LLMs.

Use This MCP server To

Query NetBox core objects by type and filters Retrieve detailed NetBox object information by ID Access NetBox change history and audit logs Integrate NetBox data into AI-driven network management workflows Enable LLMs to explore network inventory data securely Automate network documentation extraction from NetBox

README

NetBox MCP Server

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.

Tools

Tool Description
get_objects Retrieves NetBox core objects based on their type and filters
get_object_by_id Gets detailed information about a specific NetBox object by its ID
get_changelogs Retrieves change history records (audit trail) based on filters

Note: the set of supported object types is explicitly defined and limited to the core NetBox objects for now, and won't work with object types from plugins.

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 dependencies: uv add -r requirements.txt

  3. Verify the server can run: NETBOX_URL=https://netbox.example.com/ NETBOX_TOKEN=<your-api-token> uv run server.py

  4. Add the MCP server configuration to your LLM client. For example, in Claude Desktop (Mac):

{
  "mcpServers": {
        "netbox": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/netbox-mcp-server",
                "run",
                "server.py"
            ],
            "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

Development

Contributions are welcome! Please open an issue or submit a PR.

License

This project is licensed under the Apache 2.0 license. See the LICENSE file for details.

netbox-mcp-server FAQ

How do I authenticate the netbox-mcp-server with my NetBox instance?
You create a read-only API token in NetBox with appropriate permissions and provide it to the server via environment variables.
Can the netbox-mcp-server modify NetBox data?
No, it is strictly read-only and does not support any write operations to ensure data integrity.
Which NetBox object types are supported by this MCP server?
It supports a limited set of core NetBox object types explicitly defined by the server; plugin object types are not supported.
How do I run the netbox-mcp-server?
Install dependencies from requirements.txt, then run the server with environment variables NETBOX_URL and NETBOX_TOKEN set.
Is the netbox-mcp-server compatible with multiple LLM providers?
Yes, it works with any LLM supporting MCP, including OpenAI, Claude, and Gemini.
Can I extend the netbox-mcp-server to support plugin object types?
Currently, plugin object types are not supported; extending support would require server modification.
What tools does the netbox-mcp-server expose?
It exposes get_objects, get_object_by_id, and get_changelogs for querying NetBox data and audit trails.
How does the netbox-mcp-server ensure secure access to NetBox data?
By requiring a read-only API token and limiting operations to read-only queries only.