When should you use it
Use the Kubernetes MCP server when you want to:
- Manage Kubernetes and OpenShift clusters through AI assistants.
- Perform CRUD operations on Kubernetes resources (pods, deployments, services, etc.).
- Work with Helm charts (install, list, uninstall).
- Query logs, metrics, and events from the cluster.
- Automate operational workflows like resource scaling, monitoring, and troubleshooting.
- Extend support to OpenShift with projects and additional resource types.
Requirements
- Supported platforms: Kubernetes and OpenShift.
- Configuration:
- Uses
~/.kube/config or in-cluster config.
- Automatically detects changes and reloads.
- Dependencies: Kubernetes cluster access with sufficient RBAC permissions.
Configuration
configuration_view β View the current Kubernetes configuration (full or minified).
events_list β List Kubernetes events across namespaces (or filtered by namespace).
helm_install β Install a Helm chart.
helm_list β List Helm releases (all or specific namespaces).
helm_uninstall β Uninstall a Helm release.
Namespaces & Projects
namespaces_list β List all namespaces in the cluster.
projects_list β List all OpenShift projects.
pods_list β List all pods in the cluster.
pods_list_in_namespace β List pods in a specific namespace.
pods_get β Get details of a specific pod.
pods_log β Retrieve logs from a pod (with container and previous options).
pods_exec β Execute commands inside a pod container.
pods_delete β Delete a pod by name.
pods_run β Run a new pod with a specified image.
pods_top β Retrieve pod CPU/memory usage (via metrics server).
Resources (Generic CRUD)
resources_create_or_update β Create or update a Kubernetes resource from YAML/JSON.
resources_get β Retrieve a specific resource.
resources_list β List resources (by API version, kind, namespace, label selectors).
resources_delete β Delete a resource by kind and name.
Dashboards & Monitoring
pods_top β Get resource usage for pods (cluster-wide or namespace-specific).
- Works with both self-managed Kubernetes clusters and OpenShift.
- Supports Helm operations natively for release management.
- RBAC permissions must match the requested operations (e.g., creating pods, deleting resources).
- Ideal for use cases where AI agents need to act as cluster copilots for devops, troubleshooting, and automation.
Last modified on April 8, 2026