Kops logo

Kops

by kaka-milan-22

Read-only Kubernetes diagnostics over MCP with structured JSON, cluster triage, inventory, logs, events, and resource inspection.

Install Kops

Run the project’s own setup commands, in order.

Setup steps from the project

kaka-milan-22/kops installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/kaka-milan-22/kops.git
    
  2. 2. Install
    cd kops
    
  3. 3. Install
    uv sync
    
  4. 4. Add to Claude Code
    claude mcp add -s user kops -- uv --directory /path/to/kops run kops
    
  5. 5. Add to Claude Code
    claude mcp add -s user -e KUBECONFIG=/path/to/qa-cluster.yaml \
      kops-qa -- uv --directory /path/to/kops run kops
    

Overview

kaka-milan-22/kops MCP server exposes read-only Kubernetes operations to Claude Code through MCP and kubectl. Six tools return structured JSON or bounded text for resource queries, descriptions, logs, events, health triage, and cluster inventory. Hardcoded verbs, input validation, subprocess isolation, timeouts, and output caps prevent mutation and reduce unsafe command construction. Reach for it when an agent needs Kubernetes diagnostics or documentation without access to apply, delete, patch, scale, or exec operations.

Use cases

  • Diagnose unhealthy pods, nodes, events, and deployments
  • Inspect Kubernetes resources without mutation access
  • Collect a cluster snapshot for documentation or audits
  • Read bounded pod logs during incident investigation
  • Compare isolated clusters through separate kubeconfig entries

Key features

  • Expose six read-only Kubernetes tools over MCP
  • Return summarized structured JSON for common resource kinds
  • Run one-shot cluster triage and inventory scans
  • Read pod logs with tail, since, and previous controls
  • Validate inputs and block shell-based injection paths
  • Cap command duration and response sizes

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.

12/12 checks healthy over the last 64d

Supply-chain signal

2 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 1Medium 0Low 0

Scanned 8/28/2026 via OSV.dev

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit5mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Kops works

What kaka-milan-22/kops does

kaka-milan-22/kops connects an MCP client to a Kubernetes cluster through the local kubectl command. It is designed for inspection rather than administration: every exposed operation is read-only, and there is no tool path for changing resources or opening an interactive container session.

The server provides six tools:

  • k8s_get retrieves resources and reduces each result to diagnostic fields suited to agent use.
  • k8s_describe returns the text produced by kubectl describe for one resource.
  • k8s_logs reads pod logs with controls for tail length, age, and previous containers.
  • k8s_events finds recent events using namespace, kind, and name filters.
  • k8s_triage performs a combined health scan for problem pods, warning events, unhealthy nodes, and stale deployments.
  • k8s_inventory builds a broader cluster or namespace snapshot for documentation and audit work.

How it works

kaka-milan-22/kops runs as a stdio MCP process and invokes kubectl with argument lists rather than shell command strings. The active kubeconfig context is used by default. A context argument can select another Kubernetes context, while a separate server registration with KUBECONFIG provides stronger configuration isolation for another cluster.

Resource results are summarized instead of returning full Kubernetes objects. Depending on kind, summaries can include readiness, replica counts, images, resource requests and limits, node addresses, service ports, ingress hosts, labels, and failure reasons. CPU values are normalized to millicores and memory to binary units. The inventory groups results by namespace and includes counts for pods, nodes, workloads, services, configuration objects, and supported optional resources.

The two aggregate tools reduce repeated requests. Triage fans out several checks concurrently, while inventory gathers more than a dozen categories concurrently and assembles them locally. Pod lists are intentionally omitted from inventory because they can become large; use triage or k8s_get for pod detail.

Setup and configuration

Install uv and ensure kubectl is available on PATH. Clone the repository, enter its directory, and run uv sync. Start the server with uv run kops, or register that command in Claude Code using the absolute repository path. Claude Code then exposes names such as mcp__kops__k8s_get and mcp__kops__k8s_triage.

For another cluster, create a separate MCP entry and set its KUBECONFIG value to the desired kubeconfig file. The repository also documents MCP Inspector and mcp dev workflows for interactive testing, plus a protocol smoke test that performs initialization before requesting the tool list.

Limitations and notes

kaka-milan-22/kops never returns ConfigMap data or Secret values. Inventory includes only metadata such as names, key lists, and ages for those objects. Actual configuration content must be obtained separately with explicit permission.

Names, namespaces, containers, and selectors are validated before execution. Kubectl calls have a 30-second timeout; describe output is capped at 30 KB, logs at 50 KB, and requested log tails at 1,000 lines. Unsupported or absent optional resource kinds may be skipped by aggregate operations. The server depends on the caller's Kubernetes permissions and the availability of the configured cluster context.

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 Kops

kaka-milan-22/kops is an MCP server that connects Claude Code to Kubernetes through kubectl. Its six read-only tools retrieve resources, descriptions, logs, events, cluster triage results, and inventory snapshots. It returns structured summaries where possible and blocks mutation operations such as delete, apply, patch, scale, and exec.

Install uv, make sure kubectl is on PATH, clone the repository, and run uv sync from its directory. Register it in Claude Code with uv --directory /absolute/path/to/kops run kops, then reload Claude Code or open a new session.

Set KUBECONFIG on a separate MCP server registration to the other cluster's kubeconfig file. This keeps that configuration isolated from the default kubeconfig. You can also use the optional context argument to select a kubectl context, but it cannot supply a KUBECONFIG path.

No, kaka-milan-22/kops never returns Secret or ConfigMap values. Inventory exposes metadata only, including names, key lists, and ages. Use a separately authorized Bash and kubectl workflow if actual configuration content is required.

No, it only exposes read operations. Verbs are hardcoded inside the tool implementations, and there is no path to delete, apply, patch, scale, or exec. Input validation, shell-free subprocess calls, timeouts, and output limits provide additional execution boundaries.

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 PreviewKops AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kaka-milan-22-kops?style=directory)](https://allmcps.com/mcp/kaka-milan-22-kops)
HTML Embed
<a href="https://allmcps.com/mcp/kaka-milan-22-kops"><img src="https://allmcps.com/api/badge/kaka-milan-22-kops?style=directory" alt="Kops on AllMCPs" /></a>