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,183 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)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
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…
continueOpaque token from the continue field of the previous page. Send it unchanged with the same limit, namespace, and…
limitMaximum number of items to return. Omit or set to 0 to list everything, which fails if the response exceeds…
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. Use limit and continue to retrieve a large list one page at…
projects_listList all the OpenShift projects in the current cluster. Use limit and continue to retrieve a large list one page at a…
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)
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
Thesvg
glincker/thesvg
The open SVG brand library: 7,600+ brand logos and cloud icons (AWS, Azure, GCP) as official SVG.
Active · last commit Oct 25, 2026
Cloud & DevOpsTypeScriptAzure DevOps MCP
microsoft/azure-devops-mcp
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
Active · last commit Oct 22, 2026
OfficialCloud & DevOpsTypeScriptOmnara
omnara-ai/omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Active · last commit Oct 24, 2026
OfficialCloud & DevOpsGoTerraVision
patrickchugh/terravision
Draw cloud architecture diagrams with official AWS, Azure and GCP icons from a prompt or Terraform.
Active · last commit Oct 23, 2026
Cloud & DevOpsPythonMCP Grafana
grafana/mcp-grafana
An MCP server giving access to Grafana dashboards, data and more.
Active · last commit Oct 23, 2026
OfficialCloud & DevOpsGoMCP Server Kubernetes
Flux159/mcp-server-kubernetes
MCP Server for kubernetes management commands.
Active · last commit Oct 14, 2026
Cloud & DevOpsTypeScript
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 26, 2026. The latest release is v0.0.69, published Oct 23, 2026. appsgit only lists MCP servers with a commit in the last six months.