Skip to main content
Glama

NetBox MCP Server - Full CRUD

This repository implements an MCP (Model Connector Plugin) server for NetBox with full CRUD capabilities, search, and changelog retrieval. It provides a small set of tools intended for automation, DevOps, and LLM-based integrations.

Quickstart

  1. Install dependencies (Python 3.11+ recommended):

    python -m pip install -r requirements.txt
  2. Configure environment variables (see .env.example).

  3. Run tests:

    pytest -q

Usage example (programmatic)

from netbox_mcp_server.config import get_settings
from netbox_mcp_server.client import NetBoxRestClient
from netbox_mcp_server.objects import netbox_get_objects

settings = get_settings()
client = NetBoxRestClient(settings.NETBOX_URL, settings.NETBOX_TOKEN, timeout=settings.TIMEOUT, rate_limit=settings.RATE_LIMIT)
resp = netbox_get_objects(client, object_type='dcim.sites', filters={'name__icontains': 'prod'}, limit=10)
print(resp)

Project layout

See src/netbox_mcp_server/ for implementation. Tests are under tests/.

Contributing

Please open issues or pull requests. See CONTRIBUTING.md for guidelines.

A
license - permissive license
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gutierrezx7/netbox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server