Netbox MCP Server
A powerful integration server that combines Netbox's network infrastructure management capabilities with MCP (Multi-Cloud Platform) functionality.
Prerequisites
Ensure you have the following installed on your system:
Installation
Option 1: Local Installation
- Clone the repository:
apt install python3.10-venv
git clone https://github.com/duckmak14/netbox-mcp.git
cd netbox-mcp
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Configure environment variables:
Create a
.env
file in the project root with the following variables:
NETBOX_URL=your_netbox_url
NETBOX_TOKEN=your_api_token
- Start the server:
- Access the application at
http://localhost:8000
Option 2: Docker Installation
- Clone the repository:
git clone https://github.com/duckmak14/netbox-mcp.git
cd netbox-mcp
- Configure environment variables:
Create a
.env
file in the project root with the following variables:
NETBOX_URL=your_netbox_url
NETBOX_TOKEN=your_api_token
- Build and run with Docker Compose:
**Note:** Starting from Docker Compose version 2.0, use the `docker compose` command. For older versions, use `docker-compose`.
# Build and start the container in detached mode
docker compose up -d
# View logs
docker compose logs -f
# Stop the container
docker compose down
**Note:** For older versions, use `docker-compose`.
# Build and start the container in detached mode
docker-compose up -d
# View logs
docker-compose logs -f
# Stop the container
docker-compose down
- Access the application at
http://localhost:8000