Skip to main content
The mcpjungle binary serves two roles: it runs the gateway server and acts as a client for managing everything registered in that server. Every subcommand talks to the registry over HTTP, so you can run the CLI on any machine that can reach the server — your laptop, a CI runner, or inside the same container.

Global flags

These flags are accepted by every command and subcommand.
FlagTypeDefaultDescription
--registrystringhttp://127.0.0.1:8080Base URL of the MCPJungle registry server.
--helpPrint help for the current command and exit.
--version / -vPrint version information and exit.
The --registry flag precedence order is: explicit flag value → registry_url in the config file → built-in default.
If you set --registry explicitly but your config file does not yet have a registry_url entry, the CLI prints a tip reminding you to persist the URL. Use mcpjungle login or manually edit ~/.mcpjungle.conf to avoid passing the flag every time.

Config file

The CLI reads ~/.mcpjungle.conf on startup. The file is YAML and supports two fields:
~/.mcpjungle.conf
registry_url: http://your-server:8080
access_token: your-access-token
FieldDescription
registry_urlURL of the MCPJungle server. Overrides the --registry default.
access_tokenBearer token sent with every request. Required in enterprise mode.
The file is created automatically by mcpjungle init-server and mcpjungle login. You can also create or edit it by hand.

Available commands

Commands are grouped into Basic (everyday operations) and Advanced (enterprise and power-user features).

Basic commands

CommandDescription
startStart the MCPJungle HTTP server and MCP gateway.
registerRegister an MCP server with the gateway.
listList servers, tools, prompts, resources, groups, clients, and users.
usageShow input schema and usage information for a tool.
invokeCall a registered tool and print its output.
deregisterRemove an MCP server from the registry.
versionPrint CLI and server version information.

Advanced commands

CommandDescription
getRetrieve a prompt template or tool group details.
disableDisable tools, prompts, or entire servers globally.
enableRe-enable previously disabled tools, prompts, or servers.
createCreate tool groups, MCP clients, or users.
deleteDelete tool groups, MCP clients, or users.
updateUpdate tool groups, MCP client tokens, or user tokens.
init-serverInitialize the server in enterprise mode (one-time setup).
loginAuthenticate and store your access token locally.

Running the CLI in Docker or Kubernetes

When the MCPJungle server runs in a container, you can still use the CLI from outside by pointing --registry at the exposed port:
mcpjungle --registry http://localhost:8080 list servers
Inside a Kubernetes cluster, target the service DNS name:
mcpjungle --registry http://mcpjungle.default.svc.cluster.local:8080 list tools
If you are running a one-off admin command from within the same pod or a sidecar, the default http://127.0.0.1:8080 works without any extra flags.
The CLI binary is not included in the standard MCPJungle Docker image. Install it on your local machine or in a separate container. See the Installation page for options.