Red Hat Readies an MCP Server to Help LLMs Manage Kubernetes
TL;DR — Key Takeaways
- Red Hat’s open source Kubernetes MCP server gives AI assistants a direct way to interact with Kubernetes and OpenShift clusters through natural language.
- The Go-based server talks directly to the Kubernetes API rather than acting as a wrapper around
kubectlor Helm. - Administrators can restrict the MCP server with Kubernetes RBAC, read-only access and controls that disable destructive operations.
Red Hat is building an open source MCP server extension to help developers and administrators manage Kubernetes and Red Hat’s own OpenShift Kubernetes distribution.
The extension can help AI assistants like Visual Studio Code, Microsoft Copilot, and Cursor control and interact with Kubernetes clusters. It is one of a number of open source MCP servers currently available, though Red Hat’s clean design offers full API accessibility and a single binary installation.
Anthropic initially created the Model Context Protocol (MCP) specification in 2024 to connect large language model (LLM)-driven applications with external data and tools. In this case, Red Hat is creating an MCP to interact with Kubernetes and OpenShift clusters.
For instance, an MCP would provide a conduit for cluster administrators to ask questions, in natural language, about what is happening with their clusters, e.g. “Show me all the pods in CrashLoopBackOff in the last 24 hours,” or “Why is my deployment not scaling?”
It could also aid in diagnosing and resolving issues, drawing on the selected LLM’s knowledge of how Kubernetes works.
When installed, the software can be wired into the organization’s own RBAC permissions and organizational policies, perhaps by establishing a service account (“cluster-reader”) under which the MCP can operate.
Those working in a sensitive environment can just keep the MCP in read-only or “non-destructive” modes, where they can retrieve events and logs. They can check CPU and memory usage through the top command.
The MCP server, however, defaults to full cluster control, which allows you to get the most work done by giving the LLM the full ability to execute commands and perform CRUD operations on any Kubernetes resource, including custom resources. The LLM can, via MCP, make direct API calls with no command-line tool overhead.
Red Hat’s MCP server, written in the Go programming language, works as a single binary with no external dependencies. It can run either locally on the user’s machine or within the cluster, accessible via Streamable HTTP or Server-Side Events (SSE).
In an introductory page, Red Hat walks users through how to set up a read-only Kubernetes MCP Server so it can be used with OpenShift 4.19 and VS Code. The page then shows how to troubleshoot issues through natural language and tool calls. Some prompts that can be used:
- “show node”
- “show pods that are not working”
- “list namespaces”
- “get customresourcedefinitions”
- “get the events of a pod in the default namespace”
- “describe pod <name> in namespace <ns>”
- “get deployments in namespace mcp”
- “show nodes”
- “help me diagnose the pod <my-app-123>”
Red Hat is not alone in implementing an MCP server for Kubernetes. Stacklok offers a Go-based implementation, called mkp, for working with core Kubernetes resource operations. MCP K8S Go is another open source Go-based implementation.
Elsewhere, the mcp-kubernetes-server project is built on Python, and offers a natural language interface for interacting with kubectl actions and Python Kubernetes SDK operations. Developer Alexei Ledenev packaged his MCP server in a Docker container with several cloud native tool libraries for working with kubectl, helm, istioctl, and argocd.
And Microsoft has its own MCP Kubernetes implementation for Azure, with Azure’s built-in security privileges built in.
But Red Hat’s implementation comes with its own advantages, according to the company.
“Unlike other Kubernetes MCP server implementations, this IS NOT just a wrapper around kubectl or helm command-line tools. It is a Go-based native implementation that interacts directly with the Kubernetes API server,” the GitHub page states.
Frequently Asked Questions
What is Red Hat’s Kubernetes MCP server?
It is an open source Model Context Protocol server that enables AI assistants to interact with Kubernetes and OpenShift clusters.
What can the MCP server do?
It can help users query cluster resources, troubleshoot failing workloads, retrieve logs and events, inspect resource usage and perform Kubernetes operations allowed by the credentials assigned to it.


