Kubernetes MCP Server 🔌 MCP server Open source
Native Go MCP server for Kubernetes and OpenShift: pods, logs, any resource, Helm and more
- GitHub stars
- 2.1k
- Stars this week
- +20
- Forks
- 446
- Licence
- Apache-2.0
- Last push
- 2026-10-02
- Maintainer
- containers
claude mcp add-json kubernetes-mcp-server '{"command":"npx","args":["-y","kubernetes-mcp-server@latest","--read-only"],"env":{"KUBECONFIG":"'${HOME}'/.kube/mcp-viewer.kubeconfig"}}' -s userThird-party MCP servers run with your permissions. Read the source before installing, and prefer pinned versions.
Works with
Built on the open MCP standard, so it works in every app that supports MCP.
About Kubernetes MCP Server
What it does
Kubernetes MCP Server lets a coding agent inspect and manage Kubernetes and OpenShift clusters. It is written in Go and talks to the Kubernetes API server directly, so it does not wrap kubectl or helm and needs neither installed. It reads your kubeconfig or in-cluster credentials, notices when the config changes, and can work across several clusters at once. For vibe coders, the typical uses are deploying something you just built, reading pod logs and events when a rollout fails, and letting the agent diagnose and fix a broken deployment. It lives in the containers GitHub organisation, the same one that hosts Podman, and is licensed under Apache-2.0.
Tools it gives your agent
- config: list kubeconfig contexts and view the current configuration
- core: CRUD on any resource; pod list, get, delete, logs, top, exec and run; namespaces, events, node logs and stats, and OpenShift projects
- helm (optional): install, list and uninstall releases
- Optional toolsets: Tekton pipelines, KubeVirt, Kiali/Istio, NetObserv and kcp workspaces
Works with
It runs locally over stdio by default. With --port it serves Streamable HTTP, and it supports OAuth/OIDC in that mode. It ships as a native binary, an npm package, a PyPI package and a container image. The docs cover Claude Code, Claude Desktop, VS Code with GitHub Copilot, Cursor and Goose, and any MCP client will work.
How to connect
The project's Claude Code guide uses a dedicated read-only kubeconfig:
claude mcp add-json kubernetes-mcp-server \
'{"command":"npx","args":["-y","kubernetes-mcp-server@latest","--read-only"],"env":{"KUBECONFIG":"'${HOME}'/.kube/mcp-viewer.kubeconfig"}}' \
-s user
Cost and limits
The server is free and open source. You need access to a cluster, and any cloud or cluster costs are your own.
Safety notes
The agent acts with whatever rights your kubeconfig grants, including exec into pods and deleting resources. Start with --read-only, or use --disable-destructive to allow creates but block deletes and updates. Point it at a dedicated ServiceAccount, as the project's Kubernetes setup guide recommends, and use denied_resources to hide Secrets. Pick toolsets with --toolsets, and use --disable-multi-cluster to limit it to the current context. The server redacts tokens and keys from the log messages it sends to clients.
Pros
- Talks to the Kubernetes API directly, no kubectl or helm needed
- Read-only and no-destructive modes plus denied resources for Secrets
- Optional toolsets for Helm, Tekton, KubeVirt and Kiali
Cons
- Default toolsets include exec and delete, so an unrestricted kubeconfig is risky
- Large tool list can crowd the agent's context unless you trim toolsets
Similar MCP servers
All cloud & deployment MCP servers →Terraform MCP Server 🔌 MCP serverOpen source
HashiCorp's official server for Terraform Registry docs and HCP Terraform workspaces and runs
Trigger.dev 🔌 MCP serverFreemium
Official MCP server to scaffold, trigger, debug and deploy Trigger.dev tasks from your agent
AWS MCP Servers 🔌 MCP serverFree
Official suite of AWS MCP servers for docs, CDK, serverless, databases and costs
🔥 AWS Activate: up to $200,000 in AWS credits for eligible startups, with extra credits for AI-focused companiesCloudflare MCP Servers 🔌 MCP serverFreemium
Cloudflare's MCP servers for Workers, observability, DNS, docs and more
🔥 Cloudflare for Startups: $10K-$350K in platform credits for early-stage companies (tiered, Series B or earlier)Vercel MCP 🔌 MCP serverFreemium
Vercel's official MCP server for projects, deployments, logs and docs
🔥 Vercel for Startups: up to $30,000 in credits