start launches the gateway, init-server prepares it for enterprise use, and version reports what is running.
start
Starts the MCPJungle HTTP server and MCP gateway.
8080 by default and exposes the MCP proxy at /mcp. On first run in development mode, it automatically initializes itself — no additional setup is needed.
Flags
TCP port to bind the HTTP server to. Overrides the
PORT environment variable. Defaults to 8080.Start the server in enterprise mode, which enables access control, authenticated clients, and user management. Equivalent to setting
SERVER_MODE=enterprise. When using this flag on a fresh database, the server will print a reminder to run init-server before it can be used.Deprecated alias for
--enterprise. Use --enterprise instead.Environment variables
Thestart command reads the following environment variables. A .env file in the working directory is loaded automatically if present.
| Variable | Description | Default |
|---|---|---|
PORT | TCP port to bind to. Overridden by --port. | 8080 |
SERVER_MODE | Server mode: development or enterprise. Overridden by --enterprise. | development |
DATABASE_URL | Full DSN for the database connection (SQLite or Postgres). | SQLite file in working directory |
POSTGRES_HOST | Postgres host. When set, individual Postgres env vars are used to construct the DSN. | — |
POSTGRES_PORT | Postgres port. | 5432 |
POSTGRES_USER | Postgres user. | postgres |
POSTGRES_PASSWORD | Postgres password. Also readable from POSTGRES_PASSWORD_FILE. | — |
POSTGRES_DB | Postgres database name. Also readable from POSTGRES_DB_FILE. | postgres |
MCP_SERVER_INIT_REQ_TIMEOUT_SEC | Seconds to wait for an upstream MCP server to respond during registration. | 30 |
SESSION_IDLE_TIMEOUT_SEC | Idle timeout in seconds for stateful MCP sessions. Set to 0 for no timeout. | -1 (no timeout) |
OTEL_ENABLED | Enable OpenTelemetry tracing and metrics. Accepts true/1 or false/0. | false in dev, true in enterprise |
For
POSTGRES_PASSWORD and POSTGRES_DB, you can use the _FILE variant (e.g., POSTGRES_PASSWORD_FILE=/run/secrets/pg_pass) to read the value from a file. This is useful for Docker secrets and Kubernetes secrets mounted as files.Examples
Start in development mode (default):Server modes
- Development mode (default)
- Enterprise mode
Development mode is designed for individual use. The server initializes itself automatically on first startup — no admin token or
init-server step is needed. Access control is not enforced, meaning any client that can reach the server can call any tool.This mode is appropriate for local development and single-user deployments.init-server
Initializes the MCPJungle server when running in enterprise mode. This command is run once, from your local machine, after the server has started.
init-server creates the admin user, generates the admin access token, and saves both the registry URL and token to ~/.mcpjungle.conf. After running this command, your CLI is authenticated as admin.
Example
~/.mcpjungle.conf is written with your credentials and subsequent commands work without the --registry flag.
version
Prints version information for both the CLI binary and the connected server.
Output
--version flag for a condensed output: