998 B
998 B
OPNsense MCP Docker Setup
This folder packages opnsense-mcp-server behind an HTTP MCP gateway for local Docker use.
Files
Dockerfileinstalls the published npm package andsupergateway.compose.ymldefines a single long-runningopnsense-mcpHTTP service..env.exampleshows the required and optional environment variables.
Usage
-
Create
.envfrom.env.example. If you want SSH features with key auth, setHOST_SSH_KEY_PATHto a real host path and keepOPNSENSE_SSH_KEY_PATH=/run/secrets/opnsense_ssh_key. -
Build and start the service:
docker compose -f compose.yml up -d --build -
Connect your MCP client to the Streamable HTTP endpoint:
http://localhost:8811/mcp -
Check service health if needed:
docker compose -f compose.yml ps
This avoids duplicate one-off containers because the intended workflow uses a single named service with docker compose up, not docker compose run.