What is Kubernetes MCP Server
mainKubernetes MCP Server is a Go-based native implementation of the Model Context Protocol (MCP) that allows AI agents to interact directly with Kubernetes and OpenShift clusters.
Unlike implementations that wrap CLI tools like kubectl or helm, this server communicates directly with the Kubernetes API server, providing high performance and low latency. It is distributed as a single native binary for Linux, macOS, and Windows, but is also available via npm, PyPI, and Docker.
Key capabilities include:
- Generic Resource Management: CRUD operations on any Kubernetes or OpenShift resource.
- Pod Operations: Listing, getting, deleting, viewing logs, checking resource usage (
top), executing commands (exec), and running container images. - Namespace & Event Management: Listing namespaces and viewing events.
- OpenShift Support: Listing OpenShift Projects.
- Helm Integration: Installing, listing, and uninstalling Helm releases.
- Tekton Support: Managing Pipelines, PipelineRuns, Tasks, and TaskRuns.
- Observability: Optional OpenTelemetry tracing and metrics with a
/statsendpoint.