Kubernetes MCP Server logo

Kubernetes MCP Server

Manage Kubernetes and OpenShift clusters through MCP with native resource, pod, Helm, node, and observability tools.

Install Kubernetes MCP Server

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

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for kubernetes-mcp-server, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

kubernetes-mcp-server connects MCP clients directly to Kubernetes and OpenShift APIs for cluster inspection and management. It supports kubeconfig and in-cluster configuration, multiple contexts, generic resource operations, pod access, Helm releases, node metrics, and selected OpenShift, kcp, Istio, and Kiali workflows. Use it when an agent needs to diagnose workloads, inspect cluster state, or apply operational changes without invoking kubectl or helm. The package is available as native binaries, npm, Python, and container distributions.

Use cases

  • Inspect cluster health and recent events
  • Diagnose pods with logs, metrics, and exec
  • Apply or remove Kubernetes resources
  • Deploy and manage Helm releases
  • Investigate OpenShift and Istio environments

Key features

  • Direct Kubernetes API access
  • Kubernetes and OpenShift resource management
  • Pod logs, exec, metrics, and lifecycle operations
  • Helm installation, listing, and uninstall
  • Node statistics and event inspection
  • Multi-context kubeconfig support

Tools76

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

Self-reported~3.0k 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.

14/14 checks healthy over the last 40d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev

Adoption & maintenance

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

GitHub stars2.2kStargazers on the source repository.
npm downloads51kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Tools exposed76Callable 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 exposes Kubernetes and OpenShift operations as Model Context Protocol tools. It can read kubeconfig contexts, inspect the active configuration, enumerate cluster objects, and work across multiple clusters defined in kubeconfig files. The implementation communicates directly with the Kubernetes API rather than shelling out to kubectl or helm.

Its scope covers both read and write operations. Agents can retrieve, create, update, scale, and delete arbitrary Kubernetes resources, while specialized tools handle pods, namespaces, events, nodes, Helm releases, and OpenShift projects. Additional capabilities cover kcp workspaces and Kiali or Istio service-mesh information.

How it works

The server uses the Kubernetes configuration available to the process, either from kubeconfig or an in-cluster configuration. It can detect configuration changes and update its available contexts. Requests are sent to the Kubernetes API, including API-proxy access for node logs and kubelet access for node Summary API statistics.

Many listing operations support pagination. Tools use parameters such as limit and continue, while Helm release listing uses limit and offset. Resource updates use Kubernetes Server-Side Apply: the supplied manifest represents the complete desired state, so fields omitted from an existing resource can be removed.

Setup and configuration

A Kubernetes cluster is required. The project provides a native binary for Linux, macOS, and Windows, along with npm, Python, and container or Docker distributions. Native binaries do not require Node.js or Python on the host.

For Claude Desktop, Cursor, VS Code, and Goose, the documented npm setup runs npx -y kubernetes-mcp-server@latest as the MCP command. Claude Code has a dedicated setup path, including guidance for using a dedicated read-only Kubernetes ServiceAccount in production. Configuration can be supplied through command-line arguments, TOML files, or environment variables.

Tools and capabilities

  • Inspect kubeconfig contexts, server URLs, and the current configuration.
  • List namespaces, OpenShift projects, events, pods, resources, nodes, and Helm releases.
  • Read, create or update, scale, and delete generic Kubernetes resources.
  • Retrieve pod logs, execute commands in pods, delete pods, run container images, and inspect pod metrics.
  • Retrieve node logs and node, pod, or container resource statistics; node statistics can include CPU, memory, filesystem, network, and pressure metrics where supported.
  • Install and uninstall Helm releases.
  • List and describe kcp workspaces, and query Kiali traffic graphs, service-mesh status, and Istio-related configuration.
  • Support Tekton pipeline and task operations, including starting, restarting, canceling, troubleshooting, and retrieving logs.

Limitations and notes

Operations depend on the Kubernetes or OpenShift permissions of the configured identity. Write-capable tools can modify or remove cluster resources, and Server-Side Apply requires care when a manifest omits fields from an existing object. Metrics tools rely on the corresponding Kubernetes Metrics Server or kubelet APIs. Helm listing can fail when the relevant secret list exceeds the backend response-size limit. Optional OpenTelemetry tracing and metrics are available, including a /stats endpoint for runtime statistics.

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 kubeconfig, pods, namespaces, events, nodes, and generic resources, while also supporting resource changes, pod commands and logs, Helm releases, metrics, and selected service-mesh operations.

Install it with the documented native binary, npm, Python, or container distribution. For an npm-based MCP setup, configure the client to run `npx -y kubernetes-mcp-server@latest`. A Kubernetes cluster and usable Kubernetes configuration or in-cluster credentials are required.

Yes, kubernetes-mcp-server works with Cursor. Add an MCP server entry that runs `npx -y kubernetes-mcp-server@latest`, or use Cursor's installation link. The server then uses the Kubernetes configuration available to the process.

Yes, it can list, retrieve, create or update, scale, and delete generic Kubernetes resources by API version and kind. Updates use Server-Side Apply, so the manifest should contain the complete desired state rather than only the fields being changed.

Yes, it can retrieve pod logs, execute commands in pods, inspect pod metrics, list cluster events, retrieve node logs, and query node Summary API statistics. Metrics availability depends on the configured Metrics Server or kubelet support.

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>