MCP server · Cloud and DevOps
Kubernetes MCP server
The Kubernetes MCP server is a community MCP server from the containers project. It lets an assistant list, inspect and change Kubernetes and OpenShift resources, read pod logs, exec into pods and manage Helm releases. It runs locally with npx kubernetes-mcp-server@latest, needs no account, and acts with your kubeconfig credentials.
- Maintainer
- The containers project
- Licence
- Apache-2.0
- Runs
- Locally (npx)
- Sign-in
- None
- Registry version
- 0.1.0 (updated 2026-10-29)
- Last activity
- 2026-10-13
Overview
What can the Kubernetes MCP server do?
The Kubernetes MCP Server is a native Go implementation that talks straight to the Kubernetes API server instead of wrapping kubectl or helm, so no other tools are needed. It reads your kubeconfig (or in-cluster configuration), picks up changes automatically and can work with several clusters at once. It ships as a single binary for Linux, macOS and Windows, and also as an npm package, a Python package and a container image.
Tools are organised into toolsets. The default config and core sets cover kubeconfig, generic CRUD on any resource, pods (list, get, delete, logs, top, exec, run), namespaces and events. Optional sets add Helm, Tekton, KubeVirt, Kiali, kcp, NetObserv and observability (Loki, Prometheus, Tempo). A TOML configuration file controls everything: read_only = true removes write tools, toolsets limits what loads, and denied_resources can hide kinds such as Secret. It works with OpenShift as well as upstream Kubernetes.
Tools
Tools it gives the assistant
- Generic create, update, get, list and delete for any Kubernetes or OpenShift resource
- Pods: list, get, delete, logs, top, exec and run
- Namespaces, events and OpenShift projects
- View and manage the current kubeconfig
- Helm: install, list and uninstall releases (optional toolset)
- Tekton, KubeVirt, Kiali, kcp, NetObserv and observability toolsets (optional)
Install
How do I install Kubernetes MCP in Claude Code, Cursor or VS Code?
You need:
- Node.js (for npx), or the native binary, or uv
- A kubeconfig with access to a Kubernetes or OpenShift cluster
Run in your project. --scope local keeps the servers private to you in this project; use user for every project.
claude mcp add --scope local kubernetes -- npx -y kubernetes-mcp-server@latest
claude mcp add --scope local kubernetes -- cmd /c npx -y 'kubernetes-mcp-server@latest'
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json (Settings → Developer → Edit Config). Restart Claude after saving.
{
"mcpServers": {
"kubernetes": {
"command": "npx",
"args": [
"-y",
"kubernetes-mcp-server@latest"
]
}
}
}
In your project, or ~/.cursor/mcp.json for every project.
{
"mcpServers": {
"kubernetes": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kubernetes-mcp-server@latest"
]
}
}
}
In your workspace. VS Code asks for each secret the first time a server starts and stores it securely.
{
"servers": {
"kubernetes": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kubernetes-mcp-server@latest"
]
}
}
}
Need another app? Open Kubernetes MCP Server in the MCP config generator for a shared project .mcp.json, Devin, or several servers at once; it writes one file per app. The snippets follow the setup in the server’s README, checked on 2026-10-14.
Is the Kubernetes MCP server safe? Check before you install
- It acts with your kubeconfig credentials and can delete resources, exec into pods and install Helm charts.
- Set read_only = true in a TOML file passed with --config, and use denied_resources to block kinds such as Secret; the README points to a read-only ServiceAccount setup for production.
- A local MCP server runs with your user account’s permissions. Install it only from the source linked above. See how to choose a safe server.
FAQ
Kubernetes MCP questions
Is the Kubernetes MCP server official?
No. It is a community server maintained by The containers project under the Apache-2.0 licence, not by the vendor of the product it connects to. Read its README and code before you install it.
Is Kubernetes MCP server remote or local?
Local. Your MCP app starts it on your machine with npx, and it runs with your user account’s permissions.
Does Kubernetes MCP server need an API key or account?
No. It needs no account, API key or sign-in to run. You also need: Node.js (for npx), or the native binary, or uv; A kubeconfig with access to a Kubernetes or OpenShift cluster.
Why it’s listed
Why we list it
A fast, dependency-free server with fine-grained toolsets and a documented read-only mode, released often.
Related
Alternatives and related servers: cloud and devops
- Terraform MCP Server
- Firebase MCP Server
- Heroku Platform MCP Server
- Cloud Run MCP
- Pulumi MCP Server
- Render MCP Server
All MCP serversMCP config generatorGuide: MCP servers in Claude CodeGuide: what is MCP?