# Janus [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/tonylchang/janus-mcp  
**GitHub Stars:** 0  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/janus

## Description
Secure Kubernetes MCP server: scoped, redacted diagnostics and human-approved writes

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "janus": {
    "command": "uvx",
    "args": ["janus-mcp-server"],
    "env": {
      "KUBECONFIG": ""
    }
  }
}
```

**Requires environment variables:** `KUBECONFIG` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Janus MCP server does

The Janus MCP server gives an AI assistant a controlled interface to Kubernetes clusters. It is intended for troubleshooting and operational inspection without sending a kubeconfig, token, certificate, API server URL, or other credentials to the model. Janus runs locally and communicates with the Kubernetes API using the credentials available to its process.

Its read-oriented coverage includes pods, workloads, services, events, logs, endpoints, quotas, resource usage compared with requests, and rollout history. It also provides a cluster summary and a namespace diagnosis prompt for clients that support MCP prompts. These interfaces return selected information through tools and resources rather than exposing an unrestricted cluster dump.

## How it works

An MCP client calls Janus tools, and Janus makes the corresponding Kubernetes API requests. Responses pass through a redaction layer before they reach the client. The default rules remove secrets, tokens, environment-variable values, and sensitive metadata; the redaction engine can also be extended with additional patterns.

The Janus MCP server supports access restrictions beyond the permissions in KUBECONFIG. Operators can limit it to particular namespaces, clusters, or resource subsets. The available write operations are disabled unless explicitly enabled. When enabled, actions such as restarting or rolling back a rollout, scaling, deleting a pod, managing CronJobs, or cordoning a node require confirmation from a human in the MCP client.

## Setup and configuration

Install the package with `uv tool install janus-mcp-server` or `pipx install janus-mcp-server`. Homebrew and a container image are also provided. Create `~/.config/janus-mcp/config.yaml` from the example configuration, then set the Kubernetes context and namespaces appropriate for the deployment.

A local stdio registration can be added to Claude Code with:

```bash
claude mcp add kubernetes -- janus-mcp serve
```

The container option mounts the kubeconfig read-only and mounts the Janus configuration directory read-only. Registration instructions for Claude Desktop, VS Code/Copilot, Codex CLI, and Cursor are available in the project quick-start guide. The server is designed to keep Kubernetes credentials local to the process running it.

## Tools and capabilities

The Janus MCP server includes capabilities for:

- Inspecting pods, deployments and other workloads, services, events, endpoints, quotas, and logs.
- Comparing live CPU and memory usage with requested resources.
- Reviewing rollout history and sanitized template differences.
- Getting a cluster summary through a tool or the `cluster://summary` MCP resource.
- Running the `diagnose_namespace` prompt workflow where MCP prompts are supported.
- Performing guarded operational changes when an operator enables them.

## Limitations and notes

Janus is currently in active development. Write tools are not registered unless the operator enables them, and enabled writes still require an explicit approval step. The `diagnose_namespace` workflow depends on client support for MCP prompts. The streamable HTTP sidecar mode is listed as a roadmap item, so the documented quick start uses local stdio or a containerized process.

The project also provides least-privilege RBAC manifests, an operator runbook, and a threat model. The supplied RBAC guidance intentionally excludes access to Kubernetes secrets.

_Full upstream README: https://allmcps.com/mcp/janus/readme_

