Kubernetes MCP Server
Kubernetes MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. A Model Context Protocol (MCP) server for Kubernetes and OpenShift. It has 2,147 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y kubernetes-mcp-server.
github.com/containers/kubernetes-mcp-server (opens in a new tab)
- Cloud & DevOps
- Apache-2.0
- Actively maintained
Install Kubernetes MCP Server
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"kubernetes-mcp-server": {
"command": "npx",
"args": [
"-y",
"kubernetes-mcp-server"
]
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --transport stdio kubernetes-mcp-server -- npx -y kubernetes-mcp-serverCursor
{
"mcpServers": {
"kubernetes-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kubernetes-mcp-server"
]
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"kubernetes-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kubernetes-mcp-server"
]
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Tools (40)
Parsed from the Tools section of the README; check the repository for the current list.
configuration_contexts_listList all available context names and associated server urls from the kubeconfig file
targets_listList all available targets
configuration_viewGet the current Kubernetes configuration content as a kubeconfig YAML
minifiedReturn a minified version of the configuration. If set to true, keeps only the current-context and the relevant pieces…
events_listList Kubernetes events (warnings, errors, state changes) for debugging and troubleshooting in the current cluster from…
namespaceOptional Namespace to retrieve the events from. If not provided, will list events from all namespaces
namespaces_listList all the Kubernetes namespaces in the current cluster
projects_listList all the OpenShift projects in the current cluster
nodes_logGet logs from a Kubernetes node (kubelet, kube-proxy, or other system logs).
query(required) - query specifies services(s) or files from which to return logs (required).
nodes_stats_summaryGet detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API.
nodes_topList the resource consumption (CPU and memory) as recorded by the Kubernetes Metrics Server for the specified…
label_selectorKubernetes label selector (e.g. 'node-role.kubernetes.io/worker=') to filter nodes by label (Optional, only applicable…
pods_listList all the Kubernetes pods in the current cluster from all namespaces
pods_list_in_namespaceList all the Kubernetes pods in the specified namespace in the current cluster
pods_getGet a Kubernetes Pod in the current or provided namespace with the provided name
pods_deleteDelete a Kubernetes Pod in the current or provided namespace with the provided name
pods_topList the resource consumption (CPU and memory) as recorded by the Kubernetes Metrics Server for the specified…
all_namespacesIf true, list the resource consumption for all Pods in all namespaces.
pods_execExecute a command in a Kubernetes Pod (shell access, run commands in container) in the current or provided namespace…
command(required) - Command to execute in the Pod container. The first item is the command to be run, and the rest are the…
containerName of the Pod container where the command will be executed (Optional)
pods_logGet the logs of a Kubernetes Pod in the current or provided namespace with the provided name
previousReturn previous terminated container logs (Optional)
tailNumber of lines to retrieve from the end of the logs (Optional, default: 100)
pods_runRun a Kubernetes Pod in the current or provided namespace with the provided container image and optional name
image(required) - Container Image to run in the Pod
portTCP/IP port to expose from the Pod container (Optional, no port exposed if not provided)
resources_listList Kubernetes resources and objects in the current cluster by providing their apiVersion and kind and optionally the…
kind(required) - kind of the resources (examples of valid kind are: Pod, Service, Deployment, Ingress)
resources_getGet a Kubernetes resource in the current cluster by providing its apiVersion, kind, optionally the namespace, and its…
resources_create_or_updateCreate or update a Kubernetes resource via Server-Side Apply. The manifest is the complete desired state: any field…
resource(required) - Complete YAML or JSON representation of the Kubernetes resource (full desired state, not a partial…
resources_deleteDelete a Kubernetes resource in the current cluster by providing its apiVersion, kind, optionally the namespace, and…
resources_scaleGet or update the scale of a Kubernetes resource in the current cluster by providing its apiVersion, kind, name, and…
scaleOptional scale to update the resources scale to. If not provided, will return the current scale of the resource, and…
helm_installInstall (deploy) a Helm chart to create a release in the current or provided namespace
chart(required) - Chart reference to install (for example: stable/grafana, oci://ghcr.io/nginxinc/charts/nginx-ingress)
valuesValues to pass to the Helm chart (Optional)
helm_listList all the Helm releases in the current or provided namespace (or in all namespaces if specified)
About Kubernetes MCP Server
A powerful and flexible Kubernetes Model Context Protocol (MCP) server implementation with support for Kubernetes and OpenShift.
- containers
- context
- kubernetes
- mcp
- model
- openshift
- protocol
- modelcontextprotocol
- kubernetes-mcp
Similar MCP servers
More cloud & devops MCP servers
Worldmonitor
koala73/worldmonitor
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface.
Cloud & DevOpsTypeScriptNetdata
netdata/netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Cloud & DevOpsGoopenstatus
openstatusHQ/openstatus
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
OfficialCloud & DevOpsTypeScriptMCP Server Cloudflare
cloudflare/mcp-server-cloudflare
Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems.
OfficialCloud & DevOpsTypeScriptDagu
dagucloud/dagu
Self-hostable workflow orchestrator for teams whose main work isn't orchestration.
Cloud & DevOpsGoAzure MCP Server
microsoft/mcp
All Azure MCP tools to create a seamless connection between AI agents and Azure services.
OfficialCloud & DevOpsC#
What is Kubernetes MCP Server?
Kubernetes MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. A Model Context Protocol (MCP) server for Kubernetes and OpenShift. It has 2,147 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y kubernetes-mcp-server. The source code is at github.com/containers/kubernetes-mcp-server.
How do I install the Kubernetes MCP Server MCP server?
Add the command npx -y kubernetes-mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Kubernetes MCP Server free?
The server is open source under the Apache-2.0 license, so running it is free. It does not declare any required API key.
Is Kubernetes MCP Server actively maintained?
The most recent commit was on Oct 6, 2026. The latest release is v0.0.67, published Sep 18, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.