# Core concepts Source: https://docs.mcpjungle.com/core-concepts Understand the core concepts in mcpjungle to get the most out of it ## Mcpjungle server The long-running HTTP service that you run either locally or deploy to a remote host machine. It exposes a REST API for managing mcpjungle registry itself and a streamable HTTP endpoint at `/mcp` for AI clients to connect to. ### Data persistence Mcpjungle stores all its data in a SQL database. By default, it uses SQLite with a local file. For production deployments, we recommend PostgreSQL. If you use the docker-compose.yaml provided in the repository, it will automatically start a PostgreSQL container and ensure connectivity. ## Mcpjungle client The `mcpjungle` CLI tool you run from your terminal for server management and automation. Today, the CLI remains the most complete management client, and MCPJungle also includes a Dashboard UI for local/dev visibility and common management tasks. You can also build your own clients that talk to the server's REST API for custom management interfaces or automation. ## Upstream MCP server An **upstream MCP server** is any MCP server you add in Mcpjungle. This mcp server then becomes accessible to AI clients that connect to Mcpjungle's gateway endpoint. ## Canonical names ### Tools and Prompts Mcpjungle assigns canonical names to tools and prompts so they remain unique across all registered servers. Tool format: ```text theme={null} __ ``` Prompt format: ```text theme={null} __ ``` Examples: ```text theme={null} context7__get-library-docs filesystem__read_file huggingface__Model Details ``` So if 2 mcp servers - `foo` and `bar` - expose a tool called `get_file`, mcpjungle will expose them as `foo__get_file` and `bar__get_file` respectively. AI clients can discover and use these names. ### Resources Each resource in mcpjungle is assigned a new, unique URI which follows the below format: ```text theme={null} mcpj://res// ``` eg- ```text theme={null} mcpj://res/foo_mcp/ZmlsZTovL3NhbXBsZS50eHQ ``` AI clients can discover and use these URIs to access mcp Resources. ## Groups By default, mcpjungle exposes all registered mcp servers (their tools, prompts and resources) at the main gateway endpoint `/mcp`. As you add more mcp servers, this can cause serious context overload for clients. Groups let you expose cherry-picked tools, prompts, and resources from registered servers at a separate MCP endpoint. Your client can then connect to the group's endpoint to discover and use only those tools relevant to it. A group's mcp is exposed at an endpoint of the format: Streamable http: ```text theme={null} /v0/groups/{group-name}/mcp ``` SSE: ```text theme={null} /v0/groups/{group-name}/sse /v0/groups/{group-name}/message ``` ## Development mode vs Enterprise mode Mcpjungle supports 2 operating modes. ### Development mode When you start mcpjungle server, it runs in development mode by default. This mode is ideal for individuals running mcpjungle locally for themselves. Use development mode when: * you want the shortest path to a working setup * you just need one clean MCP endpoint and minimal configuration hassle (sufficient for individual users) * you do not need governance or access control In development mode, clients connecting to `/mcp` can access all registered servers. ### Enterprise mode This mode is ideal for teams running shared MCP infrastructure in an enterprise environment. Use enterprise mode when: * users need shared access to MCPs * you need authenticated client access to MCPs * you need Access Control * you need centralized management and governance features such as observability, audit logs, etc > [!NOTE] > > Mcpjungle is currently free to use for both individuals and enterprises. ## Initialization When mcpjungle server is started for the first time, it needs to be initialized. If running in development mode, initialization is automatic, and you can already start using mcpjungle. If running in enterprise mode, the server must be initialized by an administrator. Once a server is initialized, you cannot change its operating mode. ## MCP Clients and Users This concept is only relevant in enterprise mode. Enterprise mode distinguishes between two identity types: * **MCP clients**: Non-human identities AI clients like Cursor, Claude, Codex, custom agents, etc. They authenticate to the gateway and receive access to specific servers. * **Users**: Human operators who use the CLI or HTTP API. Standard users can inspect and use Mcpjungle, but write access remains restricted to admins. ## Stateless versus stateful sessions For each upstream server, Mcpjungle can manage connection lifecycle in one of two ways: * **Stateless**: Open a fresh connection for each tool call, then close it. * **Stateful**: Keep the connection open and reuse it across calls. Stateless is the default and should remain your first choice. Stateful is mainly useful for STDIO servers with slow startup costs or servers that rely on persistent session state. ## Recommended mental model Think of Mcpjungle as three layers: 1. **Upstream servers**: The actual capabilities. 2. **Mcpjungle**: The control plane and unified gateway. 3. **AI clients**: Claude, Cursor, Copilot, or agents consuming MCPs. ## Documentation for AI Agents This documentation is also available over MCP at `https://docs.mcpjungle.com/mcp`, so AI agents can consume mcpjungle's docs directly. ## Next steps > **[Register servers](/guides/register-http-servers)** > > Add remote HTTP-based MCP servers to the gateway. > **[Register STDIO servers](/guides/register-stdio-servers)** > > Add local process-based MCP servers such as filesystem or github. > **[Tool groups](/guides/tool-groups)** > > Expose narrower tool subsets to specific clients. > **[Enterprise overview](/governance/overview)** > > Understand enterprise mode, client tokens, and shared deployment controls. # Configure mcpjungle's database Source: https://docs.mcpjungle.com/deployment/database Choose SQLite for local evaluation or PostgreSQL for serious deployments, and configure Mcpjungle with either a full DSN or Postgres-specific environment variables. Mcpjungle requires a database to persist registered servers, tool groups, users, and related configuration. Use the database choice as a deployment signal: * **SQLite** for local evaluation and single-user experimentation. * **PostgreSQL** for anything shared, durable, or production-facing. ## Default: SQLite When no database configuration is provided, Mcpjungle automatically creates a SQLite file named `mcpjungle.db` in the directory where the process is started: ```bash theme={null} mcpjungle start # Creates ./mcpjungle.db in the current directory ``` SQLite requires no setup and works well for individuals running Mcpjungle locally. It is not recommended for production or multi-user deployments. If you do not provide PostgreSQL settings or a custom SQLite path, Mcpjungle uses `./mcpjungle.db`. You can optionally set a custom path for the SQLite file using either a command-line flag or an environment variable: ```bash theme={null} mcpjungle start --sqlite-db-path /path/to/my_custom_mcpjungle.db # or export SQLITE_DB_PATH=/var/lib/mcpjungle/.mcpjungle.db mcpjungle start ``` ## PostgreSQL Mcpjungle supports PostgreSQL for serious deployments. You can configure it with either a full DSN or individual environment variables. ### Option 1: Connection DSN Set the `DATABASE_URL` environment variable to a full Postgres connection string: **Direct binary** ```bash theme={null} export DATABASE_URL=postgres://admin:secret@localhost:5432/mcpjungle_db mcpjungle start ``` **Docker** ```bash theme={null} docker run -d \ --name mcpjungle-server \ -e DATABASE_URL=postgres://admin:secret@your-db-host:5432/mcpjungle_db \ -p 8080:8080 \ ghcr.io/mcpjungle/mcpjungle:latest ``` ### Option 2: Individual environment variables If you prefer not to construct a full DSN, set the individual Postgres variables instead. `POSTGRES_HOST` is required; all other variables are optional and have sensible defaults. ```bash theme={null} # Required export POSTGRES_HOST=localhost # Optional (defaults shown) export POSTGRES_PORT=5432 export POSTGRES_USER=postgres export POSTGRES_PASSWORD=secret export POSTGRES_DB=postgres mcpjungle start ``` Each credential variable also accepts a `_FILE` variant, which reads the value from a file. This is useful for Docker secrets and similar secret-injection mechanisms: | Variable | File variant | Default | | - | - | - | | `POSTGRES_USER` | `POSTGRES_USER_FILE` | `postgres` | | `POSTGRES_PASSWORD` | `POSTGRES_PASSWORD_FILE` | *(empty)* | | `POSTGRES_DB` | `POSTGRES_DB_FILE` | `postgres` | Example using file-based secrets: ```bash theme={null} export POSTGRES_HOST=localhost export POSTGRES_USER_FILE=/run/secrets/pg_user export POSTGRES_PASSWORD_FILE=/run/secrets/pg_password export POSTGRES_DB_FILE=/run/secrets/pg_db mcpjungle start ``` > [!NOTE] > > If both a variable and its `_FILE` counterpart are set, the plain variable takes precedence. ## Variable precedence When Mcpjungle starts, it resolves the database connection in this order: 1. `DATABASE_URL` — used as-is if set 2. `POSTGRES_HOST` (+ optional variables) — constructs a DSN if `POSTGRES_HOST` is set 3. `--sqlite-db-path` — uses the configured SQLite file path from the CLI flag 4. `SQLITE_DB_PATH` — uses the configured SQLite file path from the environment variable 5. SQLite default — creates file `mcpjungle.db` in the current directory ## Production recommendations > [!TIP] > > Deploy a separate Postgres cluster and supply its endpoint via `DATABASE_URL`. Running the database in a sidecar container is acceptable for development but not recommended for production. The production Docker Compose file (`docker-compose.prod.yaml`) bundles a Postgres 17 container for convenience. For a real deployment, replace it with a managed database service and update the `DATABASE_URL` accordingly. # Run mcpjungle with Docker Compose Source: https://docs.mcpjungle.com/deployment/docker Use Docker Compose to run mcpjungle locally or as a shared deployment. Docker Compose is the recommended way to run mcpjungle for individuals running it locally. Teams deploying mcpjungle to a remote server can also use Docker Compose with the production configuration, or choose a more customized deployment approach. The repository ships 2 docker compose files: * [docker-compose.yaml](https://github.com/mcpjungle/MCPJungle/blob/main/docker-compose.yaml) - optimized for local for individual users * [docker-compose.prod.yaml](https://github.com/mcpjungle/MCPJungle/blob/main/docker-compose.prod.yaml) - optimized for a shared deployment running in enterprise mode ## Development mode `docker-compose.yaml` is the fastest path to a working local setup. It starts Mcpjungle in development mode alongside Postgres and uses the `latest-stdio` image by default, which includes `npx` and `uvx` for common STDIO server workflows. **1. Download the compose file** ```bash theme={null} curl -O https://raw.githubusercontent.com/mcpjungle/MCPJungle/refs/heads/main/docker-compose.yaml ``` **2. Start the server** ```bash theme={null} docker compose up -d ``` **3. Verify the server is running** ```bash theme={null} curl http://localhost:8080/health ``` The server listens on port `8080` by default. You can override this with the `HOST_PORT` environment variable. > [!NOTE] > > If Mcpjungle is running inside Docker on macOS or Windows, the container cannot reach `127.0.0.1` on your host. Use `host.docker.internal` instead when registering MCP servers that run on your host machine: > > ```bash theme={null} > mcpjungle register --name calculator --url http://host.docker.internal:5000/mcp > ``` > [!NOTE] > > If you plan to run the `filesystem` stdio MCP server from inside the container, see [Register a stdio MCP server](/guides/register-stdio-servers#running-in-docker-filesystem-access) for the required `/host` mount pattern and config example. > [!NOTE] > > You can also run the mcpjungle image as a standalone container instead of using the Compose files provided by the repository. > > Keep in mind that if you do not connect Mcpjungle to a PostgreSQL database, it will create a local SQLite file inside the container. > > If the container is deleted, that SQLite file is deleted with it and mcpjungle's data is lost. > > Running Mcpjungle as a standalone container without an external database is only recommended for testing and proofs of concept. ## Enterprise mode `docker-compose.prod.yaml` starts Mcpjungle in enterprise mode. It is intended for a shared deployment where access is authenticated and metrics are expected to be available. **1. Download the compose file** ```bash theme={null} curl -O https://raw.githubusercontent.com/mcpjungle/MCPJungle/refs/heads/main/docker-compose.prod.yaml ``` **2. Start the server** ```bash theme={null} docker compose -f docker-compose.prod.yaml up -d ``` **3. Initialize the server** After the first boot, run `init-server` from your client machine to create the admin user and store its access token: ```bash theme={null} mcpjungle init-server ``` See the [production deployment guide](/deployment/production) for the full initialization and operating model. > [!WARNING] > > If you deploy behind a reverse proxy, check the [localhost protection and upstream Host-header requirements](/deployment/production#reverse-proxies-and-localhost-protection). A proxy connection reaching MCPJungle over loopback can receive `403 Forbidden` if it preserves a public `Host` header. Connections arriving on a container-network address are not subject to this particular check. ## Choosing an image Mcpjungle publishes two Docker image variants: | Image tag | Base | Includes | Size | | - | - | - | - | | `latest` | `distroless/base` | `mcpjungle` binary only | Minimal | | `latest-stdio` | `uv` (Debian) | `mcpjungle` + `npx` + `uvx` | Larger | * `docker-compose.yaml` defaults to `latest-stdio` — suitable for local use with stdio-based MCP servers like `filesystem`, `time`, and `github`. * `docker-compose.prod.yaml` defaults to `latest` — the minimal image recommended for production. If you need stdio support in enterprise mode, override the image tag: ```bash theme={null} MCPJUNGLE_IMAGE_TAG=latest-stdio docker compose -f docker-compose.prod.yaml up -d ``` > [!NOTE] > > If your stdio servers rely on dependencies other than `npx` or `uvx`, you need to build a custom Docker image that includes those dependencies alongside the `mcpjungle` binary. ## Graceful shutdown Mcpjungle should be stopped cleanly so it can close active connections and flush in-flight work. For Compose-managed deployments, use: ```bash theme={null} docker compose down ``` For a single container, `docker stop` is sufficient because it sends `SIGTERM` by default. ## Run CLI commands inside a container The standard image does not include a shell. Use `docker exec` or `kubectl exec` to invoke the `mcpjungle` binary directly: **Docker** ```bash theme={null} docker exec -it /mcpjungle ``` **Kubernetes** ```bash theme={null} kubectl -n exec -it po/ -- /mcpjungle ``` For example, to list registered MCP servers from inside a running container: ```bash theme={null} docker exec -it mcpjungle-server /mcpjungle list servers ``` # Observability with OpenTelemetry Source: https://docs.mcpjungle.com/deployment/observability Use OpenTelemetry to monitor mcpjungle and all MCP interactions in your infrastructure. Mcpjungle emits Prometheus-compatible metrics using OpenTelemetry and exposes them at the `/metrics` endpoint. This gives you a simple operational view of tool traffic and latency across your registered MCP servers. ## When metrics are enabled * In **enterprise mode**, metrics are enabled by default. * In **development mode**, metrics are disabled by default. To enable them in development mode: ```bash theme={null} export OTEL_ENABLED=true export OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=development mcpjungle start ``` > [!NOTE] > > You can also set `OTEL_ENABLED=false` in enterprise mode if you explicitly want to disable metrics, but that is not the recommended operating posture for shared deployments. ## Metrics endpoint Once Mcpjungle is running with telemetry enabled: ```bash theme={null} curl http://localhost:8080/metrics ``` The response uses standard Prometheus text exposition format. ## Available metrics | Metric | Type | Description | | - | - | - | | `mcpjungle_tool_calls_ratio_total` | Counter | Total number of tool calls handled by Mcpjungle. | | `mcpjungle_tool_call_latency_seconds` | Histogram | Latency for tool calls, in seconds. | Both metrics include these labels: | Label | Description | | - | - | | `mcp_server_name` | Name of the upstream MCP server that owns the tool. | | `tool_name` | Canonical tool name, for example `calculator__add`. | | `outcome` | `success` or `error`. | ## Example output ```text theme={null} # HELP mcpjungle_tool_calls_ratio_total Total number of tool calls # TYPE mcpjungle_tool_calls_ratio_total counter mcpjungle_tool_calls_ratio_total{mcp_server_name="calculator",tool_name="add",outcome="success"} 42 # HELP mcpjungle_tool_call_latency_seconds Latency of tool calls in seconds # TYPE mcpjungle_tool_call_latency_seconds histogram mcpjungle_tool_call_latency_seconds_count{mcp_server_name="calculator",tool_name="add",outcome="success"} 42 ``` ## Prometheus The production Compose path ships with a Prometheus service already configured to scrape Mcpjungle: ```yaml theme={null} scrape_configs: - job_name: 'mcpjungle' static_configs: - targets: ['mcpjungle:8080'] metrics_path: '/metrics' scrape_interval: 15s ``` If you run your own Prometheus stack, scrape the gateway's `/metrics` endpoint directly. ## Feedback If you want to see more metrics or have feedback on the current ones, please share your thoughts in the [GitHub discussions](https://github.com/orgs/mcpjungle/discussions) or open an [Issue](https://github.com/mcpjungle/MCPJungle/issues). ## Related pages > **[Production deployment](/deployment/production)** > > Run Mcpjungle in enterprise mode with the right operational defaults. > **[Database](/deployment/database)** > > Back your shared deployment with PostgreSQL. > **[Governance overview](/governance/overview)** > > Understand the enterprise operating model around authentication and client access. > **[Reference: environment variables](/reference/environment-variables)** > > See the full environment variable reference for telemetry and deployment tuning. # Deploy mcpjungle in production Source: https://docs.mcpjungle.com/deployment/production Run mcpjungle as a shared deployment in enterprise mode - for teams. This guide covers the production operating model for mcpjungle. When teams want shared access to MCPs in an enterprise environment, Mcpjungle should run in **enterprise mode** with a dedicated PostgreSQL database That is the mode intended for teams, internal platforms and organizations running Mcpjungle for shared MCP access. If your goal is simply to use MCPs locally for yourself, development mode is usually a better fit. ## Start in enterprise mode You can enable enterprise mode in three ways: **CLI flag** ```bash theme={null} mcpjungle start --enterprise ``` **Environment variable** ```bash theme={null} export SERVER_MODE=enterprise mcpjungle start ``` **Docker Compose** Use the production compose file, which sets `SERVER_MODE=enterprise` by default: ```bash theme={null} docker compose -f docker-compose.prod.yaml up -d ``` ## Initialize the server once After the first boot in enterprise mode, run `mcpjungle init-server` once from your client machine to create the initial admin identity and authenticate your CLI. For the exact bootstrap flow and command details, see: * [Access and governance overview](/governance/overview) * [Enterprise operations](/reference/cli-enterprise) ## Recommended runtime pattern For a shared deployment, the recommended pattern is: 1. Run the standard `ghcr.io/mcpjungle/mcpjungle:latest` image. 2. Keep the CLI installed separately on operator machines. 3. Point Mcpjungle at a separate PostgreSQL instance or cluster. ## Run with Docker For production, use the standard (minimal) Mcpjungle image. It is based on `distroless/base` and contains only the `mcpjungle` binary. Supply your database connection string with the `DATABASE_URL` environment variable: ```bash theme={null} docker run -d \ --name mcpjungle-server \ -e SERVER_MODE=enterprise \ -e DATABASE_URL=postgres://user:password@your-db-host:5432/mcpjungle \ -p 8080:8080 \ ghcr.io/mcpjungle/mcpjungle:latest ``` > [!TIP] > > For production, deploy a separate managed Postgres cluster and point `DATABASE_URL` at it rather than running Postgres in the same container. See [Configure Mcpjungle's database](/deployment/database) for all database options. ## Reverse proxies and localhost protection If you put a reverse proxy in front of MCPJungle, check how it sets the upstream `Host` header. The MCP gateway enables DNS rebinding protection. When a connection reaches MCPJungle on a loopback address, such as `127.0.0.1` or `::1`, the gateway requires a localhost value in the HTTP `Host` header. A public hostname in that header causes the MCP transport to return `403 Forbidden`. > [!WARNING] > > A proxy on the same host can trigger this protection if it forwards to `http://127.0.0.1:8080` while preserving `Host: mcp.example.com`. After authentication succeeds, MCP requests can fail with `Forbidden: invalid Host header "mcp.example.com"`. For loopback upstream connections, configure your proxy to send a local `Host` value, such as `localhost:8080`. Clients can continue connecting to the public URL, for example `https://mcp.example.com/mcp`. For example, inside your existing Nginx server configuration, the `/mcp` location can use: ```nginx theme={null} location = /mcp { proxy_pass http://127.0.0.1:8080; proxy_set_header Host localhost:8080; proxy_buffering off; } ``` `proxy_buffering off` allows streaming responses to reach the client promptly. Adapt the backend address and port to your deployment. If your existing configuration uses `proxy_set_header Host $host`, replace that directive in the affected location. Apply the same upstream Host-header policy to any group MCP endpoints or legacy SSE endpoints you proxy over loopback. Setting `X-Forwarded-Host` alone does not satisfy this check; the gateway inspects `Host`. The check also applies to loopback connections when MCPJungle listens on all interfaces (`0.0.0.0`). Connections reaching MCPJungle on a non-loopback address, such as a container-network address, are not rejected by this particular check. Assess the backend connection as seen by MCPJungle, rather than assuming all proxies or container deployments need a Host-header change. For background, see the [MCP transport security guidance](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#security-warning) and the [upstream localhost-protection option](https://github.com/mark3labs/mcp-go/blob/v0.58.0/server/streamable_http.go). ## Graceful shutdown Mcpjungle handles `SIGTERM` 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: ```bash theme={null} # For a process running directly kill -SIGTERM # For a Docker container docker stop mcpjungle-server ``` `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 Users & MCP clients | | Access control (ACLs) | Disabled | Enabled | | OpenTelemetry metrics | Disabled (opt-in) | Enabled by default | | Server initialization | Automatic | Manual (`init-server`) | > [!NOTE] > > Even in enterprise mode, you can override metrics with `OTEL_ENABLED=false` if needed, though that is not the recommended default for shared deployments. ## What to read next > **[Database](/deployment/database)** > > Configure PostgreSQL correctly for production use. > **[Observability](/deployment/observability)** > > Scrape Prometheus-compatible metrics from the `/metrics` endpoint. > **[Governance overview](/governance/overview)** > > Understand enterprise mode, tokens, clients, and users. > **[Access control](/governance/access-control)** > > Give each MCP client access only to the servers it should reach. # Contributing Source: https://docs.mcpjungle.com/developers/contributing Contribution guidelines for code, docs, and product feedback in mcpjungle. We welcome contributions to mcpjungle. If you want to contribute code, docs, bug reports, or product ideas, this page covers the expected workflow and standards. ## Before making significant changes Before opening a large or significant pull request: 1. Open a GitHub Discussion or Issue first to align on the direction. 2. Avoid sending large amounts of code in a single PR. For any code you generate with AI tools, make sure you: 1. Run it and confirm it behaves correctly. 2. Run tests and confirm they pass. 3. Review it yourself and reduce it where possible. ## Making changes ### Documentation * Update documentation for any change to APIs, CLIs, or user-facing features * Add examples for new features where useful * Update the README when needed * Add comments only where they help explain non-obvious logic ## Pull request process 1. Update your fork from upstream: ```bash theme={null} git fetch upstream git rebase upstream/main ``` 2. Push your branch: ```bash theme={null} git push origin feature/your-feature-name ``` 3. Open a pull request to the main repository. 4. Write a clear PR description. 5. Address review comments if maintainers request changes. If you need to update your PR: ```bash theme={null} git add . git commit -m "address review comments" git push origin feature/your-feature-name ``` ## Dependency policy * `go.mod` and `go.sum` are the source of truth for dependencies * `vendor/` is not committed * For offline builds, you may run `go mod vendor` locally, but do not commit the result * CI and Docker builds should use module-aware mode and the Go proxy ## Releases Only repository owners create releases. Current release expectations: 1. Releases are cut from `main` 2. A tag is created for the release 3. Artifacts are built and published with goreleaser 4. Each release includes a changelog of merged PRs since the last release ## Community * Use [GitHub Issues](https://github.com/mcpjungle/MCPJungle/issues) for bugs and trackable work * Use [GitHub Discussions](https://github.com/mcpjungle/MCPJungle/discussions) for proposals and broader questions * Join [Discord](https://discord.gg/CapV4Z3krk) for quick discussion ## Development guide For local setup, builds, testing, database workflows, and deeper implementation details, see the [Development guide](/developers/development). ## License By contributing to this project, you agree that your contributions are licensed under the project's license. # Dashboard development Source: https://docs.mcpjungle.com/developers/dashboard-development # MCPJungle dashboard frontend development ## 1. What the dashboard is The Dashboard UI is served by the MCPJungle Go server at `/` in development mode. ## 2. Frontend architecture ### Frontend source * Frontend app root: web/dashboard * Main React entry: web/dashboard/src/main.tsx * Main app component: web/dashboard/src/App.tsx * Shared components: web/dashboard/src/components * API helpers: web/dashboard/src/lib/api.ts * Frontend types: web/dashboard/src/lib/types.ts * Global styles: web/dashboard/src/styles.css ### Stack * Framework: React 18 + TypeScript * Build tool: Vite * React plugin: `@vitejs/plugin-react` Frontend scripts live in web/dashboard/package.json: ```json theme={null} { "scripts": { "dev": "vite", "build": "tsc --noEmit && vite build", "typecheck": "tsc --noEmit", "preview": "vite preview" } } ``` ### Built assets * Vite build output: `web/dashboard/dist` * Go-served dashboard asset directory: `internal/dashboardui/dist` * Embed wiring: internal/dashboardui/embed.go `internal/dashboardui/embed.go` embeds `dist` at Go compile time: ```go theme={null} //go:embed dist dist/* var embeddedFiles embed.FS ``` That means the final Go-served dashboard comes from the built files copied into `internal/dashboardui/dist` and then embedded into the Go binary. ### How the Go server serves the frontend Dashboard route registration is in internal/api/server.go. When `DashboardService` is available, the server registers: * `GET /` * `GET /index.html` * `GET /assets/*filepath` These routes are backed by `dashboardui.FileServer()` from internal/dashboardui/embed.go. ### Are assets embedded or served from disk? For the real MCPJungle server, assets are embedded into the Go binary. The Go server does not read `web/dashboard/src` directly at runtime. During frontend-only development, you can also run the Vite dev server at `http://localhost:5173/`. ### Backend dashboard handlers Dashboard API handlers live in: * internal/api/dashboard.go * internal/api/dashboard\_mutations.go * internal/api/dashboard\_oauth.go * internal/api/dashboard\_tool\_groups.go Most read-side dashboard response shaping lives in: * internal/service/dashboard/service.go The frontend calls dashboard APIs with `fetch("/api/dashboard/...")` through the helpers in web/dashboard/src/lib/api.ts. ### Routing model in the frontend The dashboard is a single React app with section-state navigation. It does not use React Router today. * Sidebar items are defined in web/dashboard/src/components/NavSidebar.tsx * Active page state is controlled in web/dashboard/src/App.tsx So for the Go server, the important UI entrypoint is `/`. ## 3. Local development workflow Recommended workflow while changing frontend code: ### Install frontend dependencies ```bash theme={null} cd web/dashboard npm install ``` `web/dashboard/package-lock.json` exists, so `npm` is the expected package manager here. ### Run the Go backend From the repo root: ```bash theme={null} go run . start ``` This starts MCPJungle in development mode by default on `http://localhost:8080`. If you are using the installed CLI instead of `go run`, the equivalent command is: ```bash theme={null} mcpjungle start ``` ### Run the frontend dev server In another terminal: ```bash theme={null} cd web/dashboard npm run dev ``` This starts Vite on `http://localhost:5173`. ### Which URL to open during active frontend development Open: ```text theme={null} http://localhost:5173/ ``` for the fastest feedback loop. Why: * Vite hot reload works there * CSS/React changes update immediately * `/api/*` requests are proxied to the Go backend on `http://localhost:8080` The proxy is defined in web/dashboard/vite.config.ts: ```ts theme={null} server: { port: 5173, proxy: { "/api": "http://localhost:8080", }, } ``` ### Do API calls go through CORS? No special CORS setup is needed for normal frontend development because Vite proxies `/api` requests to the Go backend. ### When to open `http://localhost:8080/` Open `http://localhost:8080/` when you want to verify the real Go-served embedded dashboard, not just the Vite dev server. ## 4. Build workflow This is the most important workflow. ### After I change frontend code, what do I run so it shows up at `http://localhost:8080/`? From the repo root: 1. Run the shared dashboard build script. 2. Rebuild or rerun the Go server so it embeds the updated files. 3. Refresh `http://localhost:8080/`. Exact commands: ```bash theme={null} bash ./scripts/build-dashboard.sh go run . start ``` If you already have a running Go server, stop it first and start it again after the copy step. ### What the build script does `scripts/build-dashboard.sh` is the canonical dashboard bundle refresh step for both local development and releases. It does: 1. `cd web/dashboard` 2. `npm ci` if `node_modules/` is missing 3. `npm run build` 4. `rm -rf internal/dashboardui/dist` 5. `cp -R web/dashboard/dist internal/dashboardui/dist` ### Why is the restart required? Because dashboard assets are embedded into the Go binary at build/run time. Updating `web/dashboard/dist` or `internal/dashboardui/dist` alone does not update an already-running server process. ### Do generated assets need to be committed? No. `dist/` is ignored in `.gitignore`, and `internal/dashboardui/dist` is also treated as a generated artifact. ### What is the final served UI source? The UI served from `http://localhost:8080/` comes from: 1. Vite build output in `web/dashboard/dist` 2. copied into `internal/dashboardui/dist` 3. embedded by internal/dashboardui/embed.go 4. served by internal/api/server.go ### What happens if the frontend build is stale? Common symptom: * `http://localhost:5173/` shows your new UI * `http://localhost:8080/` still shows the old UI That means one of these is stale: * you did not run `bash ./scripts/build-dashboard.sh` * the Go server is still running an old embedded build ## 5. Go server integration ### Where the dashboard routes are registered Go route registration is in internal/api/server.go. Dashboard UI routes: * `GET /` * `GET /index.html` * `GET /assets/*filepath` Dashboard API routes are under: * `/api/dashboard/...` ### How `/` serves the dashboard The router uses `dashboardui.FileServer()` and wraps it with: * `s.requireInitialized()` * `requireDashboardMode` ### How local/dev mode is checked Dashboard mode gating is in internal/api/middleware.go. `requireDashboardMode()` checks the current server mode from request context and only allows the dashboard when: * `mode == model.ModeDev` Otherwise it returns: * `404 Not Found` This is intentional so the dashboard is local/dev only. ### What happens in enterprise mode If MCPJungle is started with: ```bash theme={null} mcpjungle start --enterprise ``` or `SERVER_MODE=enterprise`, dashboard UI routes and dashboard API routes return `404`. ### How static assets are wired * Embedded source: internal/dashboardui/embed.go * File server registration: internal/api/server.go ### Frontend fallback routing There is no multi-route SPA fallback setup today because the dashboard currently uses a single entrypoint and in-app section switching instead of browser URL routing. ## 6. Dashboard backend APIs ### Where routes are defined Dashboard routes are registered in internal/api/server.go. Handlers live in: * internal/api/dashboard.go * internal/api/dashboard\_mutations.go * internal/api/dashboard\_oauth.go * internal/api/dashboard\_tool\_groups.go ### Current route groups #### Read endpoints * `GET /api/dashboard/overview` * `GET /api/dashboard/servers` * `GET /api/dashboard/tools` * `GET /api/dashboard/tool-groups` * `GET /api/dashboard/tool-groups/:name` * `GET /api/dashboard/prompts` * `GET /api/dashboard/resources` * `GET /api/dashboard/diagnostics` #### Mutation endpoints * `POST /api/dashboard/servers` * `DELETE /api/dashboard/servers/:name` * `PATCH /api/dashboard/servers/:name/enabled` * `PATCH /api/dashboard/tools/:name/enabled` * `PATCH /api/dashboard/prompts/:name/enabled` * `POST /api/dashboard/tool-groups` * `DELETE /api/dashboard/tool-groups/:name` #### OAuth flow endpoints * `GET /api/dashboard/oauth/callback` * `GET /api/dashboard/oauth/session/:id` ### Common patterns * Read handlers usually delegate to `dashboard.Service` * Mutation handlers usually reuse `mcp.MCPService` or `toolgroup.ToolGroupService` * Frontend uses relative `fetch("/api/dashboard/...")` ### How to add a new dashboard API endpoint Typical steps: 1. Add the route in internal/api/server.go. 2. Add the handler in the appropriate dashboard API file under `internal/api/`. 3. Reuse existing service logic where possible instead of reimplementing CLI behavior. 4. Add/extend response types in pkg/types or local dashboard response structs if the API is dashboard-specific. 5. Add frontend types in web/dashboard/src/lib/types.ts. 6. Add a frontend helper in web/dashboard/src/lib/api.ts. 7. Update the UI in web/dashboard/src/App.tsx. 8. Add tests in `internal/api` or `internal/e2e`. ### Error handling Handlers generally: * return `400` for bad request / binding errors * call `handleServiceError(...)` for service-layer errors See: * internal/api/errors.go Frontend API helpers in web/dashboard/src/lib/api.ts expect JSON errors in the form: ```json theme={null} { "error": "message" } ``` ### Secret handling Dashboard APIs must not expose: * tokens * OAuth client secrets * env var values * authorization headers * raw sensitive config Current dashboard UI/API only exposes sanitized summaries such as header keys or env keys, not values. Be careful not to reuse admin APIs like `/api/v0/server_configs` for the dashboard without sanitizing them first. ## 7. OAuth registration flow Dashboard registration supports MCP servers that require upstream OAuth. ### Why dashboard OAuth differs from CLI OAuth The CLI can create its own localhost callback server. See cmd/register.go. The browser frontend cannot do that, so the dashboard uses the MCPJungle Go server as the OAuth callback receiver. ### Current dashboard OAuth flow 1. User submits `+ Add Server` in the dashboard. 2. Backend tries normal registration in internal/api/dashboard\_mutations.go. 3. If upstream OAuth is required, backend retries registration with: ```text theme={null} /api/dashboard/oauth/callback ``` 4. If the upstream server returns `AuthorizationRequired`, the backend returns `202 Accepted` with: * `authorization_required.session_id` * `authorization_required.authorization_url` * `authorization_required.expires_at` 5. Frontend opens the authorization URL in a new tab. 6. Frontend polls: ```text theme={null} /api/dashboard/oauth/session/:id ``` 7. Upstream OAuth redirects back to: ```text theme={null} /api/dashboard/oauth/callback ``` 8. Backend completes the upstream OAuth session. 9. Frontend sees completion via polling, closes the modal flow, and refreshes dashboard data. ### Important implementation files * CLI OAuth flow reference: cmd/register.go * Dashboard registration entrypoint: internal/api/dashboard\_mutations.go * Dashboard callback + polling: internal/api/dashboard\_oauth.go * Upstream OAuth service logic: internal/service/mcp/upstream\_oauth.go * Frontend registration modal: web/dashboard/src/App.tsx * Frontend API helpers: web/dashboard/src/lib/api.ts ### Important constraints * Do not expose OAuth codes, tokens, or secrets in the UI. * The callback HTML page is intentionally simple. * Pending dashboard OAuth completion state is tracked server-side and cleaned up after expiry/retention. ## 8. Common frontend tasks ### Add a new sidebar page * Add the section key/type in web/dashboard/src/lib/types.ts * Add the sidebar item in web/dashboard/src/components/NavSidebar.tsx * Add the section title/meta and render branch in web/dashboard/src/App.tsx * If the page needs backend data, add an API helper in web/dashboard/src/lib/api.ts ### Add a new dashboard API call * Backend route: internal/api/server.go * Backend handler: `internal/api/dashboard*.go` * Frontend helper: web/dashboard/src/lib/api.ts * Frontend response type: web/dashboard/src/lib/types.ts ### Add a new table column * UI rendering usually lives directly in web/dashboard/src/App.tsx * Styling usually goes in web/dashboard/src/styles.css * If the data is not already in the response, add it to the dashboard API response first ### Add a new button or action * UI button: web/dashboard/src/App.tsx * API call: web/dashboard/src/lib/api.ts * Backend mutation handler: internal/api/dashboard\_mutations.go or internal/api/dashboard\_tool\_groups.go ### Add a new expanded row/details panel Patterns already exist on: * Tools * Tool Groups * Prompts * Servers Look in web/dashboard/src/App.tsx for the existing row expansion state and markup. ### Add a copy button Reuse: * web/dashboard/src/components/CopyButton.tsx Keep the copy button close to the value it copies and add: * `aria-label` * `title` ### Add a filter/search field Current filtering patterns live in web/dashboard/src/App.tsx using local React state plus derived filtered arrays. ### Add a new form/modal Current examples: * server registration modal * tool group creation modal Both live in web/dashboard/src/App.tsx. Typical steps: 1. add local form state 2. add validation 3. call dashboard API helper 4. refresh dashboard data after success 5. show inline mutation error/success feedback ## 9. Styling and design notes Current v1 visual direction: * GitHub-like developer dashboard * white / very light gray backgrounds * subtle gray borders * black / dark gray text * green for primary actions and enabled/healthy states * compact rows Use monospace for: * endpoints * canonical names * transports * URIs * command strings UI guidance: * Avoid raw JSON as the default UI * Prefer expandable rows for detail inspection * Keep copy buttons close to the values they copy * Keep detail panels compact and scan-friendly Tools and Prompts specifically: * show human-readable schema/argument fields by default * raw JSON, if present, should be fallback/debug-only * raw JSON fallback should be collapsed by default ## 10. Testing and validation ### Frontend checks From `web/dashboard`: ```bash theme={null} npm run typecheck npm run build ``` There is currently no dedicated frontend lint script in web/dashboard/package.json. ### Backend/dashboard test commands From the repo root: ```bash theme={null} bash ./scripts/build-dashboard.sh go test ./internal/e2e ./internal/api go test ./internal/service/mcp go test ./... ``` Useful test files include: * internal/e2e/dashboard\_test.go * internal/e2e/tool\_groups\_test.go ### Manual smoke-test checklist 1. Start MCPJungle in dev mode and open `http://localhost:8080/`. 2. Confirm the default page is `Servers`. 3. Add a server. 4. If possible, test an OAuth-required registration. 5. Enable/disable a server. 6. Delete a server. 7. Enable/disable a tool. 8. Enable/disable a prompt. 9. Create and delete a tool group. 10. Copy: * endpoint * canonical tool name * canonical prompt name * resource URI * tool group endpoints 11. Expand rows on: * Tools * Prompts * Tool Groups 12. Open `System Info`. 13. Confirm the dashboard does not expose secrets. ## 11. Troubleshooting ### Frontend changes do not show up at `localhost:8080` Likely causes: * you changed code while looking at the Vite dev server and forgot the Go-served UI uses embedded built assets * you forgot `npm run build` * you forgot to copy `web/dashboard/dist` into `internal/dashboardui/dist` * the Go server is still running an older embedded build * browser cache * you are checking `http://localhost:8080/` instead of `http://localhost:5173/` during active frontend work Use this sequence: ```bash theme={null} bash ./scripts/build-dashboard.sh go run . start ``` ### Frontend dev server works but Go-served UI does not That usually means the Vite app is correct but the embedded Go-served bundle is stale. Remember: * `http://localhost:5173/` uses live source + Vite * `http://localhost:8080/` uses built/copied/embedded assets ### Dashboard returns 404 Check: * MCPJungle is running in dev mode, not enterprise mode * you started the real server * the server is initialized The dashboard intentionally returns `404` outside development mode. See internal/api/middleware.go. ### API calls fail Check: * the Go backend is running on `localhost:8080` * you are calling the right `/api/dashboard/...` path * if using `npm run dev`, the Vite proxy is active If `5173` works but API calls fail, inspect: * web/dashboard/vite.config.ts ### OAuth registration gets stuck Check: * the backend returned an authorization URL * the auth tab actually opened * the upstream provider redirected back to `/api/dashboard/oauth/callback` * polling to `/api/dashboard/oauth/session/:id` is succeeding * the session did not expire If needed, inspect server logs and these files: * internal/api/dashboard\_oauth.go * internal/api/dashboard\_mutations.go * internal/service/mcp/upstream\_oauth.go ### Copy buttons do nothing Copy buttons use the browser clipboard API. If copy fails: * check the browser console * make sure the page is running in a normal browser context * retry from the real UI page rather than an unusual embedded browser/webview ## 12. Release and build notes Before cutting a release or shipping a frontend change, maintainers should: 1. Run frontend checks: ```bash theme={null} cd web/dashboard npm run typecheck ``` 2. Refresh the embedded dashboard bundle: ```bash theme={null} bash ./scripts/build-dashboard.sh ``` 3. Run backend/dashboard tests: ```bash theme={null} go test ./internal/e2e ./internal/api go test ./internal/service/mcp go test ./... ``` 4. Rebuild and run MCPJungle. 5. Verify the dashboard from the Go server at `http://localhost:8080/`, not only from `http://localhost:5173/`. GoReleaser also runs `bash ./scripts/build-dashboard.sh` in its `before.hooks`, so release artifacts automatically include a fresh embedded dashboard bundle. ## 13. Keep this doc maintainable When updating this document: * use real repo paths * use real commands from this repo * update page names if UI nav changes * update API route lists if dashboard endpoints change * update the build section whenever the embed/copy workflow changes * prefer short, practical repo-specific guidance over frontend theory # Development guide Source: https://docs.mcpjungle.com/developers/development Development setup, build and test workflows, architecture orientation, and release operations for mcpjungle contributors. This guide covers development setup and technical workflows for contributors and maintainers. ## Principles Mcpjungle follows minimalism. When implementing a feature or fixing an issue, prefer the least amount of change required to ship something that works well without breaking other behavior. Improvements beyond that should be guided by user feedback, not by the urge to add complexity. ## Architecture overview Mcpjungle consists of several main components: * **CLI**: command-line interface for managing MCP servers and tools in `cmd/` * **HTTP API**: REST API for management workflows in `internal/api/` * **MCP Gateway server**: MCP protocol handling in `internal/service/mcp/` * **Database layer**: SQLite and PostgreSQL persistence in `internal/db/` ## Codebase entry points Good places to orient yourself: * [CLI commands](https://github.com/mcpjungle/MCPJungle/tree/main/cmd) * [HTTP API server](https://github.com/mcpjungle/MCPJungle/blob/main/internal/api/server.go) * [MCP proxy server](https://github.com/mcpjungle/MCPJungle/blob/main/internal/service/mcp/proxy.go) ## Building and testing ### Local development build ```bash theme={null} # Refresh the embedded dashboard bundle first bash ./scripts/build-dashboard.sh # Single binary for your current system goreleaser build --single-target --clean --snapshot # Test the full release assets (binaries and docker image) without publishing goreleaser release --clean --snapshot --skip publish # Binaries for all supported platforms goreleaser release --snapshot --clean ``` ### Running tests ```bash theme={null} # Refresh dashboard assets before testing Go-served UI behavior bash ./scripts/build-dashboard.sh # Run all tests go test ./... # Run tests with coverage go test -cover ./... # Run a specific package go test ./internal/service/mcp # Run the sanity test script ./scripts/test-mcpjungle.sh ``` ### Linting Mcpjungle uses `golangci-lint`. ```bash theme={null} golangci-lint run golangci-lint run --fix ``` See the [golangci-lint installation docs](https://golangci-lint.run/docs/welcome/install/) if needed. ## Development environment setup ### Prerequisites * Go 1.21 or later * Docker and Docker Compose * SQLite3 for local development * Node.js if you want to use MCP Inspector ### Quick start ```bash theme={null} git clone https://github.com/mcpjungle/MCPJungle.git cd MCPJungle # Fresh clones need the generated dashboard bundle before Go tests/builds. # This installs frontend deps as needed and copies the built assets into # internal/dashboardui/dist for Go's //go:embed step. bash ./scripts/build-dashboard.sh docker-compose up -d goreleaser build --single-target --clean --snapshot ``` ## Database development ### SQLite When running with SQLite, you can inspect the local database using `sqlite3`: ```bash theme={null} sqlite3 mcpjungle.db .tables SELECT * FROM mcp_servers; SELECT * FROM tools; ``` For backward compatibility, Mcpjungle still reads existing `mcp.db` files if they exist, but new databases are created as `mcpjungle.db`. If you start the server with `--sqlite-db-path` or `SQLITE_DB_PATH`, inspect that configured file path instead. ### PostgreSQL When running with Docker Compose, you can inspect PostgreSQL through pgAdmin: 1. Open `http://localhost:5050` 2. Log in with username `admin@admin.com` and password `admin` 3. Add a database server with: * Host: `db` * Port: `5432` * Username: `mcpjungle` * Password: `mcpjungle` * Database: `mcpjungle` ## MCP server testing [MCP Inspector](https://github.com/modelcontextprotocol/inspector) is useful when testing and debugging MCP interactions: ```bash theme={null} npx @modelcontextprotocol/inspector ``` ## Docker filesystem access For normal usage, the canonical explanation lives in [Register a stdio MCP server](/guides/register-stdio-servers#running-in-docker-filesystem-access). For contributors changing the local Docker setup itself, the only thing to keep in mind is that the Compose files mount host paths inside the container and the filesystem MCP config must match those mount points. For example, you can narrow the volume mounts in `docker-compose.yaml`: ```yaml theme={null} volumes: - ${HOME}:/host/home:ro - /path/to/your/project:/host/project:ro - /tmp:/host/tmp:rw ``` Then update the filesystem server config accordingly: ```json theme={null} { "name": "filesystem", "transport": "stdio", "description": "filesystem mcp server", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/host/home"] } ``` ## Release process ## Frontend dashboard build integration The dashboard source lives in `web/dashboard`, but the Go server serves the embedded bundle from `internal/dashboardui/dist`. Use the shared script below whenever you want the Go-served dashboard at `http://localhost:8080/` to reflect your latest frontend changes: ```bash theme={null} bash ./scripts/build-dashboard.sh ``` That script: 1. installs frontend dependencies with `npm ci` if `web/dashboard/node_modules` is missing 2. runs `npm run build` in `web/dashboard` 3. replaces `internal/dashboardui/dist` with the fresh Vite build output After running it, restart `go run . start`, `go build`, or any other Go process that embeds the dashboard assets. ### Creating a release 1. Create and push a tag: ```bash theme={null} git tag -a 0.1.0 -m "Release version 0.1.0" git push origin 0.1.0 ``` 2. Release with goreleaser: ```bash theme={null} export GITHUB_TOKEN="" echo $GITHUB_TOKEN | docker login ghcr.io -u --password-stdin goreleaser release --clean ``` This publishes release artifacts and the Homebrew distribution. GoReleaser runs `bash ./scripts/build-dashboard.sh` in its `before.hooks` before the test, lint, and build steps, so release artifacts automatically include a fresh embedded dashboard bundle. ## Troubleshooting Common issues: 1. Build failures: check Go version and dependencies 2. Database connection problems: verify PostgreSQL or SQLite access 3. MCP registration failures: verify the upstream server is reachable 4. Docker filesystem access issues: verify the `/host` mount ## Getting help * Check [GitHub Issues](https://github.com/mcpjungle/MCPJungle/issues) * Join [Discord](https://discord.gg/CapV4Z3krk) * Open a GitHub Discussion for design or workflow questions ## Contribution guide For workflow and contribution expectations, see the [Contributing guide](/developers/contributing). # Control MCP client access Source: https://docs.mcpjungle.com/governance/access-control Create MCP client identities in enterprise mode and give each one explicit access only to the upstream MCP servers it should be allowed to use. In development mode, every MCP client connected to the gateway can access all registered servers. In enterprise mode, that is no longer true. No MCP client can access any registered server until you create a client identity and give it an allow-list. ## Create an MCP client Use `create mcp-client` and specify the servers it should be allowed to access: ```bash theme={null} mcpjungle create mcp-client cursor-local --allow "calculator, github" ``` Mcpjungle prints the generated access token once: ```text theme={null} MCP client 'cursor-local' created successfully! Servers accessible: calculator,github Access token: 1YHf2LwE1LXtp5lW_vM-gmdYHlPHdqwnILitBhXE4Aw Send this token in the `Authorization: Bearer {token}` HTTP header. ``` > [!NOTE] > > If you omit `--allow`, the client is created but cannot access any registered servers. > [!TIP] > > You can use `--allow "*"` to give an MCP client access to all registered MCP servers. > > ```bash theme={null} > mcpjungle create mcp-client cursor-local --allow "*" > ``` > > This is highly discouraged in production environments. Prefer explicit allow-lists so each client only gets access to the servers it actually needs. ## Use the token from an MCP client Your MCP client or bridge must send the token in the `Authorization` header. Example for Cursor: ```json theme={null} { "mcpServers": { "mcpjungle": { "url": "http://localhost:8080/mcp", "headers": { "Authorization": "Bearer YOUR_ACCESS_TOKEN" } } } } ``` Example for Claude via `mcp-remote`: ```json theme={null} { "mcpServers": { "mcpjungle": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8080/mcp", "--allow-http", "--header", "Authorization: Bearer YOUR_ACCESS_TOKEN" ] } } } ``` ## Custom access tokens If you want to supply your own token instead of using a generated one: ```bash theme={null} mcpjungle create mcp-client cursor-local --allow "calculator, github" --access-token my_custom_token ``` This is useful when tokens are issued or tracked externally. For example, you might be managing identities and tokens through Vault or AWS KMS. ## Create a client from a config file ```json theme={null} { "name": "cursor-local", "allowed_servers": ["calculator", "github"], "access_token": "my_secret_token_123", "access_token_ref": { "file": "/path/to/token-file.txt", "env": "ENV_VAR_NAME" } } ``` Create it with: ```bash theme={null} mcpjungle create mcp-client --conf ./cursor-local.json ``` > [!WARNING] > > When creating an MCP client from a config file, you must provide a token explicitly. Mcpjungle cannot print an auto-generated token back through the file-based workflow. See the [configuration file reference](/reference/config-file#token-supply-strategies) for the supported ways to supply a custom token in config files. ## Recommended pattern For shared environments, create one MCP client per integration or workflow, not one shared token for everything. Examples: * one client for Cursor * one for Claude Desktop via `mcp-remote` * one for Copilot * one per internal agent or service That keeps access explicit and rotation manageable. ## Related pages > **[Governance overview](/governance/overview)** > > Understand how enterprise mode changes the operating model. > **[Clients and users](/governance/clients-and-users)** > > Manage machine identities and human user accounts separately. > **[Production deployment](/deployment/production)** > > Run Mcpjungle in enterprise mode and initialize it correctly. > **[Integrations](/integrations/cursor)** > > See how to apply client tokens in Cursor, Claude, and Copilot configs. # Manage clients and users Source: https://docs.mcpjungle.com/governance/clients-and-users Manage machine identities for MCP clients and user accounts for human operators in Mcpjungle enterprise mode. Enterprise mode separates machine identities from human identities. * **MCP clients** represent IDEs, bridges, and agents that connect to the gateway. * **Users** represent humans who need authenticated access to Mcpjungle. That separation keeps client access control clean and avoids overloading one token model for every use case. ## MCP clients MCP clients are intended for non-human consumers of the gateway, such as: * Cursor * Claude * internal or custom agents Each MCP client gets: * a unique name * an access token * an allow-list of upstream MCP servers See [Access control](/governance/access-control) for the main workflow. ## Users Users are human accounts for operators who need authenticated CLI or API access. Compared with admins, a standard user has a narrower permission set. They can inspect and use Mcpjungle, but they do not get the same write capabilities as an admin. ## Create users ```bash theme={null} # Auto-generated token mcpjungle create user bob # Custom token mcpjungle create user alice --access-token alice_token_123 # From config file mcpjungle create user --conf /path/to/user-config.json ``` ## User config file ```json theme={null} { "name": "charlie", "access_token": "charlies_secret_token", "access_token_ref": { "file": "/path/to/token-file.txt", "env": "ENV_VAR_NAME" } } ``` When using a config file, provide a token explicitly. See the [configuration file reference](/reference/config-file#token-supply-strategies) for the supported token supply strategies for MCP client and user config files. ## Environment variable placeholders JSON config files support `${VAR_NAME}` placeholders in string values. See the [configuration file reference](/reference/config-file#var_name-placeholder-substitution) for the exact substitution rules and examples. ## Recommended identity model For a small to medium sized deployment: * create a small number of admin users for platform operators * create one user in mcpjungle for each human operator who needs CLI or API access * create one MCP client per consuming application or workflow * avoid sharing one token across multiple tools or teams That keeps auditability and token rotation manageable without introducing needless process overhead. ## Related pages > **[Access control](/governance/access-control)** > > Control which upstream servers each MCP client can access. > **[Governance overview](/governance/overview)** > > Understand the overall enterprise operating model. > **[Config file reference](/reference/config-file)** > > See the exact config schemas for clients and users. > **[Production deployment](/deployment/production)** > > Initialize and operate Mcpjungle correctly in enterprise mode. # Access and governance overview Source: https://docs.mcpjungle.com/governance/overview Understand Mcpjungle's enterprise operating model: authenticated clients, per-client server access, user accounts, and governance for shared deployments. If you're an individual user running mpcjungle locally or for personal use (most likely in development mode), you can skip this section entirely. The Governance model is useful for organizations running mcpjungle in a shared environment in the **enterprise mode**. In enterprise mode, organizations want: * Authenticated access to MCPs * MCP clients must be created explicitly * Each client's access to MCPs is controlled through allow-lists * Human users are separated from machine identities ## Development mode versus enterprise mode | Capability | Development mode | Enterprise mode | | - | - | - | | Gateway authentication | Disabled | Required | | MCP client access control | Open access to registered servers | Explicit allow-list per client | | User accounts | Not needed | Supported | | OpenTelemetry metrics | Disabled by default | Enabled by default | | Server initialization | Automatic | Manual initialization by an Administrator | ## Governance model Mcpjungle uses three main identity and access concepts in enterprise mode. ### Administrator Admin initializes the server, register MCP servers, creates mcp clients, creates users, and manages platform configuration. ### MCP clients MCP clients are machine identities for your AI clients (agents, CLIs like claude code, IDEs like Cursor, or custom mcp clients). Each client gets: * an access token * an allow-list of upstream MCP servers it may access ### Users Users are human identities for people who need authenticated access to Mcpjungle. They have a narrower permission set than admins. ## Typical enterprise flow **1. Start Mcpjungle in enterprise mode** Deploy the gateway in enterprise mode and connect it to PostgreSQL. **2. Initialize the server** Run `mcpjungle init-server` once to create the initial admin identity. **3. Register MCP servers** Add the upstream servers you want the gateway to expose. **4. Create MCP clients** Create one machine identity per client or workflow and grant access only to the servers that client should reach. **5. Create users when needed** Create standard users for human operators who need authenticated visibility into Mcpjungle. ## Why this matters For a shared deployment, a serious product needs more than just a gateway endpoint. It needs a control boundary: * which client can reach which server * which humans can operate the system * how tokens are issued and rotated * how usage can be observed centrally That is what enterprise mode is for. ## Next steps > **[Upstream authentication](/governance/upstream-authentication)** > > Configure bearer tokens and custom headers for Mcpjungle's upstream server connections. > **[Access control](/governance/access-control)** > > Create MCP clients and define exactly which servers they can access. > **[Clients and users](/governance/clients-and-users)** > > Manage machine identities and human accounts cleanly. > **[Production deployment](/deployment/production)** > > Run Mcpjungle with the expected enterprise operating model. # Authenticate to upstream MCP servers Source: https://docs.mcpjungle.com/governance/upstream-authentication Configure mcpjungle to make authenticated requests to upstream MCPs This page is about **upstream authentication**: how Mcpjungle authenticates when it calls an upstream MCP server. ## When you need this Use upstream authentication when the MCP server you are registering requires some form of authentication (eg- static bearer token, custom headers, or OAuth). Typical examples: * SaaS-hosted MCP servers * Internal MCP servers behind an API gateway * Self-hosted MCP servers using static bearer-token auth * Hosted MCP servers that require OAuth approval during registration ## Bearer token via CLI flag If the upstream server accepts a standard bearer token, pass it at registration time: ```bash theme={null} mcpjungle register \ --name huggingface \ --description "HuggingFace MCP Server" \ --url https://huggingface.co/mcp \ --bearer-token ``` Mcpjungle will send: ```text theme={null} Authorization: Bearer ``` on requests to that upstream server. ## Bearer token in a config file ```json theme={null} { "name": "huggingface", "transport": "streamable_http", "url": "https://huggingface.co/mcp", "description": "HuggingFace MCP Server", "bearer_token": "" } ``` ## Custom headers If the upstream server expects a non-standard authorization format or additional headers, use the `headers` field: ```json theme={null} { "name": "sourcegraph", "transport": "streamable_http", "url": "https://sourcegraph.mycompany.com/.api/mcp", "headers": { "Authorization": "token ", "Custom-Header": "custom-value" } } ``` If you set both `bearer_token` and `headers.Authorization`, the explicit header value should be treated as the more specific configuration. ## Upstream OAuth during registration Mcpjungle now supports OAuth flows for upstream HTTP MCP servers in beta. The simplest path is interactive CLI registration: ```bash theme={null} mcpjungle register --name todoist --url https://ai.todoist.net/mcp ``` If the upstream MCP server requires OAuth: 1. Mcpjungle first tries a normal unauthenticated registration. 2. If the upstream server responds with `401` and advertises OAuth, the CLI opens your browser. 3. You approve the OAuth request. 4. Mcpjungle stores the resulting token and completes server registration. > [!NOTE] > > This upstream OAuth support is currently beta. ## OAuth fields in config files You can also configure the upstream OAuth flow explicitly in the server JSON config: ```json theme={null} { "name": "todoist", "transport": "streamable_http", "url": "https://ai.todoist.net/mcp", "oauth_redirect_uri": "http://127.0.0.1:8085/oauth/callback", "oauth_client_id": "", "oauth_client_secret": "", "oauth_scopes": ["mcp.read"] } ``` Field meanings: * `oauth_redirect_uri`: callback URI used during the upstream OAuth flow * `oauth_client_id`: optional pre-registered OAuth client ID * `oauth_client_secret`: optional client secret associated with `oauth_client_id` * `oauth_scopes`: optional scopes to request during authorization If `oauth_client_id` is omitted, Mcpjungle attempts dynamic client registration when the upstream authorization server supports it. ## Environment variable placeholders JSON config files support `${VAR_NAME}` placeholders in string fields, including `bearer_token` and header values: ```json theme={null} { "name": "affine-main", "transport": "streamable_http", "url": "https://app.affine.pro/api/workspaces/${AFFINE_WORKSPACE_ID}/mcp", "bearer_token": "${AFFINE_API_TOKEN}", "headers": { "X-Workspace": "${AFFINE_WORKSPACE_ID}" } } ``` Placeholder expansion happens in the CLI process before the config is sent to Mcpjungle. See the [configuration file reference](/reference/config-file#var_name-placeholder-substitution) for the full substitution rules. ## STDIO servers and auth via environment variables For STDIO-based MCP servers, authentication is typically passed through environment variables in the server config. Example: ```json theme={null} { "name": "my-stdio-server", "transport": "stdio", "command": "uvx", "args": ["my-server"], "env": { "API_TOKEN": "${API_TOKEN}" } } ``` Mcpjungle will start the STDIO server process with those environment variables, allowing the upstream server to read its credentials from the process environment. ## Important scope distinction Two different authentication layers can exist in the same deployment: * **Gateway authentication**: Enterprise-mode clients authenticating to Mcpjungle. * **Upstream authentication**: Mcpjungle authenticating to a registered MCP server. Those are separate concerns and use different configuration points. ## Current limitations Current upstream OAuth support has some limitations: * The feature is currently beta * It is only supported for streamable HTTP transport * The oauth token stored is scoped to the whole gateway, ie, per-user oauth login is currently not supported ## Related pages > **[Register servers](/guides/register-http-servers)** > > Register streamable HTTP MCP servers with CLI flags or config files. > **[Access control](/governance/access-control)** > > Configure how MCP clients authenticate to the Mcpjungle gateway itself. > **[Clients and users](/governance/clients-and-users)** > > Manage human and machine identities in enterprise mode. > **[Limitations](/limitations)** > > Review the remaining OAuth constraints and other current gaps. # Dashboard UI Source: https://docs.mcpjungle.com/guides/dashboard Manage mcp servers through the mcpjungle Dashboard UI Mcpjungle let you manage your MCP servers and other entities through a Web UI. Once your server is running, you can open this dashboard in your browser at [http://localhost:8080/](http://localhost:8080/) or whatever port the server process is listening on. ![MCPJungle dashboard UI](https://mintcdn.com/mcpjungle/Fp2FwP_EhuKqtWTe/images/dashboard-ui.png?fit=max\&auto=format\&n=Fp2FwP_EhuKqtWTe\&q=85\&s=bc7e28ce2f8cf7c30a5d191aa9bab087) The Dashboard is currently only supported when running mcpjungle in [development mode](/core-concepts#development-mode-vs-enterprise-mode). > [!NOTE] > > Dashboard is currently a Beta feature. The CLI remains the most complete management interface today, and the Dashboard UI is also available for local/dev visibility and common management tasks. > Please report any issues or feedback you have. # Manage Resources Source: https://docs.mcpjungle.com/guides/manage-resources Inspect and read MCP resources exposed by servers registered in Mcpjungle. When you register an MCP server, Mcpjungle also registers any resources exposed by that server. Each resource receives a URI that is unique across Mcpjungle. See [Core concepts](/core-concepts#resources) for the resource URI model and how Mcpjungle keeps resources from different servers distinct. ## Get resource metadata Use the `get resource` command with the resource URI to inspect metadata about a resource: ```bash theme={null} # list available resources (useful for discovering resource URIs) mcpjungle list resources mcpjungle get resource mcpj://res/mintlify-mcpjungle/bWludGxpZnk6Ly9za2lsbHMvbWNwanVuZ2xl ``` ## Read resource contents Add the `--read` flag to read the resource contents: ```bash theme={null} mcpjungle get resource --read mcpj://res/mintlify-mcpjungle/bWludGxpZnk6Ly9za2lsbHMvbWNwanVuZ2xl ``` Mcpjungle resolves the URI, routes the request to the upstream MCP server that owns the resource, and returns the resource contents. ## Related pages > **[Core concepts](/core-concepts)** > > Learn how Mcpjungle models resources and assigns globally unique resource URIs. > **[Tools and prompts](/guides/tools-and-prompts)** > > Manage the other MCP surface area exposed by registered servers. # Add Streamable HTTP MCP servers Source: https://docs.mcpjungle.com/guides/register-http-servers Register remote MCP servers in mcpjungle using CLI. Expose them via the mcp gateway. MCP servers using the [Streamable HTTP transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) can be added to Mcpjungle. Once registered, a server's tools, prompts, and resources are available to any MCP client that connects to mcpjungle mcp endpoint. ## Register a server with CLI flags The quickest way to register a Streamable HTTP server is with the `register` command and inline flags: ```bash theme={null} mcpjungle register --name context7 --url https://mcp.context7.com/mcp ``` Here's an example of adding a custom MCP server running on your local machine ```bash theme={null} mcpjungle register --name calculator --description "Provides some basic math tools" --url http://127.0.0.1:5000/mcp ``` > [!NOTE] > > If Mcpjungle is running inside Docker on macOS or Windows, the container cannot reach `127.0.0.1` on your host. Use `host.docker.internal` instead: > > ```bash theme={null} > mcpjungle register --name calculator --description "Provides some basic math tools" --url http://host.docker.internal:5000/mcp > ``` ## Register a server from a config file For servers that need authentication or custom headers — or when you want to keep registration configs in version control — use a JSON config file: ```bash theme={null} mcpjungle register -c ./deepwiki.json ``` The full config file format for a Streamable HTTP server is: ```json theme={null} { "name": "deepwiki", "transport": "streamable_http", "description": "Deepwiki MCP Server", "url": "https://mcp.deepwiki.com/mcp", "bearer_token": "", "oauth_redirect_uri": "http://127.0.0.1:38291/oauth/callback", "oauth_client_id": "", "oauth_client_secret": "", "oauth_scopes": ["mcp.read"], "session_mode": "stateless", "headers": { "": "" } } ``` | Field | Required | Description | | - | - | - | | `name` | Yes | Unique identifier for this server. No spaces, special characters, or consecutive underscores. | | `transport` | Yes | Must be `"streamable_http"`. Other possible values are `"sse"` and `"stdio"`. | | `description` | No | Human-readable description surfaced in the CLI and API. | | `url` | Yes | The full URL of the MCP server's endpoint (e.g., `https://example.com/mcp`). Required when transport is streamable http. | | `bearer_token` | No | If set, Mcpjungle adds `Authorization: Bearer ` to every request to this server. | | `oauth_redirect_uri` | No | Redirect URI to use if the upstream server requires OAuth. When using the CLI interactively, Mcpjungle can usually generate a localhost callback automatically. | | `oauth_client_id` | No | Optional pre-registered OAuth client ID to use instead of dynamic client registration. | | `oauth_client_secret` | No | Optional OAuth client secret paired with `oauth_client_id`. | | `oauth_scopes` | No | Optional list of scopes to request during the upstream OAuth flow. | | `session_mode` | No | `stateless` (default) creates a new connection per tool call. `stateful` reuses a persistent session across tool calls. | | `headers` | No | Map of additional HTTP headers to forward. If `Authorization` is set here, it overrides `bearer_token`. | ## Authenticating with a bearer token Many SaaS-hosted MCP servers require a static API token. Pass it with the `--bearer-token` flag: ```bash theme={null} mcpjungle register \ --name huggingface \ --description "HuggingFace MCP Server" \ --url https://huggingface.co/mcp \ --bearer-token ``` Or include it in the config file: ```json theme={null} { "name": "huggingface", "transport": "streamable_http", "description": "HuggingFace MCP Server", "url": "https://huggingface.co/mcp", "bearer_token": "" } ``` For servers that need a custom `Authorization` format or additional headers, use the `headers` field directly: ```json theme={null} { "name": "sourcegraph", "transport": "streamable_http", "url": "https://sourcegraph.mycompany.com/.api/mcp", "headers": { "Authorization": "token ", "X-Custom-Header": "custom-value" } } ``` ## Upstream OAuth flow > [!NOTE] > > Upstream OAuth support is currently in beta. If the upstream MCP server responds with `401 Unauthorized` and advertises OAuth, Mcpjungle can complete that authorization flow during registration. Typical CLI flow: ```bash theme={null} mcpjungle register --name todoist --url https://ai.todoist.net/mcp ``` What happens next: 1. Mcpjungle attempts a normal registration first. 2. If the upstream server requires OAuth, the CLI opens your browser. 3. You approve access. 4. Mcpjungle stores the resulting upstream token and completes registration automatically. If you are registering through a JSON config file or a non-interactive client, you can also provide explicit OAuth settings: ```json theme={null} { "name": "todoist", "transport": "streamable_http", "url": "https://ai.todoist.net/mcp", "oauth_redirect_uri": "http://127.0.0.1:8085/oauth/callback", "oauth_scopes": ["mcp.read"] } ``` If you already have pre-registered OAuth client credentials with the upstream authorization server, include `oauth_client_id` and `oauth_client_secret` as well. ## Environment variable substitution JSON config files support `${VAR_NAME}` placeholders in string fields, including URLs, bearer tokens, and header values. See the [configuration file reference](/reference/config-file#\$var_name-placeholder-substitution) for the exact substitution rules and examples. ## Verify the registration After registering a server, inspect what Mcpjungle discovered: ```bash theme={null} mcpjungle list tools # get the usage schema of a tool mcpjungle usage deepwiki__read_wiki_structure # call a tool from cli mcpjungle invoke deepwiki__read_wiki_structure --input '{"repoName": "facebook/react"}' ``` That is the quickest way to confirm both the upstream server and Mcpjungle routing are working as expected. ## Deregister a server To remove a server from Mcpjungle: ```bash theme={null} mcpjungle deregister deepwiki ``` Deregistering removes the server and all the tools, prompts, and resources it provided. They are no longer accessible by clients using mcpjungle. ## Related pages > **[STDIO servers](/guides/register-stdio-servers)** > > Register local process-based MCP servers using JSON config files. > **[Connect Claude Desktop](/integrations/claude)** > > Connect Claude Desktop to Mcpjungle and start using your registered tools through one MCP endpoint. > **[Tools and prompts](/guides/tools-and-prompts)** > > List, invoke, enable, disable, and retrieve what registered servers expose. > **[Config file reference](/reference/config-file)** > > See the full JSON schema details for server registration files. # Register popular MCP Servers Source: https://docs.mcpjungle.com/guides/register-popular-servers Example-driven guide for registering commonly used MCP servers in Mcpjungle. This page shows practical registration examples for commonly used MCP servers. It complements the transport-specific guides: * [Add Streamable HTTP MCP servers](/guides/register-http-servers) * [Add STDIO MCP servers](/guides/register-stdio-servers) Use direct CLI flags when a server only needs a name and URL. Use JSON config files when the server needs advanced configurations like authentication, OAuth, custom headers, environment variables, or `stateful` sessions. For any JSON example on this page, register it with: ```bash theme={null} mcpjungle register -c ./.json ``` ## Hosted HTTP servers ### Context7: fastest possible registration If the upstream server is public and does not require extra configuration, register it directly with CLI flags: ```bash theme={null} mcpjungle register --name context7 --url https://mcp.context7.com/mcp ``` This is the simplest pattern for hosted Streamable HTTP servers. ### DeepWiki: simple config file If you prefer to keep server registrations in version control, use a JSON config file even for simple HTTP servers: ```json theme={null} { "name": "deepwiki", "transport": "streamable_http", "url": "https://mcp.deepwiki.com/mcp", "description": "DeepWiki MCP server" } ``` ### GitHub: bearer token from an environment variable For servers that require a static token, it is recommended to keep the secret out of the file and inject it from the shell environment: ```json theme={null} { "name": "github", "transport": "streamable_http", "url": "https://api.githubcopilot.com/mcp", "description": "GitHub MCP server", "bearer_token": "${GITHUB_PAT}" } ``` ```bash theme={null} export GITHUB_PAT=your_token_here ``` This is the pattern to reuse for hosted servers that accept standard bearer authentication. ### Figma: upstream OAuth during registration Some hosted servers use OAuth instead of static API tokens. Figma is a good example: ```json theme={null} { "name": "figma", "transport": "streamable_http", "url": "https://mcp.figma.com/mcp", "description": "Figma MCP server" } ``` If the upstream server advertises OAuth, the CLI opens a browser, you approve access, and Mcpjungle completes registration automatically. ### Todoist: OAuth flow from a direct CLI command Todoist is a good example of a hosted server where the fastest path is still a direct CLI command: ```bash theme={null} mcpjungle register --name todoist --url https://ai.todoist.net/mcp ``` Todoist enforces OAuth. Running this command starts the upstream OAuth flow in your browser, and Mcpjungle completes the registration after you approve access. ## Local STDIO servers ### Filesystem: minimal STDIO example The official filesystem server is the canonical example of local STDIO registration: ```json theme={null} { "name": "filesystem", "transport": "stdio", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."], "description": "Filesystem MCP server" } ``` This pattern is useful for local tools that do not need extra secrets or long-lived sessions. If you run Mcpjungle inside Docker and want to use the filesystem server, see the Docker caveat in [Add STDIO MCP servers](/guides/register-stdio-servers#running-in-docker-filesystem-access). ### Playwright: STDIO server with `stateful` sessions Playwright requires persistent sessions so each tool call can reuse the same running browser process: ```json theme={null} { "name": "playwright", "transport": "stdio", "command": "npx", "args": ["-y", "@playwright/mcp@latest"], "description": "Playwright MCP server", "session_mode": "stateful" } ``` > [!WARNING] > > You must use `session_mode: "stateful"` for the Playwright MCP server. In `stateless` mode, Playwright does not work properly because each tool call starts a fresh process instead of reusing the active browser session. ### n8n: STDIO server with required environment variables Some STDIO servers need environment variables at process startup: ```json theme={null} { "name": "n8n", "transport": "stdio", "command": "npx", "args": ["-y", "n8n-mcp"], "description": "n8n MCP server", "env": { "MCP_MODE": "stdio", "LOG_LEVEL": "error" } } ``` Add secrets the same way: ```json theme={null} { "env": { "API_KEY": "${N8N_API_KEY}" } } ``` ### Time: small `uvx`-based server If your STDIO server is Python-based, `uvx` is often the cleanest launcher: ```json theme={null} { "name": "time", "transport": "stdio", "command": "uvx", "args": ["mcp-server-time"], "description": "Time MCP server", "session_mode": "stateful" } ``` This is a good template for small Python-distributed MCP servers. ## SSE transport > [!WARNING] > > SSE is a deprecated MCP transport and is discouraged in Mcpjungle. Prefer Streamable HTTP for remote servers unless you specifically need to connect to an older SSE-based deployment. If you still need to register an SSE server, use a JSON config file: ```json theme={null} { "name": "test-mcp", "transport": "sse", "url": "http://host.docker.internal:9000/sse", "description": "Legacy SSE MCP server" } ``` This is mainly useful for compatibility with older MCP servers that have not migrated to Streamable HTTP yet. ## Related pages > **[HTTP servers](/guides/register-http-servers)** > > Register hosted MCP servers over Streamable HTTP. > **[STDIO servers](/guides/register-stdio-servers)** > > Register local MCP servers that run as child processes. > **[Session modes](/guides/session-modes)** > > Decide when to use `stateless` versus `stateful` server sessions. > **[Config file reference](/reference/config-file)** > > See the exact JSON config formats and environment substitution rules. # Add STDIO MCP servers Source: https://docs.mcpjungle.com/guides/register-stdio-servers Register stdio transport-based MCP servers in mcpjungle using CLI. Expose them via the mcp gateway. Mcpjungle supports MCP servers that use the [STDIO transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#stdio). These servers run as child processes on the same host as the Mcpjungle server and communicate through standard input and output. Common examples include [filesystem](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem) and [time](https://github.com/modelcontextprotocol/servers/tree/main/src/time). Because STDIO servers run as local processes, you must register them using a JSON config file — the CLI flags only cover Streamable HTTP registration. ## Register a STDIO server **1. Write a config file** Create a JSON file describing your server. Here is an example for the official MCP filesystem server: ```json theme={null} { "name": "filesystem", "transport": "stdio", "description": "Filesystem MCP server", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."] } ``` **2. Register with Mcpjungle** Pass the file to the `register` command with the `-c` flag: ```bash theme={null} mcpjungle register -c ./filesystem.json ``` Mcpjungle spawns the process, initializes the connection, loads its tool list, and registers the server. ## Config file format The full set of fields for a STDIO server config: ```json theme={null} { "name": "", "transport": "stdio", "description": "", "command": "", "args": ["", ""], "session_mode": "stateless", "env": { "KEY": "value" } } ``` | Field | Required | Description | | - | - | - | | `name` | Yes | Unique identifier. No spaces, special characters, or consecutive underscores. | | `transport` | Yes | Must be `"stdio"`. Other possible values are `"streamable_http"` and `"sse"`. | | `description` | No | Human-readable description surfaced in the CLI and API. | | `command` | Yes | The executable to run — typically `"npx"` or `"uvx"`. | | `args` | No | List of arguments passed to `command` when Mcpjungle spawns the process. | | `session_mode` | No | `stateless` (default) creates a new process/connection per tool call. `stateful` reuses a persistent session. | | `env` | No | Map of environment variables injected into the process environment at startup. | ## Examples ```json npx (filesystem) theme={null} { "name": "filesystem", "transport": "stdio", "description": "Filesystem MCP server", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."], "session_mode": "stateless" } ``` ```json uvx (custom server) theme={null} { "name": "my-stdio-server", "transport": "stdio", "description": "Custom uvx-based server", "command": "uvx", "args": ["my-server", "--workspace", "${WORKSPACE_ID}"], "session_mode": "stateful", "env": { "API_TOKEN": "${API_TOKEN}" } } ``` ## Environment variable substitution JSON config files support `${VAR_NAME}` placeholders in string fields, including command args and `env` values. See the [configuration file reference](/reference/config-file#\$var_name-placeholder-substitution) for the full substitution rules and examples. ## Running in Docker: filesystem access When Mcpjungle runs inside a Docker container, the container process does not have access to your host filesystem by default. To use the `filesystem` MCP server from inside Docker, you need to mount the host directory you want to expose. The default `docker-compose.yaml` provided by Mcpjungle mounts your current working directory as `/host` inside the container. Use `/host` as the target directory in your config: ```json theme={null} { "name": "filesystem", "transport": "stdio", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/host"] } ``` This gives the `filesystem` server access to your current working directory on the host machine, mounted at `/host` inside the container. > [!TIP] > > If you need to expose a different directory, add a volume mount to your `docker-compose.yaml` and update the path in `args` accordingly. ## Using the stdio Docker image STDIO-based servers that rely on `npx` or `uvx` require those tools to be present in the Mcpjungle container. > [!WARNING] > > The default `mcpjungle` Docker image is minimal and does not include `npx` or `uvx`. You must use the `latest-stdio` tagged image when registering STDIO servers that use these commands. Start Mcpjungle with the `stdio` image using the `MCPJUNGLE_IMAGE_TAG` environment variable: ```bash theme={null} MCPJUNGLE_IMAGE_TAG=latest-stdio docker compose up -d ``` > [!NOTE] > > If you are using the development `docker-compose.yaml`, the `latest-stdio` tag is already the default. You only need to set `MCPJUNGLE_IMAGE_TAG` explicitly when using `docker-compose.prod.yaml`. If your STDIO server depends on a tool other than `npx` or `uvx`, create a custom Docker image that builds on the Mcpjungle base image and installs the additional dependency. ## Debugging STDIO servers If a STDIO server fails to start or throws errors during a tool call, check the Mcpjungle server logs. The server captures `stderr` output from child processes and writes it to its own log stream, making it the primary place to diagnose STDIO server issues. ## Related pages > **[Session modes](/guides/session-modes)** > > Use stateful mode when a STDIO server's cold start cost becomes a bottleneck. > **[Docker deployment](/deployment/docker)** > > Choose the right image and understand container filesystem access. > **[Register HTTP servers](/guides/register-http-servers)** > > Register remote MCP servers over streamable HTTP. > **[Config file reference](/reference/config-file)** > > See the exact JSON schema for STDIO registration files. # Stateful & Stateless server connections Source: https://docs.mcpjungle.com/guides/session-modes Understand Mcpjungle's two session modes, when persistent connections help, and why stateless should remain the default unless cold-start cost is a real problem. When an MCP client calls a tool through Mcpjungle, the gateway must open a connection to the upstream MCP server, execute the tool, and return the result. How Mcpjungle manages that connection lifecycle is controlled by the server's **session mode**. ## Stateless mode (default) In stateless mode, Mcpjungle opens a fresh connection to the upstream MCP server for every tool call. Once the call completes, the connection is closed immediately. In case of a http upstream server, this means a new HTTP request is made for each tool call. For a stdio server, this means a new process is spawned for each call. This is the default behavior and requires no configuration. It keeps memory usage predictable, avoids leaked connections, and means each tool call is fully independent of the last. ## The cold-start problem Stateless mode introduces latency for MCP servers that take time to initialize. The most common case is STDIO transport servers: every tool call spawns a new process, the process starts up, executes the tool, and then exits. If a server process takes several seconds to start, each tool call incurs that startup cost. This is called the **cold-start problem**. ## Stateful mode Stateful mode solves the cold-start problem by keeping the connection to the upstream server open across multiple tool calls. Set `session_mode` to `"stateful"` in your server config: ```json theme={null} { "name": "filesystem", "transport": "stdio", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."], "session_mode": "stateful" } ``` With stateful mode enabled: 1. The first tool call to this server establishes the connection (and spawns the process for STDIO servers). 2. The connection remains open after the call completes. 3. All subsequent tool calls to the same server reuse the existing connection, skipping the startup overhead entirely. ## When is a stateful connection closed? A persistent connection is closed in three situations: > **Mcpjungle server stops** > > All stateful connections are closed during graceful shutdown of the Mcpjungle server process. > **Server is deregistered** > > Running `mcpjungle deregister ` closes the connection and removes the server from the registry. > **Idle timeout expires** > > If `SESSION_IDLE_TIMEOUT_SEC` is set on the Mcpjungle server, connections that have been idle for longer than that duration are closed automatically. ## Configuring the idle timeout The `SESSION_IDLE_TIMEOUT_SEC` environment variable controls how long Mcpjungle waits before closing an idle stateful connection. Set it on the Mcpjungle server before startup: ```bash theme={null} export SESSION_IDLE_TIMEOUT_SEC=300 # close connections idle for more than 5 minutes mcpjungle start ``` The default value is `-1`, which disables the timeout entirely — stateful connections stay open until the server stops or the server is deregistered. | Value | Behavior | | - | - | | `-1` | No timeout. Connection stays open indefinitely (default). | | `N` | Connection closed after `N` seconds of inactivity. | ## Choosing a session mode > [!TIP] > > Use stateless mode whenever possible. It is simpler operationally, uses fewer long-lived resources, and is sufficient for most Streamable HTTP servers. Use stateful mode when: * You are running STDIO servers that have a slow startup time (installing packages, loading large models, etc.). * The upstream server requires session state to be maintained between calls (for example, after a login step). Avoid stateful mode for servers that are fast to connect or where you want strict isolation between tool calls. # Tool Groups Source: https://docs.mcpjungle.com/guides/tool-groups Expose only a subset of all tools to clients over dedicated MCP endpoints. As more MCP servers are added to mcpjungle, the number of tools, prompts and resources available through the gateway mcp endpoint can quickly explode. This can cause context overload for your clients. Mcpjungle allows you to create custom MCP endpoints that only expose cherry-picked tools to clients. These are called **Tool Groups**. Your client can then connect to the specific group endpoint instead of the main `/mcp` gateway and only see tools you want to expose to it. ## How tool groups work When you create a group, Mcpjungle registers a new streamable HTTP endpoint at: ``` /v0/groups/{group-name}/mcp ``` Point your MCP client at that URL instead of the main gateway. The client will only discover and call the tools included in that group. Mcpjungle also creates SSE endpoints for the group: ```text theme={null} /v0/groups/{group-name}/sse /v0/groups/{group-name}/message ``` > [!WARNING] > > SSE is a deprecated MCP transport and its support in Mcpjungle is limited. Prefer the streamable HTTP endpoint unless you specifically need SSE compatibility. > [!NOTE] > > If a tool included in a group is later disabled globally or deregistered, it becomes unavailable through the group endpoint automatically. Re-enabling or re-registering the tool makes it available again without any changes to the group configuration. ## Configuration file format You define a group in a JSON file and pass it to the `create group` command. Three fields control which tools are included: | Field | Type | Description | | - | - | - | | `name` | string | Unique name for the group (required). | | `description` | string | Human-readable description (optional). | | `included_tools` | string\[] | Canonical tool names to include individually. | | `included_servers` | string\[] | Include all tools from these MCP servers. | | `excluded_tools` | string\[] | Remove specific tools from the resolved set (applied last). | > [!WARNING] > > Exclusion is always applied after inclusion. If a tool appears in both `included_tools` and `excluded_tools`, it will be excluded from the final group. ## Configuration approaches **Cherry-pick specific tools** Use `included_tools` to handpick exactly which tools to expose. Tool names follow the canonical format `__`. ```json claude-tools-group.json theme={null} { "name": "claude-tools", "description": "This group only contains tools for Claude Desktop to use", "included_tools": [ "filesystem__read_file", "deepwiki__read_wiki_contents", "time__get_current_time" ] } ``` This group exposes exactly three tools regardless of how many tools are registered in Mcpjungle. > [!TIP] > > Run `mcpjungle list tools` to see all available tool names before building your group configuration. **Include entire servers** Use `included_servers` to pull in all tools from one or more servers. Combine with `excluded_tools` to remove specific tools you don't want to expose. ```json claude-tools-group.json theme={null} { "name": "claude-tools", "description": "All tools from time and deepwiki servers except time__convert_time", "included_servers": ["time", "deepwiki"], "excluded_tools": ["time__convert_time"] } ``` This includes every tool from the `time` and `deepwiki` servers, then removes `time__convert_time` from the result. **Mix both approaches** Combine `included_tools`, `included_servers`, and `excluded_tools` for maximum flexibility. ```json comprehensive-tools-group.json theme={null} { "name": "comprehensive-tools", "description": "Mix of manual tools, server inclusion, and exclusions", "included_tools": ["filesystem__read_file"], "included_servers": ["time"], "excluded_tools": ["time__convert_time"] } ``` This adds `filesystem__read_file` explicitly, then includes all tools from the `time` server, then removes `time__convert_time`. Exclusion runs last regardless of the order fields appear in the file. ## Creating a group Pass the configuration file to the `create group` command using the `-c` flag: ```bash theme={null} mcpjungle create group -c ./claude-tools-group.json ``` Mcpjungle confirms the group was created and prints its endpoint: ``` Tool Group claude-tools created successfully It is now accessible at the following streamable http endpoint: http://127.0.0.1:8080/v0/groups/claude-tools/mcp SSE endpoints are also available: http://127.0.0.1:8080/v0/groups/claude-tools/sse http://127.0.0.1:8080/v0/groups/claude-tools/message ``` Configure your MCP client to connect to that URL instead of `http://127.0.0.1:8080/mcp`. The client will only see the tools in the group. This is the recommended pattern whenever a single client should use a curated tool set rather than the whole gateway. ## Managing groups **1. List all groups** ```bash theme={null} mcpjungle list groups ``` **2. Inspect a specific group** ```bash theme={null} mcpjungle get group claude-tools ``` This shows the group's description, its MCP endpoint URLs, and the lists of included tools, included servers, and excluded tools. **3. Delete a group** ```bash theme={null} mcpjungle delete group claude-tools ``` Deleting a group removes its endpoint. Make sure no MCP clients are connected to that endpoint before you delete it. The tools themselves are not deleted — only the group configuration. ## Working with tools inside a group Use the `--group` flag on `list tools` and `invoke` to scope operations to a specific group: ```bash theme={null} # List tools visible in the group mcpjungle list tools --group claude-tools # Invoke a tool through the group context mcpjungle invoke filesystem__read_file --group claude-tools --input '{"path": "README.md"}' ``` These commands are useful for verifying that a group is configured correctly before pointing a client at it. ## Known limitations > **Prompts & Resources are currently not supported in Tool Groups** > > [MCP Prompts](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts) and Resources are not currently available through group endpoints. Clients connected to a group endpoint cannot discover or invoke prompts. This is a known issue tracked at [mcpjungle#136](https://github.com/mcpjungle/MCPJungle/issues/136). > **Enterprise mode: only admins can create groups** > > When Mcpjungle runs in `enterprise` mode, only an admin account can create Tool Groups. Standard users do not have permission to create groups. Support for user-scoped groups is planned for a future release. # Manage tools and prompts Source: https://docs.mcpjungle.com/guides/tools-and-prompts List, inspect, invoke, enable, and disable the tools and prompts exposed by the MCP servers registered in Mcpjungle. Once an MCP server is registered, Mcpjungle tracks what it exposes and lets you manage that surface area without removing the server itself. This page covers: * listing tools and prompts * checking tool usage (input schema) * invoking tools * retrieving prompts * enabling and disabling tools, prompts, and entire servers ## Tools Every tool is identified by a canonical name: ```text theme={null} __ ``` See [core concepts](/core-concepts#canonical-names) for more details on names. ### List available tools ```bash theme={null} mcpjungle list tools ``` To scope the list to a specific server: ```bash theme={null} mcpjungle list tools --server context7 ``` To scope the list to a [Tool Group](/core-concepts#groups): ```bash theme={null} mcpjungle list tools --group claude-tools ``` ### Inspect tool usage ```bash theme={null} mcpjungle usage deepwiki__read_wiki_structure ``` This shows the tool schema and expected input shape. ### Invoke a tool Ideally, tools will be invoked by your MCP clients through the gateway. The CLI allows you to invoke tools directly for testing and debugging. ```bash theme={null} mcpjungle invoke deepwiki__read_wiki_structure --input '{"repoName": "facebook/react"}' ``` You can also invoke through a Tool Group context: ```bash theme={null} mcpjungle invoke filesystem__read_file --group claude-tools --input '{"path": "README.md"}' ``` ## Prompts Mcpjungle supports [MCP Prompts](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts). If a registered server exposes prompts, Mcpjungle registers them alongside that server's tools. Prompt names follow the same canonical pattern: ```text theme={null} __ ``` ### List prompts ```bash theme={null} mcpjungle list prompts mcpjungle list prompts --server huggingface ``` ### Retrieve a prompt with arguments As with tools, prompts will also be read by your MCP clients. Use the CLI to retrieve prompts directly for testing and debugging: ```bash theme={null} mcpjungle get prompt "huggingface__Model Details" --arg model_id="openai/gpt-oss-120b" ``` Pass one `--arg key=value` flag per prompt argument. ## Enable and disable exposure Mcpjungle lets you hide tools and prompts from clients without deleting the underlying server registration. When you disable something: * it disappears from gateway discovery * MCP clients cannot call it through Mcpjungle * you can still manage it through the CLI and API All tools and prompts are enabled by default when a server is first registered. ### Disable or re-enable a single tool ```bash theme={null} mcpjungle disable tool context7__get-library-docs mcpjungle enable tool context7__get-library-docs ``` ### Disable or re-enable all tools from one server ```bash theme={null} mcpjungle disable tool context7 mcpjungle enable tool context7 ``` ### Disable or re-enable an entire server Disabling a server disables all of its tools, prompts and resources in one step: ```bash theme={null} mcpjungle disable server context7 mcpjungle enable server context7 ``` ### Disable or re-enable prompts ```bash theme={null} mcpjungle disable prompt "huggingface__Model Details" mcpjungle enable prompt "huggingface__Model Details" mcpjungle disable prompt context7 mcpjungle enable prompt context7 ``` ## How disabled entities behave | Context | Behavior | | - | - | | Main gateway (`/mcp`) | Disabled tools, prompts and resources are not listed and cannot be called. | | Tool Groups | A disabled tool does not remain available just because a group includes it. | | CLI and HTTP API | Disabled entities can still be listed, inspected, and re-enabled. | ## Operational notes * Disabling a server or tool does not remove its registration. * Deregister a server if you want to remove it permanently. ## Related pages > **[Tool groups](/guides/tool-groups)** > > Expose subsets of tools through dedicated MCP endpoints. > **[Register servers](/guides/register-http-servers)** > > Add new streamable HTTP MCP servers to the gateway. > **[STDIO servers](/guides/register-stdio-servers)** > > Register local process-based MCP servers. > **[Limitations](/limitations)** > > Review the current gaps, including prompt support in Tool Groups. # Installation Source: https://docs.mcpjungle.com/installation Install and run the mcpjungle CLI and gateway server Mcpjungle ships as a single binary. You will usually use this binary in two ways: * To run the Mcpjungle gateway server, which manages all upstream MCPs and serves the HTTP API & MCP endpoints * As a CLI client to manage the mcpjungle server and interact with the mcp gateway For individual users, the simplest (and recommended) setup is: install the CLI, then run the gateway with Docker Compose. **Homebrew** Homebrew is the recommended installation method on macOS and Linux. ```bash theme={null} brew install mcpjungle/mcpjungle/mcpjungle ``` > [!WARNING] > > On macOS, you must use Homebrew. The pre-built binary available on the Releases page is not [notarized](https://developer.apple.com/documentation/security/notarizing-macos-software-before-distribution) yet, so macOS will block it from running. Verify the installation: ```bash theme={null} mcpjungle version ``` **Docker** Pull the official Mcpjungle image if you want to run the gateway in Docker: ```bash theme={null} docker pull ghcr.io/mcpjungle/mcpjungle ``` The default image is light-weight & minimal. It contains only the `mcpjungle` binary and the dependencies needed for runtime. If you need to register stdio-based MCP servers that rely on `npx` or `uvx`, use the `stdio`-tagged image instead: ```bash theme={null} docker pull ghcr.io/mcpjungle/mcpjungle:latest-stdio ``` > [!NOTE] > > The `stdio`-tagged image is significantly larger in size due to more dependencies being included. > Use it only when you need to run stdio-based MCP servers as well. For running the gateway locally, the recommended approach is to use Docker Compose. See the [Deploy with Docker](/deployment/docker) guide for details. **Binary** Pre-built binaries for Linux and macOS are available on the [GitHub Releases page](https://github.com/mcpjungle/MCPJungle/releases). Download the binary for your platform, make it executable, and move it to a directory on your `PATH`. > [!WARNING] > > On macOS, the binary is not notarized, so Gatekeeper will block it from running. Use Homebrew instead. Alternatively, you can also [build the binary from source](/developers/development#building-and-testing). Verify the installation after placing the binary on your `PATH`: ```bash theme={null} mcpjungle version ``` ## Server You can use the binary to run the server directly on your host: ```bash theme={null} mcpjungle start ``` This starts the server on port 8080 by default. You can run a quick health check: ```bash theme={null} curl http://localhost:8080/health ``` The CLI also connects to this address by default. If the following command also returns the server version, then your CLI is correctly connected to the server: ```bash theme={null} mcpjungle version ``` ## Configure a custom registry URL By default, the CLI connects to Mcpjungle at `http://127.0.0.1:8080`. If your server runs on a different host or port, configure the registry URL in one of two ways: **--registry flag** Pass the URL inline with every command: ```bash theme={null} mcpjungle --registry http://my-server:9000 list tools ``` **Config file** Create or edit `.mcpjungle.conf` in your home directory so you don't repeat the flag: ```yaml theme={null} registry_url: http://my-server:9000 ``` You have now successfully installed mcpjungle and connected the CLI to the server. ## Next steps > **[Deploy with Docker](/deployment/docker)** > > Choose the right Docker path for local development or a shared deployment. > **[Core Concepts](/core-concepts)** > > Understand the difference between the CLI, the gateway, upstream MCP servers, and groups. > **[Add a streamable HTTP MCP server](/guides/register-http-servers)** > > Register a remote MCP server and expose it through mcpjungle. > **[Add a STDIO MCP server](/guides/register-stdio-servers)** > > Register a local STDIO-based MCP server and expose it through mcpjungle. # Connect Claude to mcpjungle Source: https://docs.mcpjungle.com/integrations/claude Connect Claude Desktop to your Mcpjungle gateway and give it access to all your MCP servers Claude Desktop does not support direct HTTP MCP connections, so you connect it to Mcpjungle through the `mcp-remote` bridge package. Once configured, Claude can discover and call every tool registered in your gateway from a single entry in its MCP servers config. ## Prerequisites * Mcpjungle running at `http://localhost:8080` (or your deployment URL) * [Node.js](https://nodejs.org) installed (required to run `npx`) * Claude Desktop installed ## Configure Claude Desktop Claude Desktop reads its MCP server configuration from a JSON file on disk. **1. Find the config file** Open the Claude Desktop configuration file for your operating system: **macOS** ``` ~/Library/Application Support/Claude/claude_desktop_config.json ``` **Windows** ``` %APPDATA%\Claude\claude_desktop_config.json ``` If the file does not exist, create it. **2. Add Mcpjungle as an MCP server** Add the following to `claude_desktop_config.json`: ```json theme={null} { "mcpServers": { "mcpjungle": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8080/mcp", "--allow-http" ] } } } ``` > [!NOTE] > > The `--allow-http` flag is required because `mcp-remote` enforces HTTPS by default. You need this flag when connecting to a local Mcpjungle instance over plain HTTP. **3. Restart Claude Desktop** Quit and reopen Claude Desktop. It will launch the `mcp-remote` process on startup and establish a connection to Mcpjungle. **4. Test the connection** In a new conversation, ask Claude to list available tools: ``` What MCP tools do you have access to? ``` Claude will query Mcpjungle and return the full list of tools from all registered servers. You can then invoke any tool directly in the conversation. ## Enterprise mode (authentication) If your Mcpjungle instance runs in enterprise mode, you must create an MCP client and pass its access token in the `Authorization` header. First, create a client with the Mcpjungle CLI: ```bash theme={null} mcpjungle create mcp-client claude-desktop --allow "server1, server2" ``` This will output an access token for your client which is allowed to call tools from `server1` and `server2`. Pass the token to `mcp-remote` using the `--header` flag: ```json theme={null} { "mcpServers": { "mcpjungle": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8080/mcp", "--allow-http", "--header", "Authorization: Bearer YOUR_ACCESS_TOKEN" ] } } } ``` Replace `YOUR_ACCESS_TOKEN` with the token printed by `mcpjungle create mcp-client`. > [!WARNING] > > In enterprise mode, a client can only see and call tools from the servers it was explicitly granted access to. If Claude reports no tools available, verify that the `--allow` flag included the correct server names when you created the client. ## Limit tools with Tool Groups As you register more MCP servers, the total number of tools visible to Claude can grow large. Too many tools can degrade Claude's response quality and increase latency. Use [Tool Groups](/guides/tool-groups) to create a curated subset of tools and point Claude at the group-specific endpoint instead of the main gateway: ```json theme={null} { "mcpServers": { "mcpjungle": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8080/v0/groups/claude-tools/mcp", "--allow-http" ] } } } ``` > [!TIP] > > Run `mcpjungle list tools` to see all available tools, then cherry-pick the ones Claude actually needs when creating a group. # Connect GitHub Copilot to mcpjungle Source: https://docs.mcpjungle.com/integrations/copilot Add Mcpjungle as an MCP server in GitHub Copilot's mcp.json config and give Copilot Chat access to all your registered tools. GitHub Copilot supports MCP servers through a `mcp.json` configuration file in your workspace or user settings. Pointing it at Mcpjungle lets Copilot Chat discover and call every tool registered in your gateway. ## Prerequisites * Mcpjungle running at `http://localhost:8080` (or your deployment URL) * GitHub Copilot with MCP support enabled in VS Code or your editor ## Configure GitHub Copilot Follow [GitHub's documentation on configuring MCP servers manually](https://docs.github.com/en/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp#configuring-mcp-servers-manually-1) to locate or create the `mcp.json` file for your setup. **1. Open or create mcp.json** Create or edit the `mcp.json` file in the location specified by GitHub Copilot's MCP documentation for your editor. **2. Add Mcpjungle as a server** Add the following configuration: ```json theme={null} { "servers": { "mcpjungle": { "url": "http://localhost:8080/mcp" } } } ``` **3. Start the Mcpjungle server in Copilot** After saving `mcp.json`, open Copilot Chat. You may see a **Start** button next to the Mcpjungle entry — click it to establish the connection. > [!NOTE] > > If Copilot does not automatically connect to Mcpjungle, look for a **Start** button in the MCP servers panel and click it manually. **4. Test the connection** In Copilot Chat, ask about available tools to confirm the connection is working: ``` What MCP tools do you have access to? ``` Copilot will query Mcpjungle and list the tools from all registered servers. ## Enterprise mode (authentication) If your Mcpjungle instance runs in enterprise mode, create a dedicated MCP client for Copilot and include its access token in the request headers. Create the client with the Mcpjungle CLI: ```bash theme={null} mcpjungle create mcp-client copilot-local --allow "server1, server2" ``` Then update `mcp.json` to send the token: ```json theme={null} { "servers": { "mcpjungle": { "url": "http://localhost:8080/mcp", "headers": { "Authorization": "Bearer YOUR_ACCESS_TOKEN" } } } } ``` Replace `YOUR_ACCESS_TOKEN` with the token printed by `mcpjungle create mcp-client`. > [!WARNING] > > In enterprise mode, a client can only access the servers listed in its `--allow` flag. If Copilot reports no tools, verify the client was created with the correct server names. ## Limit tools with Tool Groups If you have many MCP servers registered, use [Tool Groups](/guides/tool-groups) to expose only a relevant subset of tools to Copilot. Create a group and point `mcp.json` at its dedicated endpoint: ```json theme={null} { "servers": { "mcpjungle": { "url": "http://localhost:8080/v0/groups/copilot-tools/mcp" } } } ``` > [!TIP] > > Run `mcpjungle list tools` to see all registered tools, then create a group with only the tools your Copilot workflow needs. # Connect Cursor to mcpjungle Source: https://docs.mcpjungle.com/integrations/cursor Configure Cursor to connect directly to mcpjungle over streamable HTTP and access all your registered MCP tools inside the IDE. Cursor supports the streamable HTTP MCP transport natively, so you can point it directly at the Mcpjungle gateway. Once configured, Cursor's AI agent can discover and invoke every tool registered in Mcpjungle. ## Prerequisites * Mcpjungle running at `http://localhost:8080` (or your deployment URL) * Cursor installed ## Configure Cursor **1. Open MCP settings in Cursor** In Cursor, open **Settings** and navigate to the **MCP** section. Cursor stores MCP server configuration in a JSON file. You can edit it directly from the settings panel or open the file in your editor. **2. Add Mcpjungle as an MCP server** Add the following entry to your Cursor MCP configuration: ```json theme={null} { "mcpServers": { "mcpjungle": { "url": "http://localhost:8080/mcp" } } } ``` Unlike Claude Desktop, Cursor connects over HTTP directly — no `mcp-remote` bridge is needed. **3. Save and reload** Save the configuration. Cursor will connect to Mcpjungle and load the available tools automatically. **4. Test the connection** Open Cursor's agent chat and ask it to list the tools it has access to, or invoke a tool directly: ``` What MCP tools are available? ``` The agent will query Mcpjungle and return all tools from your registered servers. ## Enterprise mode (authentication) If your Mcpjungle instance runs in enterprise mode, create a dedicated MCP client for Cursor and include its access token in the request headers. Create the client with the Mcpjungle CLI: ```bash theme={null} mcpjungle create mcp-client cursor-local --allow "server1, server2" ``` Then update your Cursor MCP configuration to send the token: ```json theme={null} { "mcpServers": { "mcpjungle": { "url": "http://localhost:8080/mcp", "headers": { "Authorization": "Bearer YOUR_ACCESS_TOKEN" } } } } ``` Replace `YOUR_ACCESS_TOKEN` with the token printed by `mcpjungle create mcp-client`. > [!WARNING] > > In enterprise mode, a client can only access the servers listed in its `--allow` flag. If Cursor reports no tools, verify the client was created with the correct server names. ## Limit tools with Tool Groups When many MCP servers are registered, the full tool list can be long. Use [Tool Groups](/guides/tool-groups) to expose only the tools relevant to your Cursor workflow. Create a group and point Cursor at its dedicated endpoint: ```json theme={null} { "mcpServers": { "mcpjungle": { "url": "http://localhost:8080/v0/groups/cursor-tools/mcp" } } } ``` > [!TIP] > > Create a separate Tool Group for each agent or workflow. This keeps the tool list focused and improves the agent's decision-making. # Current limitations Source: https://docs.mcpjungle.com/limitations Current limitations in mcpjungle and known gaps to account for when planning a deployment or integration. Mcpjungle currently has a few limitations to be aware of. We're actively working on some of these to address them as quickly as possible. ## OAuth for upstream authentication Mcpjungle supports OAuth flows for upstream HTTP MCP server registration, but with some limitations: * the feature is currently beta * the OAuth grant is gateway-scoped, not per downstream user * the primary workflow is registration-time authorization ## OAuth, SSO and OIDC for downstream clients Mcpjungle also does not yet support OAuth, single sign-on, or OpenID Connect for downstream clients connecting to the Mcpjungle gateway itself. Today, the supported model for downstream client authentication is a static access token. Clients can use either: * auto-generated tokens created by Mcpjungle * custom tokens supplied by operators If you want stronger external control over token lifecycle, you can manage custom tokens outside Mcpjungle using tools such as Vault or AWS KMS and then supply those tokens to Mcpjungle clients. We're working on adding support for these in the coming months. ## Prompts & Resources in Tool Groups Prompts and Resources are not currently exposed through Tool Group endpoints. The main gateway endpoint `/mcp` can surface everything. But group-specific endpoints work well with tools only. ## MCPs and Groups in enterprise mode In enterprise mode, only administrators can add MCP servers and create Tool Groups at the moment. Normal users cannot yet do this. # Quickstart Source: https://docs.mcpjungle.com/quickstart Start Mcpjungle gateway, register your first MCP server, and connect a client — all in under 5 minutes. This quickstart guide will show you how to: 1. Start the mcpjungle server locally using `docker compose` 2. Add the [context7](https://context7.com/) MCP server in mcpjungle 3. Connect your Claude Desktop to mcpjungle to access tools ## Start the server Fetch the `docker-compose.yaml` and start the mcpjungle server: ```bash theme={null} curl -O https://raw.githubusercontent.com/mcpjungle/MCPJungle/refs/heads/main/docker-compose.yaml docker compose up -d ``` This exposes mcpjungle's streamable http mcp server at `http://localhost:8080/mcp` by default. ## Add an MCP server 1. Download the `mcpjungle` CLI on your local machine either using brew or directly from the [Releases Page](https://github.com/mcpjungle/MCPJungle/releases). ```bash theme={null} brew install mcpjungle/mcpjungle/mcpjungle ``` 2. Add the context7 MCP server to mcpjungle using the CLI: ```bash theme={null} mcpjungle register --name context7 --url https://mcp.context7.com/mcp ``` You should see output similar to this: ![register context7 in mcpjungle](https://mintcdn.com/mcpjungle/2CzWgr0nAUC26YyB/images/register-context7.png?fit=max\&auto=format\&n=2CzWgr0nAUC26YyB\&q=85\&s=7b8b1641e2c5001453d65ddd04c94bd2) > [!NOTE] > > MCPJungle also includes a Dashboard UI at `http://localhost:8080/`. > The dashboard is currently in Beta. ## Connect to mcpjungle In your Claude Desktop, add the configuration for mcpjungle MCP server: ```json theme={null} { "mcpServers": { "mcpjungle": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8080/mcp", "--allow-http" ] } } } ``` Once you have added the configuration, try asking Claude something simple: ```text theme={null} Use context7 to get the documentation for `/lodash/lodash` ``` Claude will then attempt to call the `context7__get-library-docs` tool via Mcpjungle, which will return the documentation for the Lodash library. ![claude calls context7 tool via mcpjungle](https://mintcdn.com/mcpjungle/2CzWgr0nAUC26YyB/images/quickstart-claude-call-tool.png?fit=max\&auto=format\&n=2CzWgr0nAUC26YyB\&q=85\&s=28d12efdb1707c188e1cb1d3d30996f7) You now have a working MCP setup with a single unified endpoint. ## Next steps > **[Register more servers](/guides/register-http-servers)** > > Add HTTP and STDIO-based MCP servers to your gateway. > **[Connect other clients](/integrations/claude)** > > Configure Cursor, Copilot, or a custom agent to use Mcpjungle. > **[Tool Groups](/guides/tool-groups)** > > Expose curated subsets of tools to specific agents or clients. > **[Deploy to production](/deployment/production)** > > Run Mcpjungle in enterprise mode with access control and observability. # HTTP API overview Source: https://docs.mcpjungle.com/reference/api-overview Overview of mcpjungle server REST API and how to interact with it. The Mcpjungle server exposes two families of HTTP endpoints: a REST management API under `/api/v0` for registering servers, invoking tools, and administering the system, and a set of MCP proxy endpoints that AI agents connect to directly. All responses are JSON unless otherwise noted. ## Base URL ``` http://localhost:8080 ``` The port is `8080` by default. Every REST management endpoint is prefixed with `/api/v0`. MCP proxy endpoints sit at the root and under `/v0`. ## Authentication In **development mode**, the server doesn't enforce any authentication. In **enterprise mode** every request must carry a bearer token: ```bash theme={null} Authorization: Bearer ``` Tokens are created per-user or per-MCP-client when you call `POST /api/v0/users` or `POST /api/v0/clients`. The admin token is returned when the server is initialized with `POST /init`. > [!NOTE] > > Requests that arrive without a valid token in enterprise mode receive `401 Unauthorized`. Requests from a user-role token that target admin-only endpoints receive `403 Forbidden`. ### Access levels | Role | What it can do | | - | - | | **Admin** | Full read/write access to all endpoints. Required for registering servers, managing clients, users, and tool groups. | | **User** | Read access and tool invocation. Can list servers, tools, prompts, and resources, and can call `POST /api/v0/tools/invoke`. | MCP clients (non-human agents) authenticate with their own tokens and are further restricted to the servers listed in their allow list. ## Example request ```bash theme={null} curl http://localhost:8080/api/v0/servers \ -H "Authorization: Bearer YOUR_TOKEN" ``` ## Endpoint groups The REST API surface is organized into a few practical areas: * `Servers`: register, deregister, enable, and disable upstream MCP servers * `Tools, prompts, and resources`: list, inspect, invoke, and fetch content exposed through registered servers * `Tool groups`: create and manage curated subsets of tools for narrower MCP surfaces * `Clients and users`: enterprise-only identity and access management Use the CLI and governance guides for the current workflows while the API reference remains consolidated on this overview page. ## System endpoints These endpoints sit outside the `/api/v0` prefix and require no authentication. ### `GET /health` Returns `200 OK` when the server is running. ```json theme={null} { "status": "ok" } ``` ### `GET /metadata` Returns the running server version. ```json theme={null} { "version": "0.4.2" } ``` ## MCP proxy endpoints These endpoints implement the [Model Context Protocol](https://modelcontextprotocol.io) and are the connection targets for AI agents and MCP clients. | Endpoint | Transport | Description | | - | - | - | | `ANY /mcp` | Streamable HTTP | Global MCP proxy. Exposes all enabled tools across all registered servers. | | `ANY /sse` | SSE | Legacy SSE transport for the global proxy. Use `/mcp` for new integrations. | | `ANY /message` | SSE | SSE message handler (companion to `/sse`). | | `GET /v0/groups/:name/mcp` | Streamable HTTP | Tool-group-scoped MCP proxy. Only exposes tools in the named group. | | `ANY /v0/groups/:name/sse` | SSE | SSE transport for a specific tool group. | | `ANY /v0/groups/:name/message` | SSE | SSE message handler for a specific tool group. | > [!TIP] > > Point your MCP client at `/mcp` for full access or at `/v0/groups/:name/mcp` to restrict it to a named tool group. The streamable HTTP transport is preferred over SSE for new integrations. ## Metrics endpoint ``` GET /metrics ``` Exposed only when Mcpjungle is started with OpenTelemetry enabled. Returns Prometheus-format metrics. This endpoint is not secured by the standard bearer-token middleware — secure it at the network level if needed. ## Error shape All error responses share a common JSON envelope: ```json theme={null} { "error": "human-readable error message" } ``` | Status | Meaning | | - | - | | `400` | Invalid input — check the request body or query parameters. | | `401` | Missing or invalid bearer token. | | `403` | Token is valid but the role is insufficient. | | `404` | The requested resource does not exist. | | `409` | Conflict — e.g., a server with that name is already registered. | | `500` | Internal server error. | # Enterprise operations Source: https://docs.mcpjungle.com/reference/cli-enterprise Reference for enterprise-mode CLI commands: initialization, login, MCP clients, users, and token rotation. Enterprise mode adds authentication and access control to mcpjungle. These commands are used to bootstrap an enterprise deployment and manage who or what can connect to it. Use the governance guides for the full operational model: * [Access control](/governance/access-control) * [Manage clients and users](/governance/clients-and-users) * [Config file reference](/reference/config-file) > [!NOTE] > > Commands on this page require the server to be running in enterprise mode with `mcpjungle start --enterprise`. > [!NOTE] > > Treat `mcpjungle --help` as the authoritative source for current flags. This page keeps the important setup flow, examples, and config patterns. ## `init-server` Initializes a fresh enterprise server. ```bash theme={null} mcpjungle --registry http://your-server:8080 init-server ``` Run this once against a new enterprise deployment. It creates the first admin user, generates the admin access token, and stores the server URL and token in `~/.mcpjungle.conf`. > [!WARNING] > > This is a one-time bootstrap step. Store the generated admin credentials securely. ## `login` Stores an existing access token in `~/.mcpjungle.conf` so the CLI can authenticate future requests. ```bash theme={null} mcpjungle login ``` Example: ```bash theme={null} mcpjungle login eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... ``` This is what regular users run after an administrator creates their account and shares a token with them. ## `create mcp-client` Creates an authenticated MCP client identity. ```bash theme={null} mcpjungle create mcp-client [flags] mcpjungle create mcp-client --conf ``` Common flags: **--allow** `string` Comma-separated allow list of MCP server names. Example: `--allow "github,jira"`. **--access-token** `string` Custom token for the client. If omitted, the server generates one and prints it once. **-c / --conf** `string` Path to a JSON config file. When provided, the CLI ignores the other flags. Examples: ```bash theme={null} # Let mcpjungle generate the token mcpjungle create mcp-client claude-desktop --allow "github,jira" # Supply your own token mcpjungle create mcp-client my-agent \ --allow "github" \ --access-token my-custom-token ``` Config file example: ```json theme={null} { "name": "claude-desktop", "description": "Claude Desktop on Alice's machine", "allowed_servers": ["github", "jira"], "access_token_ref": { "env": "CLAUDE_CLIENT_TOKEN" } } ``` You can also load the token from a file: ```json theme={null} { "name": "claude-desktop", "allowed_servers": ["github", "jira"], "access_token_ref": { "file": "/run/secrets/claude-token" } } ``` > [!NOTE] > > When creating a client from `--conf`, you must provide a custom token via `access_token` or `access_token_ref`. > [!TIP] > > `--allow "*"` gives the client access to all registered MCP servers, including future ones. This is convenient for testing and strongly discouraged in production. For token supply options and placeholder handling, see [Config file reference](/reference/config-file). ## `delete mcp-client` Deletes an MCP client and immediately revokes its access to the mcp gateway. ```bash theme={null} mcpjungle delete mcp-client ``` Example: ```bash theme={null} mcpjungle delete mcp-client claude-desktop ``` ## `create user` Creates a standard user account for a human operator. ```bash theme={null} mcpjungle create user [flags] mcpjungle create user --conf ``` Examples: ```bash theme={null} # Let mcpjungle generate the token mcpjungle create user alice # Supply your own token mcpjungle create user alice --access-token alice-custom-token ``` Config file example: ```json theme={null} { "name": "alice", "access_token_ref": { "env": "ALICE_ACCESS_TOKEN" } } ``` When user creation succeeds, the CLI prints the `mcpjungle login ` command that the user should run locally. > [!NOTE] > > When creating a user from `--conf`, you must provide a custom token via `access_token` or `access_token_ref`. For token supply options and placeholder handling, see [Config file reference](/reference/config-file). ## `delete user` Deletes a user and revokes their access to mcpjungle immediately. ```bash theme={null} mcpjungle delete user ``` Example: ```bash theme={null} mcpjungle delete user alice ``` ## Typical setup flow **1. Start the server in enterprise mode** ```bash theme={null} mcpjungle start --enterprise ``` **2. Initialize the server once** ```bash theme={null} mcpjungle --registry http://your-server:8080 init-server ``` **3. Register upstream MCP servers** ```bash theme={null} mcpjungle register --name github --url https://api.githubcopilot.com/mcp \ --bearer-token ghp_your_token ``` **4. Create MCP clients for agents and apps** ```bash theme={null} mcpjungle create mcp-client claude-desktop --allow "github" ``` **5. Create user accounts for operators** ```bash theme={null} mcpjungle create user alice ``` # Managing tool groups Source: https://docs.mcpjungle.com/reference/cli-groups Reference for creating, inspecting, updating, and deleting tool groups from the mcpjungle CLI. Tool groups let you expose a curated subset of tools through their own MCP endpoint. They are useful when different agents or teams should only see a narrow tool surface instead of the full gateway. For the conceptual model and endpoint behavior, see [Tool groups](/guides/tool-groups). > [!NOTE] > > Treat `mcpjungle create group --help`, `get group --help`, and `update group --help` as the authoritative source for current flags. This page focuses on the important workflows and config shape. ## `create group` Creates a new tool group from a JSON configuration file. ```bash theme={null} mcpjungle create group --conf ``` Minimal example: ```json theme={null} { "name": "engineering-tools", "description": "Tools for the engineering agent", "included_tools": [ "github__create_issue", "github__list_repos" ], "included_servers": [ "jira" ], "excluded_tools": [ "jira__delete_project" ] } ``` Fields: * `name`: unique group name * `description`: optional description * `included_tools`: explicit tool names to include * `included_servers`: include all tools from these servers * `excluded_tools`: remove individual tools from the final set Example: ```bash theme={null} mcpjungle create group --conf ./engineering-tools.json ``` After creation, mcpjungle serves the group on: * `/v0/groups/{group-name}/mcp` * `/v0/groups/{group-name}/sse` * `/v0/groups/{group-name}/message` > [!WARNING] > > SSE support exists for compatibility, but it is a deprecated transport with limited support in mcpjungle. Prefer the streamable HTTP endpoint. Use `get group` for the full configuration and endpoint URLs. ## `get group` Shows the stored definition of a tool group and the endpoint URLs it exposes. ```bash theme={null} mcpjungle get group ``` Example: ```bash theme={null} mcpjungle get group engineering-tools ``` > [!NOTE] > > `get group` shows the configured definition. If a tool in that definition is later disabled globally or removed entirely, it will still appear here even though it is no longer usable through the group endpoint. ## `update group` Replaces the configuration of an existing group with a new JSON file. ```bash theme={null} mcpjungle update group --conf ``` Example: ```bash theme={null} mcpjungle update group --conf ./engineering-tools.updated.json ``` The CLI reports what changed, including added or removed tools, servers, and exclusions. > [!WARNING] > > Updating a group takes effect immediately. Any tools removed from the configuration stop being available through that group's endpoint right away. ## `delete group` Deletes a tool group and removes its endpoint. ```bash theme={null} mcpjungle delete group ``` Example: ```bash theme={null} mcpjungle delete group engineering-tools ``` Deleting a group does not delete the underlying tools or servers. It only removes the group definition and its dedicated endpoints. > [!WARNING] > > As soon as you delete a group, its MCP endpoint is no longer available. > Any mcp clients still relying on this endpoint will no longer be able to access it. ## Related commands Two related commands are often useful when working with groups: ```bash theme={null} # List only the tools currently active in a group mcpjungle list tools --group engineering-tools # Invoke a tool while validating that it belongs to the group mcpjungle invoke github__create_issue \ --input '{"owner":"myorg","repo":"myrepo","title":"Test"}' \ --group engineering-tools ``` Use [Tool groups](/guides/tool-groups) for the higher-level workflow and operational guidance. # CLI command reference Source: https://docs.mcpjungle.com/reference/cli-overview Information about how to use the mcpjungle CLI The `mcpjungle` binary serves two roles: it runs the gateway server and acts as a client for managing everything 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. | Flag | Type | Default | Description | | - | - | - | - | | `--registry` | string | `http://127.0.0.1:8080` | Base URL of the Mcpjungle registry server. | | `--help` | — | — | Print help for the current command and exit. | The `--registry` flag precedence order is: explicit flag value → `registry_url` in the config file → built-in default. ## Config file On startup, the CLI attempts to read `.mcpjungle.conf` in your home directory. The file is YAML and contains the following fields: ```yaml ~/.mcpjungle.conf theme={null} registry_url: http://your-server:8080 access_token: your-access-token ``` | Field | Description | | - | - | | `registry_url` | URL of the Mcpjungle server. Overrides the `--registry` default. | | `access_token` | Auth token that represents the user, sent with every CLI request. Required in enterprise mode only. | In enterprise mode, this file gets created automatically when you initialise mcpjungle or login using your CLI. # Starting the server Source: https://docs.mcpjungle.com/reference/cli-server Starting and initializing the mcpjungle server These commands operate on the Mcpjungle server process itself rather than on its registry contents. `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. ```bash theme={null} mcpjungle start [flags] ``` The server listens on all interfaces on port `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 **--port** `string` TCP port to bind the HTTP server to. Overrides the `PORT` environment variable. Defaults to `8080`. **--host** `string` Host or network interface to bind the HTTP server to. Overrides the `MCPJUNGLE_BIND_HOST` environment variable. Defaults to all interfaces. Use `127.0.0.1` for local-only access. **--sqlite-db-path** `string` Optional path to a custom SQLite database file to use when PostgreSQL is not configured. If not provided, MCPJungle defaults to `./mcpjungle.db`. Overrides the `SQLITE_DB_PATH` environment variable. **--enterprise** `boolean` (default: false) 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. ### Environment variables The `start` command reads environment variables for server mode, database configuration, timeouts, and telemetry. A `.env` file in the working directory is loaded automatically if present. For the complete list, defaults, and `_FILE` variants, see [Environment variables](/reference/environment-variables). ### Examples Start in development mode (default): ```bash theme={null} mcpjungle start ``` Start on a custom port: ```bash theme={null} mcpjungle start --port 9000 ``` Start with local-only network access: ```bash theme={null} mcpjungle start --host 127.0.0.1 ``` Start with a custom SQLite file: ```bash theme={null} mcpjungle start --sqlite-db-path /path/to/mcpjungle.db ``` Start in enterprise mode: ```bash theme={null} mcpjungle start --enterprise ``` Start with a Postgres database: ```bash theme={null} DATABASE_URL="postgres://user:password@localhost:5432/mcpjungle" mcpjungle start ``` *** ## `init-server` Initializes the Mcpjungle server when running in enterprise mode. Run it once, from your local machine, after the server has started. ```bash theme={null} mcpjungle init-server [--registry ] ``` `init-server` creates the first admin user and stores the registry URL and token in `~/.mcpjungle.conf`, authenticating your CLI as admin. For the full enterprise bootstrap flow, see [Enterprise operations](/reference/cli-enterprise) and [Access and governance overview](/governance/overview). ### Example ```bash theme={null} mcpjungle --registry http://your-server:8080 init-server ``` *** ## `version` Prints version information for both the CLI binary and the connected server. ```bash theme={null} mcpjungle version ``` ### Output ```text theme={null} CLI Version: v1.2.3 Server Version: v1.2.3 Server URL: http://127.0.0.1:8080 ``` If the server is unreachable (for example, when running the CLI without a local server), the server version line is replaced with a message indicating the version could not be retrieved. # Managing MCPs Source: https://docs.mcpjungle.com/reference/cli-tools Reference for registering servers, listing tools, prompts and resources, invoking tools, and controlling what the gateway exposes. This page covers the day-to-day CLI commands used after the server is running: registering upstream MCP servers, inspecting what they expose, invoking tools, reading prompts and resources, and controlling visibility. Use the dedicated guides for deeper workflows: * [Register a streamable HTTP MCP server](/guides/register-http-servers) * [Register a stdio MCP server](/guides/register-stdio-servers) * [Manage tools and prompts](/guides/tools-and-prompts) * [Manage resources](/guides/manage-resources) > [!NOTE] > > Treat `mcpjungle --help` as the authoritative source for the currently supported flags. This page keeps the higher-value workflows and examples. ## `register` Registers an upstream MCP server in mcpjungle. Once registration succeeds, the server's tools, prompts, and resources become available through the gateway. ```bash theme={null} mcpjungle register [flags] ``` For streamable HTTP servers, you can use flags directly: ```bash theme={null} mcpjungle register --name context7 --url https://mcp.context7.com/mcp ``` You can also pass a static bearer token for upstream authentication: ```bash theme={null} mcpjungle register --name github --url https://api.githubcopilot.com/mcp \ --bearer-token ghp_your_token_here ``` For `stdio` and `sse` servers, use a JSON config file: ```bash theme={null} mcpjungle register --conf ./filesystem.json ``` ### Common flags **--name** `string` Unique server name. Required when not using `--conf`. **--url** `string` URL of a streamable HTTP MCP server. Required when registering an HTTP server without `--conf`. **--description** `string` Optional human-readable description. **--bearer-token** `string` Static bearer token forwarded to the upstream HTTP server. **--force** `boolean` (default: false) Deregister an existing server with the same name, then register the new one. **-c / --conf** `string` Path to a JSON config file. Required for `stdio` and `sse` servers. ### Minimal config examples Streamable HTTP: ```json theme={null} { "name": "calculator", "transport": "streamable_http", "description": "Basic math tools", "url": "http://127.0.0.1:8000/mcp", "session_mode": "stateless" } ``` STDIO: ```json theme={null} { "name": "filesystem", "transport": "stdio", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."], "session_mode": "stateful" } ``` For the full config fields, `session_mode`, environment-variable placeholders, and transport-specific notes, use: * [Register a streamable HTTP MCP server](/guides/register-http-servers) * [Register a stdio MCP server](/guides/register-stdio-servers) * [Config file reference](/reference/config-file) > [!NOTE] > > Server names must be unique across mcpjungle and must not contain whitespace, special characters, or consecutive underscores (`__`). ## `deregister` Removes a registered MCP server and all of its tools, prompts, and resources from the gateway. ```bash theme={null} mcpjungle deregister ``` Example: ```bash theme={null} mcpjungle deregister context7 ``` > [!WARNING] > > Deregistering a server removes its tools, prompts, and resources immediately. Any connected MCP client relying on them will start failing. ## `list` Lists the entities currently registered in mcpjungle. ```bash theme={null} mcpjungle list [flags] ``` ### `list servers` Lists registered MCP servers and their transport details. ```bash theme={null} mcpjungle list servers ``` ### `list tools` Lists tools across the gateway, or filters them by server or tool group. ```bash theme={null} mcpjungle list tools [--server ] mcpjungle list tools [--group ] ``` **--server** `string` Filter tools to a specific registered server. **--group** `string` Filter tools to those currently active in a tool group. > [!NOTE] > > `--server` and `--group` cannot be combined. `list tools --group` only shows tools that are currently active. Use `get group` to inspect the full configured group definition. ### `list prompts` Lists prompts across all servers or from one server. ```bash theme={null} mcpjungle list prompts mcpjungle list prompts --server github ``` ### `list resources` Lists resources across all servers or from one server. ```bash theme={null} mcpjungle list resources mcpjungle list resources --server mintlify-mcpjungle ``` ### `list groups` Lists tool groups. ```bash theme={null} mcpjungle list groups ``` ### Common examples ```bash theme={null} # List all tools mcpjungle list tools # List tools from one server mcpjungle list tools --server github # List tools currently active in a group mcpjungle list tools --group engineering-tools # List prompts from one server mcpjungle list prompts --server github # List resources from one server mcpjungle list resources --server mintlify-mcpjungle ``` ## `usage` Shows the input schema for a tool before you invoke it. ```bash theme={null} mcpjungle usage ``` Example: ```bash theme={null} mcpjungle usage github__create_issue ``` The output includes the tool description, argument types, required fields, and any JSON-schema constraints exposed by the upstream MCP server. ## `invoke` Calls a tool directly through mcpjungle. ```bash theme={null} mcpjungle invoke [flags] ``` ### Flags **--input** `string` (default: \{}) JSON object of input arguments passed to the tool. **--group** `string` Invoke the tool within a tool group's context. The tool must be available in that group. ### Examples ```bash theme={null} # Invoke a tool with no input mcpjungle invoke github__list_repos # Invoke a tool with JSON input mcpjungle invoke github__create_issue \ --input '{"owner": "myorg", "repo": "myrepo", "title": "Bug report"}' # Invoke within a tool group mcpjungle invoke github__create_issue \ --input '{"owner": "myorg", "repo": "myrepo", "title": "Bug"}' \ --group engineering-tools ``` Text responses are printed to stdout. If the response contains images, audio, or binary resources, the CLI may save files in the current working directory. ## `enable` Enables tools, prompts, or an entire server globally. ```bash theme={null} mcpjungle enable ``` Supported forms: * `mcpjungle enable tool ` * `mcpjungle enable prompt ` * `mcpjungle enable server ` Examples: ```bash theme={null} mcpjungle enable tool github__create_issue mcpjungle enable tool github mcpjungle enable prompt github mcpjungle enable server github ``` > [!NOTE] > > The legacy form `mcpjungle enable ` still works for backward compatibility, but `enable tool ` or `enable server ` is preferred. ## `disable` Disables tools, prompts, or an entire server globally. ```bash theme={null} mcpjungle disable ``` Supported forms: * `mcpjungle disable tool ` * `mcpjungle disable prompt ` * `mcpjungle disable server ` Examples: ```bash theme={null} mcpjungle disable tool github__delete_repo mcpjungle disable tool github mcpjungle disable prompt github mcpjungle disable server github ``` > [!NOTE] > > The legacy form `mcpjungle disable ` still works for backward compatibility, but only maps to tool disabling behavior. ## `get prompt` Retrieves a prompt template and optionally renders it with arguments. ```bash theme={null} mcpjungle get prompt [--arg key=value ...] ``` Example: ```bash theme={null} mcpjungle get prompt github__code-review \ --arg code="def hello(): print('world')" \ --arg language="python" ``` The output shows the generated structured messages returned by the upstream MCP server. ## `get resource` Retrieves resource metadata, or reads the resource contents. ```bash theme={null} mcpjungle get resource mcpjungle get resource --read ``` Examples: ```bash theme={null} # View metadata mcpjungle get resource mcpj://res/mintlify-mcpjungle/bWludGxpZnk6Ly9za2lsbHMvbWNwanVuZ2xl # Read the contents mcpjungle get resource --read mcpj://res/mintlify-mcpjungle/bWludGxpZnk6Ly9za2lsbHMvbWNwanVuZ2xl ``` With `--read`, text content is printed inline. Blob content may be decoded and written to a file in the current working directory. # CLI configuration file Source: https://docs.mcpjungle.com/reference/config-file Reference for ~/.mcpjungle.conf The Mcpjungle CLI reads a YAML configuration file at `~/.mcpjungle.conf` on startup. It stores two values: the URL of the Mcpjungle server and an access token for authenticated requests. Most users never edit this file by hand — `mcpjungle init-server` and `mcpjungle login` write to it automatically. ## Client config file (`~/.mcpjungle.conf`) ### Location and format The file lives in your home directory and uses YAML syntax: ```yaml theme={null} registry_url: http://my-server:9000 access_token: 1YHf2LwE1LXtp5lW_vM-gmdYHlPHdqwnILitBhXE4Aw ``` Both fields are optional. If either is absent the CLI falls back to its default value or prompts you to supply it via a CLI flag. ### Supported fields **registry\_url** `string` (default: [http://127.0.0.1:8080](http://127.0.0.1:8080)) Base URL of the Mcpjungle server the CLI connects to. Set this to avoid passing `--registry` on every command. ```yaml theme={null} registry_url: http://my-server:9000 ``` **access\_token** `string` Bearer token sent in the `Authorization: Bearer` header with every API request. Required when the server runs in enterprise mode. Populated automatically by `mcpjungle init-server` (admin token) or `mcpjungle login` (user token). ```yaml theme={null} access_token: 1YHf2LwE1LXtp5lW_vM-gmdYHlPHdqwnILitBhXE4Aw ``` ### Value precedence When the CLI resolves the registry URL it uses the following order, highest priority first: 1. `--registry` flag passed explicitly on the command line 2. `registry_url` set in `~/.mcpjungle.conf` 3. Built-in default (`http://127.0.0.1:8080`) > [!TIP] > > If you pass `--registry` manually but `registry_url` is not yet in your config file, the CLI prints a tip suggesting you add it to avoid repeating the flag. ### Populating the file automatically `~/.mcpjungle.conf` is usually created or updated in one of two ways: * `mcpjungle init-server` writes the initial admin credentials during enterprise bootstrap * `mcpjungle login ` stores a user token for later authenticated CLI use You can also edit the file manually if needed. For the enterprise bootstrap flow and login workflow, see [Enterprise operations](/reference/cli-enterprise). *** ## JSON config file formats Several `mcpjungle` commands accept a `-c` / `--conf` flag pointing to a JSON file instead of inline CLI flags. This section documents every supported JSON format. ### `${VAR_NAME}` placeholder substitution All JSON config files support environment variable placeholders in string fields. Before sending the request to the server, the CLI expands every `${VAR_NAME}` occurrence using the current shell environment. Rules: * Only `${VAR_NAME}` syntax is recognized — not `$VAR_NAME`. * Placeholders can appear anywhere inside a string, including as a substring: `"prefix-${VAR}-suffix"`. * Substitution runs in the CLI process, so the variable must be set in the environment where you run the command. * Placeholders resolve in all string fields, including nested objects and string arrays. * If a referenced variable is not set, the command fails with a descriptive error. ```json theme={null} { "name": "${MCP_SERVER_NAME}", "transport": "streamable_http", "url": "https://api.example.com/workspaces/${WORKSPACE_ID}/mcp", "bearer_token": "${API_TOKEN}" } ``` ### Register a Streamable HTTP server Used with `mcpjungle register -c `. ```json theme={null} { "name": "calculator", "transport": "streamable_http", "description": "Provides basic math tools", "url": "http://127.0.0.1:8000/mcp", "bearer_token": "", "oauth_redirect_uri": "http://127.0.0.1:8085/oauth/callback", "oauth_client_id": "", "oauth_client_secret": "", "oauth_scopes": ["mcp.read"], "headers": { "": "" } } ``` | Field | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Unique name for this server in Mcpjungle. | | `transport` | string | Yes | Must be `"streamable_http"`. | | `description` | string | No | Human-readable description. | | `url` | string | Yes | Full URL of the MCP server endpoint. | | `bearer_token` | string | No | If set, Mcpjungle adds `Authorization: Bearer ` to every upstream request. | | `oauth_redirect_uri` | string | No | Redirect URI used if the upstream MCP server requires OAuth during registration. | | `oauth_client_id` | string | No | Optional pre-registered OAuth client ID. | | `oauth_client_secret` | string | No | Optional OAuth client secret paired with `oauth_client_id`. | | `oauth_scopes` | string array | No | Optional list of scopes to request during upstream OAuth authorization. | | `headers` | object | No | Additional HTTP headers to forward. A `"Authorization"` entry here overrides `bearer_token`. | > [!NOTE] > > Upstream OAuth support is currently beta. > > For interactive CLI use, you usually do not need to set `oauth_redirect_uri` manually. Mcpjungle can provision a localhost callback automatically when the upstream MCP server actually requires OAuth. ### Register a STDIO server Used with `mcpjungle register -c `. ```json theme={null} { "name": "filesystem", "transport": "stdio", "description": "Filesystem MCP server", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."], "env": { "KEY": "value" }, "session_mode": "stateless" } ``` | Field | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Unique name for this server in Mcpjungle. | | `transport` | string | Yes | Must be `"stdio"`. | | `description` | string | No | Human-readable description. | | `command` | string | Yes | Executable to run the MCP server process (e.g., `"npx"`, `"uvx"`). | | `args` | string array | No | Arguments passed to `command`. | | `env` | object | No | Environment variables injected into the server process. | | `session_mode` | string | No | Connection lifecycle: `"stateless"` (default) creates a new process per call; `"stateful"` keeps the process alive between calls. | ### Create a tool group Used with `mcpjungle create group -c `. ```json theme={null} { "name": "claude-tools", "description": "Tools exposed to Claude Desktop", "included_tools": [ "filesystem__read_file", "time__get_current_time" ], "included_servers": ["deepwiki"], "excluded_tools": ["deepwiki__search"] } ``` | Field | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Unique name for the tool group. | | `description` | string | No | Human-readable description. | | `included_tools` | string array | No | Explicit list of tools to include, in `__` format. | | `included_servers` | string array | No | Server names whose entire tool set is included. | | `excluded_tools` | string array | No | Tools to remove from the final set. Exclusions are always applied last, regardless of how a tool was included. | > [!NOTE] > > At least one of `included_tools` or `included_servers` should be set, otherwise the group will be empty. ### Create an MCP client Used with `mcpjungle create mcp-client --conf ` (enterprise mode). ```json theme={null} { "name": "cursor-local", "allowed_servers": ["calculator", "github"], "access_token": "my_secret_token_123", "access_token_ref": { "file": "/run/secrets/mcpjungle_token", "env": "MCPJUNGLE_CLIENT_TOKEN" } } ``` | Field | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Unique name for this MCP client. | | `allowed_servers` | string array | No | Server names the client may access. Use `"*"` to allow all servers. Omit to deny all. | | `access_token` | string | No | Inline token value. For testing only. | | `access_token_ref.file` | string | No | Path to a plain-text file containing only the token string. | | `access_token_ref.env` | string | No | Name of an environment variable containing the token string. | > [!WARNING] > > When creating a client from a config file, you must supply a token via `access_token` or `access_token_ref`. Mcpjungle cannot print a generated token back to the console when reading from a file. ### Token supply strategies For MCP client and user config files, there are three ways to supply a custom token: 1. `access_token` 2. `access_token_ref.file` 3. `access_token_ref.env` Use `access_token` only for testing or throwaway setups. For anything more serious, prefer file- or environment-based secrets. ### Create a user account Used with `mcpjungle create user --conf ` (enterprise mode). ```json theme={null} { "name": "charlie", "access_token": "charlies_secret_token", "access_token_ref": { "file": "/path/to/token-file.txt", "env": "CHARLIE_TOKEN" } } ``` | Field | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Unique username. | | `access_token` | string | No | Inline token value. For testing only. | | `access_token_ref.file` | string | No | Path to a plain-text file containing only the token string. | | `access_token_ref.env` | string | No | Name of an environment variable containing the token string. | The same `${VAR_NAME}` placeholder substitution applies to user config files. When using a config file you must supply a token — Mcpjungle cannot print a generated one to the console. # Environment variables Source: https://docs.mcpjungle.com/reference/environment-variables Complete reference for every environment variable the mcpjungle server and client read at startup. ## Database MCPJungle supports SQLite (default) and PostgreSQL. Use either `DATABASE_URL` for a full DSN or the individual `POSTGRES_*` variables to build the DSN from parts. **DATABASE\_URL** `string` Full PostgreSQL connection string. When set, MCPJungle connects to PostgreSQL and ignores any `POSTGRES_*` variables. ```bash theme={null} export DATABASE_URL=postgres://admin:root@localhost:5432/mcpjungle_db ``` When this variable is not set and `POSTGRES_HOST` is also not set, MCPJungle falls back to an embedded SQLite database file (`mcpjungle.db`) in the current working directory. **SQLITE\_DB\_PATH** `string` Optional path to the SQLite database file to use when `DATABASE_URL` and `POSTGRES_HOST` are not set. If this variable is not set, MCPJungle defaults to `./mcpjungle.db`. The `--sqlite-db-path` CLI flag takes precedence over this variable. ```bash theme={null} export SQLITE_DB_PATH=./.mcpjungle.db mcpjungle start ``` When this variable is set, MCPJungle uses that exact path instead of auto-detecting `mcpjungle.db`. **POSTGRES\_HOST** `string` PostgreSQL host. **Required** when using the individual `POSTGRES_*` variables instead of `DATABASE_URL`. If this variable is not set, MCPJungle does not attempt to build a PostgreSQL DSN from the other `POSTGRES_*` variables. ```bash theme={null} export POSTGRES_HOST=localhost ``` **POSTGRES\_PORT** `string` (default: 5432) PostgreSQL port. ```bash theme={null} export POSTGRES_PORT=5432 ``` **POSTGRES\_USER** `string` (default: postgres) PostgreSQL username. If both `POSTGRES_USER` and `POSTGRES_USER_FILE` are set, `POSTGRES_USER` takes precedence. **POSTGRES\_USER\_FILE** `string` Path to a file containing the PostgreSQL username. Useful with Docker secrets. MCPJungle reads the file and trims surrounding whitespace. ```bash theme={null} export POSTGRES_USER_FILE=/run/secrets/pg_user ``` **POSTGRES\_PASSWORD** `string` PostgreSQL password. If both `POSTGRES_PASSWORD` and `POSTGRES_PASSWORD_FILE` are set, `POSTGRES_PASSWORD` takes precedence. The password can be empty. **POSTGRES\_PASSWORD\_FILE** `string` Path to a file containing the PostgreSQL password. ```bash theme={null} export POSTGRES_PASSWORD_FILE=/run/secrets/pg_password ``` **POSTGRES\_DB** `string` (default: postgres) PostgreSQL database name. If both `POSTGRES_DB` and `POSTGRES_DB_FILE` are set, `POSTGRES_DB` takes precedence. **POSTGRES\_DB\_FILE** `string` Path to a file containing the PostgreSQL database name. ```bash theme={null} export POSTGRES_DB_FILE=/run/secrets/pg_db ``` ### Database resolution order When the server starts it resolves the database connection in this order: 1. `DATABASE_URL` — used as-is if set. 2. `POSTGRES_HOST` + optional `POSTGRES_*` variables — MCPJungle constructs a DSN if `POSTGRES_HOST` is set. 3. `--sqlite-db-path` — uses the configured SQLite file path if the CLI flag is set. 4. `SQLITE_DB_PATH` — uses the configured SQLite file path if the environment variable is set. 5. SQLite fallback — creates or opens `mcpjungle.db` in the current working directory, while still recognizing an existing legacy `mcp.db`. *** ## Server **MCPJUNGLE\_BIND\_HOST** `string` Host or network interface the HTTP server binds to. The `--host` CLI flag takes precedence over this variable. If unset, MCPJungle listens on all interfaces. ```bash theme={null} export MCPJUNGLE_BIND_HOST=127.0.0.1 mcpjungle start ``` **PORT** `string` (default: 8080) TCP port the HTTP server listens on. The `--port` CLI flag takes precedence over this variable. ```bash theme={null} export PORT=9090 mcpjungle start ``` **SERVER\_MODE** `string` (default: development) Server operating mode. Accepted values are `development` and `enterprise` (case-insensitive). The `--enterprise` CLI flag takes precedence over this variable. ```bash theme={null} export SERVER_MODE=enterprise mcpjungle start ``` | Mode | Behaviour | | - | - | | `development` | No authentication enforced. All MCP clients have full access to all registered servers. Ideal for local use. | | `enterprise` | Strict access control, user management, and observability features. Requires running `mcpjungle init-server` after the first start. | > [!NOTE] > > The value `production` is accepted for backward compatibility but is deprecated. Use `enterprise` instead. **MCP\_SERVER\_INIT\_REQ\_TIMEOUT\_SEC** `integer` (default: 30) Maximum number of seconds MCPJungle waits for a newly registered MCP server to respond to its initialization request before aborting. Must be a positive integer. Increase this value if you register STDIO servers that take a long time to start up. ```bash theme={null} export MCP_SERVER_INIT_REQ_TIMEOUT_SEC=60 ``` *** ## Observability **OTEL\_ENABLED** `boolean` (default: false (development) / true (enterprise)) Enables Prometheus-compatible OpenTelemetry metrics. When enabled, metrics are exposed at the `/metrics` HTTP endpoint. Accepted values are `true`, `1`, `false`, and `0` (case-insensitive). In `enterprise` mode this defaults to `true`. In `development` mode it defaults to `false`. Setting this variable explicitly overrides the mode-based default. ```bash theme={null} export OTEL_ENABLED=true mcpjungle start ``` **OTEL\_RESOURCE\_ATTRIBUTES** `string` Additional key-value attributes attached to all emitted OTel metrics. Use the standard `key=value,key2=value2` format defined by the [OpenTelemetry specification](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#general-sdk-configuration). ```bash theme={null} export OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=enterprise ``` These attributes are appended to the resource description alongside the automatically detected service name, host, and process attributes. *** ## Connections **SESSION\_IDLE\_TIMEOUT\_SEC** `integer` (default: -1) Idle timeout in seconds for stateful MCP sessions. A stateful session is kept open between tool calls to avoid cold-start overhead (see [Session modes](/guides/session-modes)). | Value | Behaviour | | - | - | | `-1` (default) | No timeout. Sessions live until the server stops or the server is deregistered. | | `0` | No timeout (equivalent to `-1`). Sessions run until server shutdown. | | `> 0` | Sessions are closed after this many seconds of inactivity. | ```bash theme={null} export SESSION_IDLE_TIMEOUT_SEC=300 ``` > [!NOTE] > > This setting has no effect on stateless connections, which are the default and are closed immediately after each tool call. *** ## Docker **MCPJUNGLE\_IMAGE\_TAG** `string` Docker image tag used when pulling `ghcr.io/mcpjungle/mcpjungle` in the provided Docker Compose files. Set this when you want to lock your mcpjungle deployment to a specific version when using one of the provided docker compose files. ```bash theme={null} MCPJUNGLE_IMAGE_TAG=0.4.0-stdio docker compose up -d ``` | Tag | Description | | - | - | | `latest` | Minimal image — MCPJungle binary only. Recommended for production. Default in `docker-compose.prod.yaml`. | | `latest-stdio` | Includes `node`, `npx`, and `uvx`. Required if you register STDIO servers that rely on those runtimes. Default in `docker-compose.yaml` | *** ## Quick reference | Variable | Category | Default | Description | | - | - | - | - | | `DATABASE_URL` | Database | — | Full PostgreSQL DSN. | | `SQLITE_DB_PATH` | Database | — | SQLite database path used when PostgreSQL is not configured. | | `POSTGRES_HOST` | Database | — | PostgreSQL host. Required to enable `POSTGRES_*` variables. | | `POSTGRES_PORT` | Database | `5432` | PostgreSQL port. | | `POSTGRES_USER` | Database | `postgres` | PostgreSQL username. | | `POSTGRES_USER_FILE` | Database | — | File path for PostgreSQL username. | | `POSTGRES_PASSWORD` | Database | *(empty)* | PostgreSQL password. | | `POSTGRES_PASSWORD_FILE` | Database | — | File path for PostgreSQL password. | | `POSTGRES_DB` | Database | `postgres` | PostgreSQL database name. | | `POSTGRES_DB_FILE` | Database | — | File path for PostgreSQL database name. | | `MCPJUNGLE_BIND_HOST` | Server | all interfaces | HTTP listen host or network interface. | | `PORT` | Server | `8080` | HTTP listen port. | | `SERVER_MODE` | Server | `development` | Server mode: `development` or `enterprise`. | | `MCP_SERVER_INIT_REQ_TIMEOUT_SEC` | Server | `30` | Seconds to wait for MCP server initialization. | | `OTEL_ENABLED` | Observability | mode-dependent | Enable OpenTelemetry metrics. | | `OTEL_RESOURCE_ATTRIBUTES` | Observability | — | Additional OTel resource attributes. | | `SESSION_IDLE_TIMEOUT_SEC` | Connections | `-1` | Idle timeout for stateful sessions. | | `MCPJUNGLE_IMAGE_TAG` | Docker | `latest` | Docker image tag for Compose deployments. | # Roadmap Source: https://docs.mcpjungle.com/roadmap See what's being shipped in the coming months This roadmap explains where mcpjungle is heading over the next few months. In short, our focus is to: 1. Keep mcpjungle extremely simple & useful for developers 2. Remove the biggest blockers to real MCP usage 3. Add collaborative capabilities for teams # Here's what's coming next ## 1. OAuth Support This is the highest-priority area. MCP servers requiring OAuth authentication are now supported. This is a beta feature right now. We are still working on: * downstream client OAuth, SSO, and OIDC * smoother handling of stored credentials and token refresh flows ## 2. Better configuration-driven workflows, Infrastructure as Code, and GitOps support We want mcpjungle to be easier to operate repeatedly, not just easy to try once. We are working on: * declarative configuration for managed entities * config-driven reconciliation at startup * live reload for supported config changes * a more GitOps-friendly workflow for operators managing shared setups ## 3. Dashboard UI expansion The Dashboard UI is now available in Beta for local/dev visibility and common management tasks. We are continuing to expand it as a practical companion to the mcpjungle CLI. ## 4. Better access control in enterprise mode Once core usability is stronger, we plan to add more targeted control features for team scenarios. Near-term areas include: * per-client credentials * more fine-grained ACLs # How we make roadmap decisions We use a simple prioritization model: 1. Unblock real usage 2. Reduce setup and operational friction 3. Improve visibility 4. Add focused control where teams actually need it ## Have feedback? If you are using mcpjungle and want to influence the roadmap, come [Talk to us](/talk-to-us). The roadmap will continue to evolve based on real usage and direct user feedback. # Supported features Source: https://docs.mcpjungle.com/support-matrix Capability overview for Mcpjungle, including what is stable today, what is still beta, and where support is currently limited. This page summarizes the current support level across the major Mcpjungle capability areas. Use it as a quick product-readiness view: * **Stable**: supported and appropriate for normal use * **Beta**: usable, but still maturing * **Limited**: supported only partially or with important constraints ## Transports | Area | Capability | Support level | Notes | | - | - | - | - | | Upstream MCP servers | Streamable HTTP | Stable | Primary remote transport for registering MCP servers in Mcpjungle. | | Upstream MCP servers | STDIO | Stable | Supported through config-file registration and local child-process execution. | | Upstream MCP servers | SSE | Limited | SSE is supported but no longer recommended as it is a deprecated transport. | | Client connection to Mcpjungle | Streamable HTTP endpoint | Stable | Main gateway endpoint exposed at `/mcp`. | ## MCP surface area | Area | Capability | Support level | Notes | | - | - | - | - | | MCP entities | Tools | Stable | Core Mcpjungle workflow. Tools can be listed, invoked, enabled, disabled, and grouped. | | MCP entities | Prompts | Stable | Prompts are supported and can be listed, retrieved, enabled, and disabled. | | MCP entities | Resources | Beta | Some features such as tool groups may not fully support Resources yet. | | Group endpoints | Tool Groups | Stable | Main mechanism for exposing curated subsets of tools to specific clients. | ## Authentication and access control | Area | Capability | Support level | Notes | | - | - | - | - | | Upstream HTTP servers | Static bearer-token auth | Stable | Supported via `--bearer-token` or JSON config. | | Upstream HTTP servers | Custom headers | Stable | Supported through the `headers` field in config files. | | Upstream HTTP servers | OAuth flow | Beta | Supported for registration-time OAuth on HTTP-based upstream MCP servers. Tokens are gateway-scoped and the feature is still maturing. | | Mcpjungle gateway | Enterprise-mode client authentication | Stable | MCP clients authenticate with bearer tokens in enterprise mode. | | Mcpjungle gateway | Per-client server allow-lists | Stable | Supported through MCP client creation in enterprise mode. | | Mcpjungle gateway | User accounts | Stable | Supported for human operators in enterprise mode. | ## Deployment and runtime | Area | Capability | Support level | Notes | | - | - | - | - | | Local deployment | Development mode | Stable | Intended for individuals using Mcpjungle locally. | | Shared deployment | Enterprise mode | Stable | Intended for teams and shared infrastructure. | | Distribution | Runtime platforms | Stable | Pre-built binaries are published for macOS, Linux, and Windows on AMD64 and ARM64 on the [GitHub Releases page](https://github.com/mcpjungle/MCPJungle/releases). Container images are published for AMD64 and ARM64 on [GHCR](https://ghcr.io/mcpjungle/mcpjungle). | | Database | SQLite | Stable | Good default for local testing and single-user workflows. | | Database | PostgreSQL | Stable | Recommended for serious and shared deployments. | | Session lifecycle | Stateless sessions | Stable | Default and preferred mode. | | Session lifecycle | Stateful sessions | Stable | Supported for cold-start-sensitive or sessionful upstream servers. | ## Observability and operations | Area | Capability | Support level | Notes | | - | - | - | - | | Metrics | Prometheus-compatible OpenTelemetry metrics | Stable | Enabled by default in enterprise mode and available at `/metrics`. | | Metrics | OTLP export | Not supported | Mcpjungle does not currently export metrics through OTLP. | | Audit Logs | Detailed audit logs for mcp interactions | Limited | This will be improved in future. | ## Clients | Area | Capability | Support level | Notes | | - | - | - | - | | Mcpjungle client | CLI | Stable | Primary management interface for registering servers, managing groups, and operating Mcpjungle today. | | Mcpjungle client | Dashboard UI | Beta | Local/dev web UI for inspecting and managing servers, tools, tool groups, prompts, resources, and system info. | ## Related pages > **[Core concepts](/core-concepts)** > > Understand the Mcpjungle operating model behind the matrix. > **[Limitations](/limitations)** > > Review the current gaps and constraints in more detail. > **[Governance overview](/governance/overview)** > > Understand the enterprise operating model for shared deployments. > **[Reference](/reference/cli-overview)** > > Dive into exact commands, config files, and environment variables. # Talk to us Source: https://docs.mcpjungle.com/talk-to-us How to reach the core mcpjungle team to ask questions, report issues, discuss ideas, or get involved. If you are using, evaluating, or contributing to mcpjungle, these are the best ways to reach the core team. ## GitHub Issues Use [GitHub Issues](https://github.com/mcpjungle/MCPJungle/issues) when you want to: * report a bug * request a feature * highlight a docs problem * track a concrete piece of work Issues are the best place for actionable, trackable items. ## GitHub Discussions Use [GitHub Discussions](https://github.com/mcpjungle/MCPJungle/discussions) when you want to: * ask broader product or usage questions * discuss design ideas * share feedback before opening a concrete issue * talk about MCP workflows and deployment patterns Discussions are the best place for open-ended conversation that is not yet a specific bug or task. ## Discord Join the [mcpjungle Discord](https://discord.gg/CapV4Z3krk) if you want: * faster back-and-forth with the team and community * help while trying something out * informal discussion around new ideas * a place to stay close to what the project is doing Discord is the best place for quick conversation. If something turns into a concrete bug or feature request, move it to GitHub Issues so it can be tracked properly. ## Contributing If you want to contribute code, docs, or product feedback, start with whichever of the channels above best fits your question. For concrete contribution workflow details, see: * [Contributing](/developers/contributing) * [Development guide](/developers/development)