Kubernetes MCP Server
MCP Server that can connect to a Kubernetes cluster and manage it.
By default, the server loads kubeconfig from ~/.kube/config.
The server will automatically connect to your current kubectl context. Make sure you have:
- kubectl installed and in your PATH
- A valid kubeconfig file with contexts configured
- Access to a Kubernetes cluster configured for kubectl (e.g. minikube, Rancher Desktop, GKE, etc.)
- Optional: Helm v3 installed and in your PATH.
You can verify your connection by asking Claude to list your pods or create a test deployment.
If you have errors open up a standard terminal and run kubectl get pods to see if you can connect to your cluster without credentials issues.
Features
- Connect to a Kubernetes cluster
- Unified kubectl API for managing resources
- Get or list resources with
kubectl_get - Describe resources with
kubectl_describe - List resources with
kubectl_get - Create resources with
kubectl_create - Apply YAML manifests with
kubectl_apply - Delete resources with
kubectl_delete - Get logs with
kubectl_logs - and more.
- Tools
-
pingcleanupkubectl_getkubectl_describekubectl_applykubectl_deletekubectl_createkubectl_logskubectl_patchkubectl_rolloutkubectl_scalekubectl_contextkubectl_genericinstall_helm_chartupgrade_helm_chartuninstall_helm_chartexplain_resourcelist_api_resourcesnode_managementexec_in_podport_forwardstop_port_forward