kubectl-mcp-server
v2.0.0Stateless Model Context Protocol (MCP 2026-07-28) server for Kubernetes with 280+ tools, resources, and prompts
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
kubectl_get Get Resources
List or get any Kubernetes resource, including custom resources (kubectl get).
| Parameter | Type | Description |
|---|---|---|
resource_type * | string | Kind, plural or short name, e.g. pods, deploy, svc, nodes, events, certificates.cert-manager.io |
all_namespaces | boolean | List across all namespaces |
context | string | Kubernetes context (optional) |
field_selector | e.g. status.phase=Running or involvedObject.name=web-123 | |
label_selector | e.g. app=web,tier!=db | |
name | A single resource name (omit to list) | |
namespace | Namespace (omit for the context default; ignored for cluster-scoped kinds) | |
output | string | table (default), wide, name, yaml or json. Secret values are always redacted |
sort_by | JSONPath to sort by, e.g. .lastTimestamp for events |
kubectl_logs Container Logs
Get container logs (kubectl logs).
| Parameter | Type | Description |
|---|---|---|
pod_name * | string | Pod name, or TYPE/NAME such as deployment/web to pick a pod of a workload |
container | Container name for multi-container pods | |
context | string | Kubernetes context (optional) |
namespace | string | Namespace of the pod |
previous | boolean | Logs of the previous, crashed container instance |
since | Only newer logs, e.g. 10m or 2h | |
tail | integer | Lines from the end (default 200; -1 for all) |
kubectl_top Resource Usage
CPU and memory usage of pods or nodes from metrics-server (kubectl top).
| Parameter | Type | Description |
|---|---|---|
all_namespaces | boolean | Pods across all namespaces |
containers | boolean | Per-container usage for pods |
context | string | Kubernetes context (optional) |
name | A single pod or node | |
namespace | Namespace for pods | |
resource | string | pods or nodes |
sort_by | cpu or memory |
kubectl_scale Scale Workload
Scale a deployment, statefulset, replicaset or any scalable resource (kubectl scale).
| Parameter | Type | Description |
|---|---|---|
name * | string | Resource name |
replicas * | integer | Desired replica count (0 stops the workload and needs confirmation in confirm mode) |
resource_type * | string | deployment, statefulset, replicaset, or another kind with a scale subresource |
context | string | Kubernetes context (optional) |
namespace | string | Namespace |
detect_ecosystem Detect Ecosystem
Detect installed operators (Flux, Argo CD, cert-manager, Kyverno, Istio, ...) and local CLIs, and report which toolsets or dedicated MCP servers cover them.
| Parameter | Type | Description |
|---|---|---|
context | string | Kubernetes context (optional) |
install_helm_chart Install Helm Chart
Install a Helm chart.
| Parameter | Type | Description |
|---|---|---|
chart * | string | Chart reference |
name * | string | Release name |
namespace * | string | Target namespace |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
repo | Repository in format 'repo_name=repo_url' | |
values | Values to override |
upgrade_helm_chart Upgrade Helm Chart
Upgrade a Helm release.
| Parameter | Type | Description |
|---|---|---|
chart * | string | Chart reference |
name * | string | Release name |
namespace * | string | Target namespace |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
repo | Repository in format 'repo_name=repo_url' | |
values | Values to override |
uninstall_helm_chart Uninstall Helm Chart
Uninstall a Helm release.
| Parameter | Type | Description |
|---|---|---|
name * | string | Release name to uninstall |
namespace * | string | Target namespace |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
helm_list List Helm Releases
List Helm releases with optional filtering.
| Parameter | Type | Description |
|---|---|---|
all_namespaces | boolean | List releases across all namespaces |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
deployed | boolean | Show deployed releases only |
failed | boolean | Show failed releases only |
filter | Filter releases by name using regex | |
namespace | Target namespace (default: current namespace) | |
pending | boolean | Show pending releases only |
superseded | boolean | Show superseded releases only |
uninstalled | boolean | Show uninstalled releases (if kept with --keep-history) |
helm_status Helm Release Status
Get the status of a Helm release.
| Parameter | Type | Description |
|---|---|---|
release_name * | string | Name of the release |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
namespace | string | Kubernetes namespace |
revision | Show status for a specific revision (default: latest) | |
show_desc | boolean | Show description of the release |
show_resources | boolean | Show resources created by the release |
helm_history Helm Release History
Get the revision history of a Helm release.
| Parameter | Type | Description |
|---|---|---|
release_name * | string | Name of the release |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
max_revisions | integer | Maximum number of revisions to return |
namespace | string | Kubernetes namespace |
helm_get Get Helm Release Details
Get details of a Helm release: values, manifest, notes, hooks, or all.
| Parameter | Type | Description |
|---|---|---|
release_name * | string | Name of the release |
all_values | boolean | For values, include chart defaults, not just user-supplied values |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
namespace | string | Kubernetes namespace |
revision | Specific revision (default: latest) | |
what | string | values (default), manifest, notes, hooks, or all |
helm_rollback Helm Rollback
Rollback a Helm release to a previous revision.
| Parameter | Type | Description |
|---|---|---|
release_name * | string | Name of the release |
revision * | integer | Revision number to rollback to (use helm_history to see revisions) |
cleanup_on_fail | boolean | Delete newly created resources on failure |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
force | boolean | Force resource updates through delete/recreate |
namespace | string | Kubernetes namespace |
recreate_pods | boolean | Force pod restarts |
timeout | string | Timeout for waiting |
wait | boolean | Wait until all resources are ready |
kubectl_apply Kubectl Apply
Apply a YAML manifest to the cluster.
| Parameter | Type | Description |
|---|---|---|
manifest * | string | YAML manifest content to apply |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
namespace | Target namespace |
kubectl_describe Kubectl Describe
Describe a Kubernetes resource in detail.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the resource |
resource_type * | string | Type of resource (e.g., pod, deployment, service) |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
namespace | Target namespace |
kubectl_generic Kubectl Generic
Execute any kubectl command. Use with caution.
| Parameter | Type | Description |
|---|---|---|
command * | string | kubectl command to execute (without kubectl prefix) |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
kubectl_patch Kubectl Patch
Patch a Kubernetes resource.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the resource |
patch * | string | JSON patch content |
resource_type * | string | Type of resource to patch |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
namespace | Target namespace | |
patch_type | string | Type of patch (strategic, merge, json) |
kubectl_rollout Kubectl Rollout
Manage rollouts (restart, status, history, undo, pause, resume).
| Parameter | Type | Description |
|---|---|---|
action * | string | Rollout action (status, history, restart, undo, pause, resume) |
name * | string | Name of the resource |
resource_type * | string | Type of resource (deployment, statefulset, daemonset) |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
namespace | Target namespace |
delete_resource Delete Resource
Delete a Kubernetes resource.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the resource |
resource_type * | string | Type of resource to delete |
context | string | Kubernetes context to use (optional, uses current context if not specified) |
namespace | Target namespace |
exec_in_pod Exec in Pod
Execute a command inside a pod.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to execute |
pod_name * | string | Name of the pod |
container | Container name (for multi-container pods) | |
context | string | Kubernetes context to use (uses current context if not specified) |
namespace | Namespace of the pod |
diagnose_pod_crash Diagnose Pod Crash
Automated diagnosis of pod crash loops and failures.
| Parameter | Type | Description |
|---|---|---|
pod_name * | string | Name of the pod |
context | string | Kubernetes context to use (uses current context if not specified) |
namespace | string | Namespace of the pod |
detect_pending_pods Detect Pending Pods
Find pending pods and explain why they are not scheduled.
| Parameter | Type | Description |
|---|---|---|
context | string | Kubernetes context to use (uses current context if not specified) |
namespace | Namespace to search (all namespaces if not specified) |
list_contexts List Contexts
List all available kubectl contexts with detailed info. Returns all contexts from kubeconfig with cluster, user, namespace info.
health_check Health Check
Perform a cluster health check.
| Parameter | Type | Description |
|---|---|---|
context | string | Kubernetes context to use (uses current context if not specified) |
kubectl_explain Kubectl Explain
Explain a Kubernetes resource.
| Parameter | Type | Description |
|---|---|---|
resource * | string | Resource type to explain (e.g., pods, deployments.spec) |
context | string | Kubernetes context to use (uses current context if not specified) |
get_api_resources Get API Resources
Get available API resources.
| Parameter | Type | Description |
|---|---|---|
context | string | Kubernetes context to use (uses current context if not specified) |