Kubernetes API
The Kubernetes API lets you query and manipulate the state of objects in Kubernetes. The core of Kubernetes control plane is the API server and the HTTP API that it exposes. Users, the different parts of your cluster, and external components all communicate with one another through the API server. The API is a resource-based (RESTful) programmatic interface provided via HTTP that supports retrieving, creating, updating, and deleting primary resources via the standard HTTP verbs (POST, PUT, PATCH, DELETE, GET).
What You Can Do
MCP Tools
listnamespaces
Kubernetes List namespaces
createnamespace
Kubernetes Create a namespace
getnamespace
Kubernetes Get a namespace
replacenamespace
Kubernetes Replace a namespace
deletenamespace
Kubernetes Delete a namespace
listnamespacedpods
Kubernetes List pods in a namespace
createnamespacedpod
Kubernetes Create a pod
getnamespacedpod
Kubernetes Get a pod
replacenamespacedpod
Kubernetes Replace a pod
deletenamespacedpod
Kubernetes Delete a pod
readnamespacedpodlog
Kubernetes Read pod logs
listnamespaceddeployments
Kubernetes List deployments in a namespace
createnamespaceddeployment
Kubernetes Create a deployment
getnamespaceddeployment
Kubernetes Get a deployment
replacenamespaceddeployment
Kubernetes Replace a deployment
deletenamespaceddeployment
Kubernetes Delete a deployment
getnamespaceddeploymentscale
Kubernetes Get deployment scale
replacenamespaceddeploymentscale
Kubernetes Scale a deployment
listnamespacedservices
Kubernetes List services in a namespace
createnamespacedservice
Kubernetes Create a service
getnamespacedservice
Kubernetes Get a service
replacenamespacedservice
Kubernetes Replace a service
deletenamespacedservice
Kubernetes Delete a service
listnamespacedconfigmaps
Kubernetes List ConfigMaps in a namespace
createnamespacedconfigmap
Kubernetes Create a ConfigMap
listnamespacedsecrets
Kubernetes List Secrets in a namespace
createnamespacedsecret
Kubernetes Create a Secret
listnodes
Kubernetes List nodes
getnode
Kubernetes Get a node
listclusterroles
Kubernetes List ClusterRoles
createclusterrole
Kubernetes Create a ClusterRole
listnamespacedhorizontalpodautoscalers
Kubernetes List HorizontalPodAutoscalers in a namespace
createnamespacedhorizontalpodautoscaler
Kubernetes Create a HorizontalPodAutoscaler
listnamespacedevents
Kubernetes List events in a namespace