NetBox MCP Server
Model Context Protocol (MCP) server for read-only interaction with NetBox data in LLMs
Overview
NetBox MCP Server is a read-only Model Context Protocol (MCP) server designed for interacting with NetBox data through LLMs (Large Language Models).
To use the NetBox MCP Server, create a read-only API token in NetBox, install the necessary dependencies, run the server with your NetBox URL and token, and configure your LLM client to use the MCP server.
- Read-only access to NetBox data via LLMs - Tools for retrieving and searching NetBox objects - Simple setup and configuration for integration with LLM clients
- Retrieving device information from NetBox for network management.
- Performing global searches for specific NetBox objects.
- Accessing detailed information about NetBox objects by their ID.
Add to your AI client
Use these steps to connect NetBox MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"netbox-mcp-server-netboxlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-netbox-mcp-server-netboxlabs"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"netbox-mcp-server-netboxlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-netbox-mcp-server-netboxlabs"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"netbox-mcp-server-netboxlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-netbox-mcp-server-netboxlabs"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"netbox-mcp-server-netboxlabs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-netbox-mcp-server-netboxlabs"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"netbox-mcp-server-netboxlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-netbox-mcp-server-netboxlabs"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"netbox-mcp-server-netboxlabs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-netbox-mcp-server-netboxlabs"
]
}
}
}FAQ
What is the purpose of the NetBox MCP Server?
It allows users to interact with NetBox data in a read-only manner using LLMs that support the Model Context Protocol.
Is the NetBox MCP Server free to use?
Yes! The server is open-source and available under the Apache 2.0 license.
What types of objects can I access with the NetBox MCP Server?
Currently, it supports core NetBox objects only, and does not work with object types from plugins.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1923,"uuid":"065cd8ee-2199-4e92-8f84-d5651037d0fe","name":"netbox-mcp-server","title":"NetBox MCP Server","description":"Model Context Protocol (MCP) server for read-only interaction with NetBox data in LLMs","avatar_url":"https://avatars.githubusercontent.com/u/116572680?v=4","created_at":"2025-03-05T06:07:41.405Z","updated_at":"2025-03-12T10:21:40.402Z","status":"created","author_name":"netboxlabs","author_avatar_url":"https://avatars.githubusercontent.com/u/116572680?v=4","tags":"mcp,netbox,mcp-server","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/netboxlabs/netbox-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"34\",\"license\":\"Apache-2.0 license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-05-05 14:23:50\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]