NetBox MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
NetBox MCP Server
A full CRUD Model Context Protocol (MCP) server for NetBox built with FastMCP. Provides 8 tools covering 119 object types across all 10 NetBox API apps.
Tools
Tool | Method | Description |
| GET | List, filter, and paginate any object type |
| GET | Retrieve a single object by ID |
| POST | Create a new object |
| PATCH/PUT | Update an existing object |
| DELETE | Delete an object |
| — | Discover all supported object types |
| GET | List available IPs, prefixes, VLANs, or ASNs |
| POST | Allocate next available from a pool |
Related MCP server: network-aiops
Supported Object Types
119 resources across 10 apps:
dcim (44) — sites, devices, interfaces, racks, cables, manufacturers, platforms, and more
ipam (18) — prefixes, ip-addresses, vlans, vrfs, asns, services, and more
circuits (11) — providers, circuits, terminations, virtual circuits
vpn (10) — tunnels, ike/ipsec policies, l2vpns
extras (13) — tags, custom fields, webhooks, config contexts
tenancy (6) — tenants, contacts
virtualization (6) — clusters, virtual machines, VM interfaces
core (4) — data sources, jobs, object changes
users (4) — users, groups, tokens, permissions
wireless (3) — wireless LANs, wireless links
Prerequisites
Python 3.11+
A running NetBox instance
A NetBox API token (with read/write permissions for full CRUD)
Installation
# Clone the repo
git clone https://github.com/your-username/NetBox_MCP.git
cd NetBox_MCP
# Create a virtual environment
python3.12 -m venv .venv
source .venv/bin/activate
# Install the package
pip install -e .Configuration
Copy the example env file and fill in your values:
cp .env.example .envEdit .env:
NETBOX_URL=https://your-netbox-instance.example.com
NETBOX_TOKEN=your-api-token-here
VERIFY_SSL=trueYou can also pass these as CLI arguments:
netbox-mcp-server --netbox-url https://netbox.example.com --netbox-token your-tokenRunning the Server
stdio (default — for Claude Desktop, Claude Code, etc.)
source .venv/bin/activate
netbox-mcp-serverSSE (HTTP transport)
netbox-mcp-server --transport sse --host 127.0.0.1 --port 8000Claude Desktop Integration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"netbox": {
"command": "/absolute/path/to/NetBox_MCP/.venv/bin/netbox-mcp-server",
"env": {
"NETBOX_URL": "https://your-netbox-instance.example.com",
"NETBOX_TOKEN": "your-api-token-here"
}
}
}
}Claude Code Integration
Add the MCP server to Claude Code:
claude mcp add netbox -- /absolute/path/to/NetBox_MCP/.venv/bin/netbox-mcp-serverOr with environment variables:
claude mcp add netbox -e NETBOX_URL=https://netbox.example.com -e NETBOX_TOKEN=your-token -- /absolute/path/to/NetBox_MCP/.venv/bin/netbox-mcp-serverUsage Examples
Once connected, an LLM can use the tools like this:
List all active devices:
netbox_list_objects(object_type="dcim.devices", filters={"status": "active"})Get a specific site:
netbox_get_object(object_type="dcim.sites", object_id=1)Create a new prefix:
netbox_create_object(object_type="ipam.prefixes", data={"prefix": "10.0.0.0/24", "status": "active"})Update a device:
netbox_update_object(object_type="dcim.devices", object_id=42, data={"status": "planned"})Delete a VLAN:
netbox_delete_object(object_type="ipam.vlans", object_id=100)Allocate next available IP from a prefix:
netbox_create_available(resource_type="ipam.prefixes", resource_id=5, available_type="ips", data={"description": "New host"})Discover object types:
netbox_list_object_types(app="dcim")License
See LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Full-capability MCP: text, image, video, audio, and 3D with API key, jobs, receipts, and BYOK.
One MCP URL for all your connectors — scoped writes, enforced constraints, and a full audit trail.
Single-connection MCP gateway discovering and executing 490+ verified MCP & A2A tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables comprehensive interaction with NetBox infrastructure management through both read and write operations. Supports full CRUD operations for devices, IP addresses, sites, racks, and other NetBox objects through natural language commands.918Apache 2.0
- AlicenseAqualityBmaintenanceProvides MCP tools for governed multi-vendor network device operations, including configuration management (backup, diff, merge, replace, rollback) and read-only queries (facts, interfaces, BGP, LLDP, ARP) via NAPALM, with optional NetBox source-of-truth integration.33MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to read and manage NetBox network infrastructure data via MCP. Supports querying all object types, search, changelogs, GraphQL, IP/prefix/VLAN allocation, cable tracing, config rendering, and write operations with safety modes.2298 PyPI4MIT
- AlicenseAqualityCmaintenanceEnables LLMs supporting MCP to interact with NetBox data, providing read tools plus write tools to create, partially update, and bulk create or update objects, while intentionally excluding deletion.8Apache 2.0