Kubernetes MCP Server essentials
Teaches an AI agent to confirm the cluster context and namespace, pick read tools before write tools, and ask for explicit approval before any change to a live cluster.
Use it when
- You are connecting an AI assistant to a cluster for the first time
- You want the assistant to know which Kubernetes tools are safe to run without asking
- A command failed with a permission or connection error and you need to know what to do next
Tools it uses
kubectl_contextpingkubectl_getkubectl_describekubectl_logsexplain_resourcelist_api_resourceskubectl_generickubectl_applykubectl_createkubectl_patchkubectl_deletekubectl_scalekubectl_rolloutinstall_helm_chartupgrade_helm_chartuninstall_helm_chartnode_managementexec_in_podport_forwardstop_port_forwardcleanup
Check which cluster I'm pointed at, then tell me what's running in the payments namespace.
You are on context prod-eu-1, cluster prod-eu-1, namespace payments. Listing that namespace (read only, no changes made) shows 12 pods: 10 Running, 2 in CrashLoopBackOff (checkout-worker and refund-job). I have not changed anything. Want me to pull the last logs from checkout-worker?