Kubectl MCP Server

Kubectl MCP Server

MCP Server that enables AI assistants to interact with Kubernetes clusters via kubectl operations.

1.1K

26 Tools

Packaged by
Requires Configuration
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

Tools

NameDescription
check_pod_healthCheck the health status of a pod.
create_deploymentCreate a new deployment.
delete_resourceDelete a Kubernetes resource.
get_api_resourcesList Kubernetes API resources.
get_cluster_rolesGet all cluster-wide RBAC roles.
get_configmapsGet all ConfigMaps in the specified namespace.
get_current_contextGet current kubeconfig context.
get_deploymentsGet all deployments in the specified namespace.
get_eventsGet all events in the specified namespace.
get_logsGet logs from a pod.
get_namespacesGet all Kubernetes namespaces.
get_nodesGet all nodes in the cluster.
get_pod_eventsGet events for a specific pod.
get_podsGet all pods in the specified namespace.
get_rbac_rolesGet all RBAC roles in the specified namespace.
get_resource_usageGet resource usage statistics via kubectl top.
get_secretsGet all Secrets in the specified namespace.
get_servicesGet all services in the specified namespace.
health_checkCheck cluster health by pinging the API server.
install_helm_chartInstall a Helm chart.
kubectl_explainExplain a Kubernetes resource using kubectl explain.
port_forwardForward local port to pod port.
scale_deploymentScale a deployment.
switch_contextSwitch current kubeconfig context.
uninstall_helm_chartUninstall a Helm release.
upgrade_helm_chartUpgrade a Helm release.

Manual installation

You can install the MCP server using:

Installation for

Related servers