Kubernetes MCP Server logo

Kubernetes MCP Server

Manage Kubernetes and OpenShift clusters through MCP tools for resources, pods, Helm, nodes, and service-mesh diagnostics.

Install Kubernetes MCP Server

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "kubernetes-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "kubernetes-mcp-server@latest"
      ]
    }
  }
}

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

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

kubernetes-mcp-server MCP server connects AI clients directly to Kubernetes and OpenShift APIs rather than invoking kubectl or helm. It supports cluster inspection and mutation, including resource CRUD, pod commands and logs, Helm releases, node metrics, events, namespaces, and OpenShift projects. Additional tools expose kcp workspace information and Kiali service-mesh status and traffic data. Reach for it when an agent needs to troubleshoot, inspect, deploy, scale, or modify cluster workloads through MCP.

Use cases

  • Inspect cluster events and pod logs during incidents
  • Deploy or update Kubernetes resources from complete manifests
  • Run commands or launch containers in Kubernetes pods
  • Install and manage Helm releases
  • Diagnose Istio traffic and mesh health

Key features

  • Direct Kubernetes and OpenShift API access
  • Generic resource CRUD and server-side apply
  • Pod execution, logs, metrics, and lifecycle controls
  • Helm release installation and management
  • Node diagnostics and cluster event inspection
  • Kiali Istio mesh status and traffic queries

Tools78

What Kubernetes MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~3.2k tokens of context

Security & health

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

ActiveLast checked Today

Recent health check succeeded.

43/43 checks healthy over the last 59d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · kubernetes-mcp-server@latest (npm)

Adoption & maintenance

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

GitHub stars2.2kStargazers on the source repository.
npm downloads173kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Tools exposed78Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Kubernetes MCP Server works

What kubernetes-mcp-server does

kubernetes-mcp-server gives MCP-compatible AI clients access to Kubernetes and OpenShift operations. Its coverage ranges from read-only inspection to changes that can delete pods, remove resources, execute commands in containers, create or update manifests, scale workloads, install Helm charts, and uninstall releases.

The server also exposes cluster context information, kubeconfig content, namespaces, events, nodes, pods, generic resources, and API resource discovery. OpenShift users can list projects, while environments using kcp can inspect available workspaces. Kiali-related tools provide Istio service-mesh status and namespace-scoped traffic topology, including dependencies and network metrics.

How it works

The implementation is written in Go and communicates directly with the Kubernetes API server. It is not a wrapper around local kubectl or helm commands, so those command-line tools do not need to be installed when using the native distribution. The server can work with multiple clusters described by kubeconfig files and can detect configuration changes.

Many list operations accept pagination parameters such as limit and continue; Helm release listing uses limit and offset. Generic resource updates use Kubernetes Server-Side Apply. The supplied manifest represents the complete desired state, so fields omitted from a previously managed resource can be removed. A safe update flow is to retrieve the resource, edit the returned object, and apply the full manifest.

Setup and configuration

A Kubernetes cluster must be accessible to the server. Distribution options include native binaries for Linux, macOS, and Windows, an npm package, a Python package, and a container image. The native binary does not require Node.js or Python.

For Claude Desktop, add an MCP entry that runs npx -y kubernetes-mcp-server@latest. Cursor uses the same stdio command in its mcp.json configuration. VS Code and VS Code Insiders support adding the server with their MCP command or installation links. Claude Code has a dedicated setup guide, and the server can also be configured in Goose through its extension configuration.

Configuration is available through command-line arguments, TOML files, and environment variables. The server supports both kubeconfig-based and in-cluster configuration, and it can expose optional OpenTelemetry tracing and metrics with a /stats endpoint.

Tools and capabilities

  • Inspect contexts, targets, kubeconfig content, API resource types, events, namespaces, OpenShift projects, and kcp workspaces.
  • List, retrieve, create or update, delete, and scale generic Kubernetes resources.
  • List, inspect, delete, run, execute commands in, retrieve logs from, and measure resource usage for pods.
  • Read node logs and node Summary API statistics, including CPU, memory, filesystem, and network data.
  • Install, list, and uninstall Helm releases.
  • Query Kiali for Istio mesh health and service-to-service traffic information.

Limitations and notes

Operations use the permissions available to the configured Kubernetes identity. Destructive tools include pod deletion, resource deletion, Helm uninstall, and manifest updates, so an agent should be given an appropriately restricted account for production use. Node logs and node statistics depend on access through the Kubernetes API and kubelet. Pod and node resource consumption tools depend on metrics being available from Kubernetes Metrics Server where applicable.

Reviews

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

Frequently Asked Questions about Kubernetes MCP Server

kubernetes-mcp-server is an MCP server that connects AI clients to Kubernetes and OpenShift APIs. Its main tools inspect and modify resources, manage pods, retrieve logs and metrics, operate Helm releases, query nodes and events, and inspect Kiali service-mesh status and traffic.

Install it through a native binary, npm, Python package, or container image. For stdio clients such as Claude Desktop and Cursor, run `npx -y kubernetes-mcp-server@latest` in the client’s MCP configuration. VS Code supports its MCP installation command and links.

Yes, kubernetes-mcp-server works with Cursor. Add an MCP entry to Cursor’s `mcp.json` using the command `npx` and the arguments `-y kubernetes-mcp-server@latest`.

Yes, it supports OpenShift as well as Kubernetes. Available capabilities include listing OpenShift projects, managing generic resources through the Kubernetes API, and using pod, Helm, event, and cluster inspection tools where the configured identity has access.

Yes, its pod execution tool runs a supplied command in a named pod in the current or specified namespace. It also provides separate tools for retrieving pod logs, listing pods, inspecting a pod, deleting it, and launching a pod from a container image.

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 PreviewKubernetes MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kubernetes-mcp-server?style=directory)](https://allmcps.com/mcp/kubernetes-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/kubernetes-mcp-server"><img src="https://allmcps.com/api/badge/kubernetes-mcp-server?style=directory" alt="Kubernetes MCP Server on AllMCPs" /></a>