Skip to content

Kubernetes MCP Server

Inspect and manage Kubernetes and OpenShift clusters from Claude using your kubeconfig.

Community, verifiedby Containers organization (Red Hat maintainers)Runs on your computerChecked November 8, 2026

This community Kubernetes MCP server, kept in the containers GitHub organization and created by a Red Hat engineer, talks to the Kubernetes API directly instead of wrapping kubectl or helm. It works with every cluster in your kubeconfig, OpenShift included, and ships as a native binary plus npm, PyPI and container packages. The core and config toolsets load by default; Helm, KubeVirt, Tekton, Kiali and observability toolsets are optional.

Who is Kubernetes MCP for?

  • Platform and DevOps engineers
  • Developers debugging apps on Kubernetes
  • OpenShift users

What can you ask Kubernetes MCP to do?

Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.

Prompt 1
Which pods in the production namespace are crash-looping, and what do their last logs say?
Prompt 2
Scale the web deployment in staging to five replicas and confirm the new pods are ready.
Prompt 3
List the recent warning events in the payments namespace and explain what they mean.

How to connect Kubernetes to Claude

MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:

New to MCP? Read what an MCP server is and how to add one.

Easiest: paste this into Claude Code
Connect the Kubernetes MCP server to Claude Code for me: run this command: claude mcp add --transport stdio kubernetes -- npx -y kubernetes-mcp-server@latest
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.

Or do it yourself:

claude mcp add --transport stdio kubernetes -- npx -y kubernetes-mcp-server@latest

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Good to know

It uses your current kubeconfig. For read-only access, write read_only = true in a TOML file and pass it with --config (runtime flags such as --read-only are no longer accepted), and point KUBECONFIG at a kubeconfig for a ServiceAccount with limited rights.

How did we check Kubernetes MCP?

Checked on November 8, 2026: the containers/kubernetes-mcp-server repo (Apache-2.0, 2,229 stars, release v0.1.2 on November 4, 2026; its creator and top contributor works at Red Hat), its Claude Code guide and the npm package kubernetes-mcp-server.

Source: github.com/containers/kubernetes-mcp-server

What do people ask about Kubernetes MCP?

Is the Kubernetes MCP server an official Kubernetes project?

No. It is a community project in the containers GitHub organization, created and still led by a Red Hat engineer, not a project of Kubernetes or the CNCF. It is actively maintained (release v0.1.2 on November 4, 2026) and works with OpenShift as well as plain Kubernetes.

Can the Kubernetes MCP server run read-only?

Yes: write read_only = true in a TOML config file and start the server with --config pointing to it, since command-line flags such as --read-only are no longer accepted. The project calls read_only a best-effort guardrail and says Kubernetes RBAC is the real control, so give it a kubeconfig for a view-only ServiceAccount and use denied_resources to block kinds such as Secret.

Do I need kubectl or Helm installed?

No. The server talks to the Kubernetes API itself instead of calling kubectl or helm, so it needs only a kubeconfig. The Helm tools (install, list and uninstall) live in an optional helm toolset that is off by default.

We wrote these answers from the official pages of each product named, read on November 8, 2026.

Using servers like Kubernetes from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.