Files
docker-images/images/infrahub-mcp
Damien Arnodo 24b5146056 fix: correct upstream repo URL and clone logic
- Fix repo URL: opsmill/infrahub-mcp (not infrahub-mcp-server)
- Clone default branch when INFRAHUB_MCP_VERSION is not set
- Remove INFRAHUB_API_TOKEN from ENV to avoid Docker secrets warning
- Rewrite comments in English
2026-03-15 10:26:52 +00:00
..
2026-03-15 10:06:30 +00:00

infrahub-mcp

Docker image for the Infrahub MCP server (OpsMill).

Packages the infrahub-mcp-server into a ready-to-use container, running the server in SSE mode on port 8001.

Environment variables

Variable Description Default
INFRAHUB_ADDRESS Infrahub instance URL http://localhost:8000
INFRAHUB_API_TOKEN Infrahub API token (empty)
MCP_HOST Listen address 0.0.0.0
MCP_PORT Listen port 8001

Build

docker build -t gitea.arnodo.fr/damien/infrahub-mcp:latest images/infrahub-mcp/

Pin a specific upstream version

docker build --build-arg INFRAHUB_MCP_VERSION=v1.0.0 \
  -t gitea.arnodo.fr/damien/infrahub-mcp:v1.0.0 images/infrahub-mcp/

Usage

docker run -d --name infrahub-mcp \
  -e INFRAHUB_ADDRESS=http://infrahub.local:8000 \
  -e INFRAHUB_API_TOKEN=my-api-token \
  -p 8001:8001 \
  gitea.arnodo.fr/damien/infrahub-mcp:latest

MCP client configuration (Claude Desktop, Cursor, etc.)

Point your client to the container's SSE endpoint:

{
  "mcpServers": {
    "infrahub_mcp": {
      "url": "http://localhost:8001/sse"
    }
  }
}