Janus logo

Janus

Runs local Kubernetes diagnostics through redacted MCP tools, with scoped access and human approval for write operations.

Install Janus

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "janus": {
      "command": "uvx",
      "args": [
        "janus-mcp-server"
      ],
      "env": {
        "KUBECONFIG": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx janus-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The Janus MCP server connects an MCP client to Kubernetes while keeping KUBECONFIG inside the local server process. It exposes structured tools for diagnostics, automatically removes secrets and other sensitive values, and returns sanitized results instead of raw cluster state. Read operations run directly, while enabled write actions require human confirmation and can be restricted by namespace, cluster, or resource. Reach for it when an AI assistant needs Kubernetes context without exposing credentials to the model.

Use cases

  • Investigate crashing pods without exposing cluster credentials
  • Review namespace events, logs, and resource usage
  • Inspect rollout history and recent workload changes
  • Propose approved restarts, rollbacks, or scaling actions
  • Restrict AI-assisted Kubernetes access by namespace

Key features

  • Sanitized Kubernetes diagnostics
  • Automatic secret and token redaction
  • Namespace, cluster, and resource scoping
  • Human-approved write operations
  • Cluster summary tool and MCP resource
  • Guided namespace diagnosis prompt

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 76d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · janus-mcp-server (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit15d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Janus works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Janus

Janus is an MCP server that connects AI clients to Kubernetes clusters through local credentials while keeping KUBECONFIG out of model traffic. Its main tools provide sanitized diagnostics for pods, workloads, events, logs, services, quotas, usage, and rollouts, with optional human-approved operations such as restart, scale, and delete.

Install it with `uv tool install janus-mcp-server` or `pipx install janus-mcp-server`. You can also use the published Homebrew package or container image. Create the Janus YAML configuration, set its Kubernetes context and namespaces, then register the stdio server with your MCP client.

Yes, Janus works with Cursor. The repository provides a Cursor registration recipe in its quick-start guide, alongside instructions for Claude Desktop, VS Code/Copilot, and Codex CLI.

Yes, but only when an operator enables the write tools and a human approves each applicable action in the MCP client. Supported guarded actions include rollout restart and rollback, scaling, UID-bound pod deletion, CronJob suspend/resume/trigger, and node cordon.

Janus keeps KUBECONFIG in the local process and sanitizes Kubernetes API responses before returning them to the MCP client. Its redaction removes secrets, tokens, environment-variable values, and sensitive metadata, while access can be scoped by namespace, cluster, or resource.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewJanus AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/janus?style=directory)](https://allmcps.com/mcp/janus)
HTML Embed
<a href="https://allmcps.com/mcp/janus"><img src="https://allmcps.com/api/badge/janus?style=directory" alt="Janus on AllMCPs" /></a>