feat: add netbox-mcp-server Docker image #3

Merged
Damien merged 4 commits from feature/netbox-mcp-server into main 2026-01-11 10:12:38 +00:00
Showing only changes of commit 3c2a4886e6 - Show all commits

View File

@@ -0,0 +1,43 @@
# =============================================================================
# NetBox MCP Server
#
# Image Docker pour le serveur MCP NetBox (Model Context Protocol)
# Permet l'interaction read-only avec NetBox via LLMs
# Source: https://github.com/netboxlabs/netbox-mcp-server
# =============================================================================
FROM python:3.12-slim
LABEL maintainer="Damien Arnodo"
LABEL description="NetBox MCP Server for read-only interaction with NetBox data in LLMs"
ARG NETBOX_MCP_VERSION=1.0.0
# Installation des dépendances système
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Installation de uv pour la gestion des dépendances Python
RUN pip install --no-cache-dir uv
# Clone et installation du netbox-mcp-server
WORKDIR /app
RUN git clone --depth 1 --branch v${NETBOX_MCP_VERSION} \
https://github.com/netboxlabs/netbox-mcp-server.git . \
&& uv sync --frozen
# Variables d'environnement (à surcharger au runtime)
ENV NETBOX_URL=""
ENV NETBOX_TOKEN=""
ENV TRANSPORT="stdio"
ENV VERIFY_SSL="true"
ENV LOG_LEVEL="INFO"
# Pour le mode HTTP (optionnel)
ENV HOST="0.0.0.0"
ENV PORT="8000"
EXPOSE 8000
# Entrypoint pour le mode STDIO (compatible MCP)
ENTRYPOINT ["uv", "run", "netbox-mcp-server"]