MCP Server Kubernetes
MCP server by Flux159 Verified · npm:mcp-server-kubernetes
MCP Server Kubernetes connects AI assistants to a Kubernetes cluster through kubectl. It is for developers and operators who want to inspect and manage cluster resources from their assistant.
Install MCP Server Kubernetes
Built from the published package, never by AI.
claude mcp add mcp-server-kubernetes -- npx -y mcp-server-kubernetesRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-server-kubernetes": {
"args": [
"-y",
"mcp-server-kubernetes"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install MCP Server Kubernetes in Claude Desktop
{
"mcpServers": {
"mcp-server-kubernetes": {
"args": [
"-y",
"mcp-server-kubernetes"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-server-kubernetes": {
"args": [
"-y",
"mcp-server-kubernetes"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-server-kubernetes -- npx -y mcp-server-kubernetes{
"mcpServers": {
"mcp-server-kubernetes": {
"args": [
"-y",
"mcp-server-kubernetes"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install MCP Server Kubernetes in Antigravity CLI
gemini mcp add mcp-server-kubernetes npx -y mcp-server-kubernetesGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-server-kubernetes block.
About
MCP Server Kubernetes is an MCP server that connects to a Kubernetes cluster and manages it. It runs kubectl commands for the assistant and supports loading kubeconfig from multiple sources in priority order. By default it reads kubeconfig from ~/.kube/config.
The server exposes tools for getting, describing, creating, applying, deleting, scaling and patching resources, as well as viewing logs, managing rollouts and running any kubectl command. It also offers Helm operations, pod cleanup, node cordon, drain and uncordon, port forwarding and a k8s-diagnose troubleshooting prompt. The project is aimed at developers and operators who use kubectl and want an AI assistant to work with their clusters. It can be added to Claude Code, Codex CLI, Claude Desktop, VS Code, Cursor and Muse Code.
Written from the project's README and checked against it.
Tools it gives your assistant
kubectl_getGet or list resources in the cluster.kubectl_describeDescribe resources in the cluster.kubectl_applyApply YAML manifests to the cluster.kubectl_logsGet logs from pods and other resources.kubectl_scaleScale resources such as deployments.kubectl_rolloutManage deployment rollouts.kubectl_genericExecute any kubectl command.port_forwardPort forward to pods and services.cleanup_podsClean up pods in problematic states such as Evicted or CrashLoopBackOff.node_managementCordon, drain and uncordon nodes for maintenance.
What you need
- kubectl installed and in PATH
- A valid kubeconfig file with contexts configured
- Access to a Kubernetes cluster configured for kubectl
- Helm v3 in PATH, only if you use Helm operations
Try asking
- List all pods in the default namespace of my cluster
- Show the logs for the failing pod in the payments namespace
- Scale the frontend deployment to three replicas
Good to know
- Helm v3 is optional and only needed for Helm operations.
- Secrets masking applies to kubectl get secrets commands and does not affect logs.
- OpenTelemetry observability is opt-in and disabled by default.
- On macOS, GUI apps may need an explicit PATH in the client config to find kubectl.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to MCP Server Kubernetes
All alternatives →Azure MCP Server bundles all Azure MCP tools into one local MCP server. It connects AI agents to Azure services and can be used alone or with the GitHub Copilot for Azure extension in VS Code.
Manages monitors, status pages, incidents and maintenances in an openstatus workspace from Claude, ChatGPT, or Cursor. It suits teams that run uptime monitoring and status pages and want their AI assistant to update them.
SmartBear MCP gives AI assistants access to SmartBear's testing and monitoring tools, including BugSnag, Reflect, Swagger, PactFlow and QTM4J. It is aimed at teams that already use these products. Products are reached through remote servers or a local npm package.
Lets AI assistants manage Fettle uptime monitoring, including monitors, incidents, heartbeats, maintenance windows and status page incidents. Built for developers and operations teams who use Fettle and want to work from Claude, Cursor or Codex.
Superlog is an open-source agentic telemetry system that ingests traces, logs and metrics and groups noisy signals into incidents. It is aimed at teams debugging production systems with OpenTelemetry data.
Microsoft Learn MCP gives AI assistants direct access to official Microsoft documentation and code samples through a remote MCP endpoint. It is for developers who use MCP-compatible clients and want answers based on current Microsoft docs.
Compare with Azure MCP Server, openstatus or SmartBear MCP
MCP Server Kubernetes: common questions
Does the server need a special kubeconfig setup?
By default it loads kubeconfig from ~/.kube/config. The source also describes additional options such as environment variables and custom paths in ADVANCED_README.md.
Is there a read-only mode?
The source lists a non-destructive mode for read and create/update-only access to clusters.
Can it send traces to monitoring tools?
Yes, it has opt-in OpenTelemetry support that can export traces to Jaeger, Tempo, Grafana or any OTLP-compatible backend.
How do I install MCP Server Kubernetes?
In Claude Code run claude mcp add mcp-server-kubernetes -- npx -y mcp-server-kubernetes. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is MCP Server Kubernetes the official server?
MCP Server Kubernetes is published by npm:mcp-server-kubernetes from its verified domain in the official MCP Registry.
Is MCP Server Kubernetes free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is MCP Server Kubernetes safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to MCP Server Kubernetes?
Similar MCP servers: Azure MCP Server, openstatus, SmartBear MCP, Fettle.
Does MCP Server Kubernetes work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
