Is the NetBox MCP server safe? What it can reach
What the NetBox MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
NetBox Labs maintains this MCP server. It runs locally over stdio by default, with an optional HTTP mode, and signs in with a NetBox API token. The project describes it as read-only, with four tools for querying objects and changelogs. Use a read-only NetBox token as the real limit.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| netboxlabs/netbox-mcp-server | Official | active |
It runs as a local process on your machine.
How it signs in
A NetBox API token set in NETBOX_TOKEN. The server queries NetBox with that token’s rights. In HTTP mode, MCP_AUTH_TOKEN sets a bearer token for clients, and TOKEN_PASSTHROUGH lets each client send its own NetBox token.
What its tools can do
| Kind | Tools |
|---|---|
| Read | netbox_get_objects, netbox_get_object_by_id, netbox_get_changelogs, netbox_search_objects |
| Write | none documented |
| Can’t be undone | none documented |
All four tools are queries. The README recommends a read-only NetBox token, so the token is what enforces that.
Built-in limits
| Option | What it does |
|---|---|
Read-only NetBox API token | Recommended in the README. NetBox enforces it, whatever the server does. |
MCP_AUTH_TOKEN | Bearer token for the HTTP endpoint. Without it, the HTTP endpoint has no authentication. |
TOKEN_PASSTHROUGH | Default false. When true, each client uses its own NetBox token so NetBox applies that user’s permissions. |
HOST | HTTP mode binds to 127.0.0.1 by default. |
VERIFY_SSL | Default true. Turning it off weakens the TLS check on the NetBox connection. |
ENABLE_PLUGIN_DISCOVERY | Default false. Plugin object types are off until you turn it on. |
The risks
- A NetBox token can see your device, IP, circuit and tenant inventory, so an injected instruction can pull a map of your network into the conversation.
- netbox_get_changelogs shows who changed what and when, which exposes staff names and change history.
- In HTTP mode with no MCP_AUTH_TOKEN, anyone who can reach the port can query NetBox with the server’s token.
- If you give the server a read-write token, the README’s read-only design doesn’t stop NetBox from accepting writes elsewhere with that token.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --env NETBOX_URL=... --env NETBOX_TOKEN=... netbox -- uvx netbox-mcp-serverClaude Code names MCP tools mcp__netbox__<tool>. Once you know the tool names, deny the ones you won’t use and set the rest to ask in .claude/settings.json.
Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.netbox]
command = "uvx"
args = ["netbox-mcp-server"]
env_vars = ["NETBOX_URL", "NETBOX_TOKEN"]Checklist
- Create a NetBox token with read-only permissions for this server.
- Keep VERIFY_SSL at its default of true.
- Set MCP_AUTH_TOKEN if you run HTTP mode, and keep HOST on 127.0.0.1.
- Leave ENABLE_PLUGIN_DISCOVERY off unless you need plugin objects.
Checked against the vendor documentation on November 25, 2026. netboxlabs/netbox-mcp-server README · README (raw)
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing