C

Kubernetes MCP Server

Community MCP server for Kubernetes cluster management via kubectl and Helm, with read-only and non-destructive mode support

Overall Score66/100

Score Breakdown

Server Info

Package
mcp-server-kubernetes
Registry
npm
Maintainer
Community
Category
Cloud & Infrastructure
Tags
containersdevopsk8s
Last Scanned
7 Apr 2026

Findings

7 issues

Authentication & Identity

MEDIUMHTTP/SSE transport supports per-request credentials

Supports three transports: stdio (default), SSE (via ENABLE_UNSAFE_SSE_TRANSPORT), and StreamableHTTP (via ENABLE_UNSAFE_STREAMABLE_HTTP_TRANSPORT). The 'UNSAFE' prefix on HTTP transports acknowledges they lack authentication. Kubeconfig loaded from KUBECONFIG_YAML env var, KUBECONFIG path, or ~/.kube/config. No MCP OAuth.

Remediation

Implement the MCP OAuth spec so users authenticate directly without platform mediation.

Tool Schema Quality

HIGHRequired fields missing on 4 write operations

Write tools without required field declarations: cleanup, kubectl_apply, kubectl_delete, kubectl_create.

Remediation

Add required arrays to all write/delete tool schemas.

MEDIUMOnly 5 of 23 schemas have parameter constraints

Most schemas lack maxLength, enum, or pattern constraints on string parameters.

Remediation

Add constraints to string parameters, especially on write operations.

CRITICALDangerous execution surface: kubectl_generic

Tool allows raw code/query execution which could be exploited via prompt injection.

Remediation

Use parameterized queries or validated command sets.

CRITICALDangerous execution surface: exec_in_pod

Tool allows raw code/query execution which could be exploited via prompt injection.

Remediation

Use parameterized queries or validated command sets.

Permission Granularity

MEDIUM1 tools combine read and write operations

Strong permission model with three filtering modes: ALLOW_ONLY_READONLY_TOOLS (8 read tools only), ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS (excludes delete, uninstall, cleanup, generic, node management), and ALLOWED_TOOLS (explicit whitelist). Destructive tools are explicitly categorized in the destructiveTools array. kubectl_generic is correctly classified as destructive. Annotations properly mark destructiveHint on write/admin tools.

Remediation

Split into separate read and write tools.

Maintenance & Trust

LOWCommunity-maintained by Flux159

No official vendor backing.

Remediation

Seek vendor verification.

Tools

23 total
NameDescriptionRisk
cleanupClean up tracked Kubernetes resourcesadmin
kubectl_getGet or list Kubernetes resources by resource type, name, and optionally namespaceread
kubectl_describeDescribe a Kubernetes resource in detailread
kubectl_applyApply a Kubernetes YAML manifest from a string or filewrite
kubectl_deleteDelete Kubernetes resources by resource type, name, labels, or from a manifest fileadmin
kubectl_createCreate Kubernetes resources from a YAML manifestwrite
kubectl_logsGet logs from a Kubernetes resourceread
kubectl_scaleScale a Kubernetes resource to a specified number of replicaswrite
kubectl_patchPatch a Kubernetes resourcewrite
kubectl_rolloutManage rollouts for Kubernetes deployments, daemonsets, and statefulsetswrite
kubectl_contextList, get, or set kubectl contextsread
kubectl_reconnectReconnect to the Kubernetes cluster by reloading kubeconfigread
explain_resourceExplain a Kubernetes resource type and its fieldsread
install_helm_chartInstall a Helm chart with support for both standard and template-based installationwrite
upgrade_helm_chartUpgrade an existing Helm chart releasewrite
uninstall_helm_chartUninstall a Helm chart releaseadmin
node_managementManage Kubernetes nodes (cordon, drain, uncordon)admin
port_forwardStart port forwarding to a Kubernetes resourceread
stop_port_forwardStop an active port forward sessionread
exec_in_podExecute a command in a Kubernetes pod or container and return the output. Command must be an array of strings where the first element is the executable and remaining elements are arguments. This executes directly without shell interpretation for security.admin
list_api_resourcesList available API resources in the Kubernetes clusterread
kubectl_genericExecute any kubectl command with the provided arguments and flagsadmin
pingPing the MCP server to check connectivityread

Deploy Kubernetes MCP Server securely

CompleteFlow adds per-user authentication, permission scoping, and audit logging to any MCP server out of the box.

Deploy on CompleteFlow