MCP server that lets AI assistants manage a Kubernetes cluster through kubectl and Helm
open sourceMITself-hostablefreeMCP
MCP Server Kubernetes connects Claude, Codex, Cursor, VS Code and other MCP clients to a Kubernetes cluster using your kubeconfig. Its tools get, describe, create, apply, patch, scale and delete resources, read logs, manage rollouts and contexts, port-forward, run Helm installs and upgrades, clean up failed pods and cordon or drain nodes, plus a generic tool for any kubectl command. A non-destructive mode limits it to read and create/update access, secrets are masked in output, and a k8s-diagnose prompt walks through troubleshooting a pod. It runs with npx, as a Claude Desktop extension, in Docker or in-cluster from a Helm chart, over stdio or Streamable HTTP, with opt-in OpenTelemetry tracing. MIT.
Problems it solves
- let Claude or Cursor inspect and manage my Kubernetes cluster
- ask an AI assistant why a pod is crashing and have it check logs and events
- give an AI agent kubectl access without letting it delete anything
- an MCP server that can run Helm installs and upgrades
- drain and cordon Kubernetes nodes from a chat with an AI assistant
Features
- kubectl tools: get, describe, create, apply, patch, scale, delete, logs, rollout, context
- generic tool for any kubectl command
- Helm install, upgrade and uninstall, with template-based fallbacks
- port forwarding to pods and services
- cleans up evicted, errored and crash-looping pods
- cordon, drain and uncordon nodes
- k8s-diagnose troubleshooting prompt
- non-destructive mode (read and create/update only)
- secrets masking in kubectl output
- stdio or Streamable HTTP transport; Helm chart for in-cluster deployment
View 1 more
- opt-in OpenTelemetry tracing
Limitations
- Needs kubectl, and Helm 3 for Helm operations, installed and on the PATH1
Capabilities
| Has an MCP server | plan not known |
|---|
Alternatives
The same job
These do what MCP Server Kubernetes does.
- Kubernetes MCP Server Native Go MCP server for Kubernetes and OpenShift: CRUD on any resource plus pods, Helm, Tekton and observability tools
- Terraform MCP Server HashiCorp's MCP server for Terraform Registry and HCP Terraform
