From 3c2a4886e6c4db7f875a36190cf71e867c3c7781 Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Sat, 10 Jan 2026 20:19:05 +0000 Subject: [PATCH] feat: add netbox-mcp-server image --- images/netbox-mcp-server/Dockerfile | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 images/netbox-mcp-server/Dockerfile diff --git a/images/netbox-mcp-server/Dockerfile b/images/netbox-mcp-server/Dockerfile new file mode 100644 index 0000000..aec9329 --- /dev/null +++ b/images/netbox-mcp-server/Dockerfile @@ -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"]