AN

alexkiwi1/netbox-mcp-rw

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

18 stars 10 forks 품질 65 트렌드 22Apache-2.0

Unlike existing read-only NetBox MCP implementations, this server provides comprehensive CRUD (Create, Read, Update, Delete) operations, enabling you to not only query your NetBox data but also...

개요

Unlike existing read-only NetBox MCP implementations, this server provides comprehensive CRUD (Create, Read, Update, Delete) operations, enabling you to not only query your NetBox data but also modify it directly through LLMs that support MCP. - : The only MCP server that allows both reading from AND writing to NetBox - : Create, read, update, and delete any NetBox object type - : Efficiently handle multiple objects at once - : Supports all major NetBox models (DCIM, IPAM, Circuits, Virtualization, etc.

README

원문 README의 일부입니다. 원문 보기.

NetBox MCP Server - Read & Write Edition

The first Model Context Protocol (MCP) server with full read AND write capabilities for NetBox.

Unlike existing read-only NetBox MCP implementations, this server provides comprehensive CRUD (Create, Read, Update, Delete) operations, enabling you to not only query your NetBox data but also modify it directly through LLMs that support MCP.

What Makes This Special

  • First Read-Write NetBox MCP: The only MCP server that allows both reading from AND writing to NetBox
  • Full CRUD Operations: Create, read, update, and delete any NetBox object type
  • Bulk Operations: Efficiently handle multiple objects at once
  • Comprehensive Coverage: Supports all major NetBox models (DCIM, IPAM, Circuits, Virtualization, etc.)
  • Production Ready: Built with proper error handling, validation, and security practices

Features

Read Operations

  • List and filter any NetBox object type
  • Get detailed information about specific objects
  • Access change history and audit trails
  • Advanced filtering and search capabilities

Write Operations

  • Create new devices, IP addresses, sites, racks, and more
  • Update existing object properties
  • Delete objects (with proper safeguards)
  • Bulk create, update, and delete operations

Supported Object Types

DCIM (Device and Infrastructure):

  • devices, device-types, device-roles, manufacturers
  • sites, locations, racks, rack-roles
  • cables, interfaces, power-ports, console-ports
  • platforms, regions, virtual-chassis

IPAM (IP Address Management):

  • ip-addresses, prefixes, vlans, vrfs
  • asns, aggregates, services
  • roles, rirs, route-targets

Circuits:

  • circuits, circuit-types, providers
  • circuit-terminations, provider-networks

Virtualization:

  • virtual-machines, clusters, cluster-groups
  • cluster-types, vm-interfaces

And many more…

Installation

  1. Clone this repository:
git clone https://github.com/alexkiwi1/netbox-mcp-rw.git
cd netbox-mcp-rw
  1. Install dependencies:
# Using UV (recommended)
uv sync

# Or using pip
pip install -e .
  1. Set environment variables:
export NETBOX_URL="https://your-netbox-instance.com/"
export NETBOX_TOKEN="your-api-token"
  1. Test the server:
NETBOX_URL=https://netbox.example.com/ NETBOX_TOKEN= uv run server.py

MCP Client Configuration

Claude Desktop (Mac/Windows)

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "netbox-rw": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/netbox-mcp-rw",
        "run",
        "server.py"
      ],
      "env": {
        "NETBOX_URL": "https://your-netbox-instance.com/",
        "NETBOX_TOKEN": "your-api-token"
      }
    }
  }
}

Other MCP Clients

This server works with any MCP-compatible client. Adjust the command and arguments based on your client’s requirements.

Usage Examples

Reading Data

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "netbox-rw": { "command": "uv", "args": [ "--directory", "/path/to/netbox-mcp-rw", "run", "server.py" ], "env": { "NETBOX_URL": "https://your-netbox-instance.com/", "NETBOX_TOKEN": "your-api-token" } } } }