Start in enterprise mode
You can enable enterprise mode in three ways:- CLI flag
- Environment variable
- Docker Compose
The
SERVER_MODE=enterprise environment variable accepts development and enterprise as valid values. The former value production is deprecated — if you use it, MCPJungle will warn you and treat it as enterprise.Initialize the server
After the first boot in enterprise mode, you must initialize the server before any clients can connect. Run the following command from your client machine:~/.mcpjungle.conf on your local machine. All subsequent CLI commands that require authentication will read from this file automatically.
Run with Docker
For production, use the standard (minimal) MCPJungle image. It is based ondistroless/base and contains only the mcpjungle binary — no shell, no extra tooling.
Supply your database connection string with the DATABASE_URL environment variable:
Graceful shutdown
MCPJungle handlesSIGTERM for graceful shutdown. It closes all active stateful sessions, flushes telemetry, and stops accepting new connections before exiting.
Send SIGTERM to stop the server cleanly:
docker stop sends SIGTERM by default, so no extra flags are needed.
What enterprise mode enables
| Feature | Development mode | Enterprise mode |
|---|---|---|
| Authentication | Disabled | Required for MCP clients |
| Access control (ACLs) | Disabled | Enabled |
| OpenTelemetry metrics | Disabled (opt-in) | Enabled by default |
| Server initialization | Automatic | Manual (init-server) |
Even in enterprise mode, telemetry can be overridden with
OTEL_ENABLED=false if you want to disable it.