1. Conduid
  2. Cloud
  3. flux159/mcp-server-kubernetes
MCP server · Cloud

flux159/mcp-server-kubernetes

MCP Server for kubernetes management commands

88Strong

Scored 8 hours ago · breakdown

About flux159/mcp-server-kubernetes

flux159/mcp-server-kubernetes is an MCP server published by Flux159 in the Cloud category: mCP Server for kubernetes management commands. Conduid read 22 tools from its source: exec_in_pod, explain_resource, install_helm_chart, kubectl_apply, kubectl_context, kubectl_create and 16 more. It is published to npm as mcp-server-kubernetes and starts with npx.

The repository has 1.6K stars and 292 forks, is licensed MIT, and its last commit was on 18 Nov 2026. The latest release is v4.2.3 (13 Nov 2026): KUBECONFIG can now list several files, merged the way kubectl does (#397). It follows v4.2.2 (10 Nov 2026), and the 5 most recent releases go back to v4.1.9 (2 Oct 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include cloud-native, devops, k8s and kubernetes.

Install

Claude Code
claude mcp add kubernetes -- npx mcp-server-kubernetes
Run
npx mcp-server-kubernetes
From source
git clone https://github.com/Flux159/mcp-server-kubernetes

Tools (22)

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.
ParameterTypeDescription
command *arrayCommand to execute as an array of strings (e.g. ["ls", "-la", "/app"]). First element is the executable, remaining are arguments. Shell operators like pipes, redirects, or command chaining are not supported - use explicit array format for security.
containerstringContainer name (required when pod has multiple containers)
contextany
name *stringName of the pod to execute the command in
namespaceany
timeoutnumberTimeout for command - 60000 milliseconds if not specified
explain_resourceGet documentation for a Kubernetes resource or field
ParameterTypeDescription
apiVersionstringAPI version to use (e.g. 'apps/v1')
contextany
outputstringOutput format (plaintext or plaintext-openapiv2)
recursivebooleanPrint the fields of fields recursively
resource *stringResource name or field path (e.g. 'pods' or 'pods.spec.containers')
install_helm_chartInstall a Helm chart with support for both standard and template-based installation
ParameterTypeDescription
chart *stringChart name (e.g., 'nginx') or path to chart directory
contextany
createNamespacebooleanCreate namespace if it doesn't exist
name *stringName of the Helm release
namespace *any
repostringHelm repository URL (optional if using local chart path)
useTemplatebooleanUse helm template + kubectl apply instead of helm install (bypasses auth issues)
valuesobjectCustom values to override chart defaults
valuesFilestringPath to values file (alternative to values object). The path is read on the machine running the MCP server, so it is rejected when the server runs over a remote (SSE/Streamable HTTP) transport; use 'values' to pass the values inline instead.
kubectl_applyApply a Kubernetes YAML manifest from a string or file
ParameterTypeDescription
contextany
dryRunany
filenamestringPath to a YAML file to apply (optional - use either manifest or filename). The path is read on the machine running the MCP server, so it is rejected when the server runs over a remote (SSE/Streamable HTTP) transport; use 'manifest' to pass the file's contents instead.
forcebooleanIf true, immediately remove resources from API and bypass graceful deletion
manifeststringYAML manifest to apply
namespaceany
kubectl_contextManage Kubernetes contexts - list, get, or set the current context
ParameterTypeDescription
detailedbooleanInclude detailed information about the context
namestringName of the context to set as current (required for set operation)
operation *stringOperation to perform: list contexts, get current context, or set current context
outputstringOutput format
showCurrentbooleanWhen listing contexts, highlight which one is currently active
kubectl_createCreate Kubernetes resources using various methods (from file or using subcommands)
ParameterTypeDescription
annotationsarrayAnnotations to apply to the resource (e.g. ["key1=value1", "key2=value2"])
commandarrayCommand to run in the container
contextany
dryRunany
filenamestringPath to a YAML file to create resources from. The path is read on the machine running the MCP server, so it is rejected when the server runs over a remote (SSE/Streamable HTTP) transport; use 'manifest' to pass the file's contents instead.
fromFilearrayPath to file for creating configmap/secret (e.g. ["key1=/path/to/file1", "key2=/path/to/file2"]). The path is read on the machine running the MCP server, so it is rejected when the server runs over a remote (SSE/Streamable HTTP) transport; use "fromFileContent" to pass file contents directly instead.
fromFileContentarrayInline file contents for creating a configmap/secret, provided by the client instead of a server-side path (e.g. [{"key": "app.conf", "content": "..."}]). Safe on all transports; use this instead of "fromFile" on remote (SSE/Streamable HTTP) servers.
fromLiteralarrayKey-value pair for creating configmap (e.g. ["key1=value1", "key2=value2"])
imagestringImage to use for the containers in the deployment
labelsarrayLabels to apply to the resource (e.g. ["key1=value1", "key2=value2"])
manifeststringYAML manifest to create resources from
namestringName of the resource to create
namespaceany
outputstringOutput format. One of: json|yaml|name|go-template|template|jsonpath|jsonpath-as-json. The template formats take their template inline, e.g. 'jsonpath={.metadata.name}'.
portnumberPort that the container exposes
replicasnumberNumber of replicas to create for the deployment
resourceTypestringType of resource to create (namespace, configmap, deployment, service, etc.)
schedulestringCron schedule expression for the CronJob (e.g. "*/5 * * * *")
secretTypestringType of secret to create (generic, docker-registry, tls)
serviceTypestringType of service to create (clusterip, nodeport, loadbalancer, externalname)
suspendbooleanWhether to suspend the CronJob
tcpPortarrayPort pairs for tcp service (e.g. ["80:8080", "443:8443"])
validatebooleanIf true, validate resource schema against server schema
kubectl_deleteDelete Kubernetes resources by resource type, name, labels, or from a manifest file
ParameterTypeDescription
allNamespacesbooleanIf true, delete resources across all namespaces
contextany
filenamestringPath to a YAML file to delete resources from (optional). The path is read on the machine running the MCP server, so it is rejected when the server runs over a remote (SSE/Streamable HTTP) transport; use 'manifest' to pass the file's contents instead.
forcebooleanIf true, immediately remove resources from API and bypass graceful deletion
gracePeriodSecondsnumberPeriod of time in seconds given to the resource to terminate gracefully
labelSelectorstringDelete resources matching this label selector (e.g. 'app=nginx')
manifeststringYAML manifest defining resources to delete (optional)
namestringName of the resource to delete
namespaceany
resourceTypestringType of resource to delete (e.g., pods, deployments, services, etc.)
kubectl_describeDescribe Kubernetes resources by resource type, name, and optionally namespace
ParameterTypeDescription
allNamespacesbooleanIf true, describe resources across all namespaces
contextany
name *stringName of the resource to describe
namespaceany
resourceType *stringType of resource to describe (e.g., pods, deployments, services, etc.)
kubectl_genericExecute any kubectl command with the provided arguments and flags
ParameterTypeDescription
allNamespacesbooleanIf true, run the command across all namespaces
argsarrayAdditional command arguments
command *stringThe kubectl command to execute (e.g. patch, rollout, top)
contextany
flagsobjectCommand flags as key-value pairs
namestringResource name
namespaceany
outputFormatstringOutput format (e.g. json, yaml, wide)
resourceTypestringResource type (e.g. pod, deployment)
subCommandstringSubcommand if applicable (e.g. 'history' for rollout)
kubectl_getGet or list Kubernetes resources by resource type, name, and optionally namespace
ParameterTypeDescription
allNamespacesbooleanIf true, list resources across all namespaces
contextany
fieldSelectorstringFilter resources by field selector (e.g. 'metadata.name=my-pod')
labelSelectorstringFilter resources by label selector (e.g. 'app=nginx')
namestringName of the resource (optional - if not provided, lists all resources of the specified type)
namespaceany
outputstringOutput format
resourceType *stringType of resource to get (e.g., pods, deployments, services, configmaps, events, etc.)
sortBystringSort events by a field (default: lastTimestamp). Only applicable for events.
kubectl_logsGet logs from Kubernetes resources like pods, deployments, or jobs
ParameterTypeDescription
containerstringContainer name (required when pod has multiple containers)
contextany
followbooleanFollow logs output (not recommended, may cause timeouts)
labelSelectorstringFilter resources by label selector
name *stringName of the resource
namespace *any
previousbooleanInclude logs from previously terminated containers
resourceType *stringType of resource to get logs from
sincestringShow logs since relative time (e.g. '5s', '2m', '3h')
sinceTimestringShow logs since absolute time (RFC3339)
tailnumberNumber of lines to show from end of logs
timestampsbooleanInclude timestamps in logs
kubectl_patchUpdate field(s) of a resource using strategic merge patch, JSON merge patch, or JSON patch
ParameterTypeDescription
contextany
dryRunany
name *stringName of the resource to patch
namespaceany
patchDataanyPatch data: a JSON object for 'strategic' and 'merge' patches, or an array of JSON Patch operations for patchType 'json'
patchFilestringPath to a file containing the patch data (alternative to patchData). The path is read on the machine running the MCP server, so it is rejected when the server runs over a remote (SSE/Streamable HTTP) transport; use 'patchData' to pass the patch contents instead.
patchTypestringType of patch to apply
resourceType *stringType of resource to patch (e.g., pods, deployments, services)
kubectl_reconnectReconnect to the Kubernetes API server by recreating all API clients. Use this after cluster upgrades (e.g., EKS control plane upgrades that rotate ENIs/IPs) to force fresh DNS resolution and new TCP connections.
kubectl_rolloutManage the rollout of a resource (e.g., deployment, daemonset, statefulset)
ParameterTypeDescription
contextany
name *stringName of the resource
namespace *any
resourceType *stringType of resource to manage rollout for
revisionnumberRevision to rollback to (for undo subcommand)
subCommand *stringRollout subcommand to execute
timeoutstringThe length of time to wait before giving up (e.g., '30s', '1m', '2m30s')
toRevisionnumberRevision to roll back to (for history subcommand)
watchbooleanWatch the rollout status in real-time until completion
kubectl_scaleScale a Kubernetes deployment
ParameterTypeDescription
contextany
name *stringName of the deployment to scale
namespaceany
replicas *numberNumber of replicas to scale to
resourceTypestringResource type to scale (deployment, replicaset, statefulset)
list_api_resourcesList the API resources available in the cluster
ParameterTypeDescription
apiGroupstringAPI group to filter by
contextstringKubeconfig Context to use for the command (optional - defaults to null)
namespacedbooleanIf true, only show namespaced resources
outputstringOutput format (wide, name, or no-headers)
verbsarrayList of verbs to filter by
node_managementManage Kubernetes nodes with cordon, drain, and uncordon operations
ParameterTypeDescription
confirmDrainbooleanExplicit confirmation to drain the node (required for drain operation)
deleteLocalDatabooleanDelete local data even if emptyDir volumes are used (for drain operation)
dryRunbooleanShow what would be done without actually doing it (for drain operation)
forcebooleanForce the operation even if there are pods not managed by a ReplicationController, ReplicaSet, Job, DaemonSet or StatefulSet (for drain operation)
gracePeriodnumberPeriod of time in seconds given to each pod to terminate gracefully (for drain operation). If set to -1, uses the kubectl default grace period.
ignoreDaemonsetsbooleanIgnore DaemonSet-managed pods (for drain operation)
nodeNamestringName of the node to operate on (required for cordon, drain, uncordon)
operation *stringNode operation to perform
timeoutstringThe length of time to wait before giving up (for drain operation, e.g., '5m', '1h')
pingVerify that the counterpart is still responsive and the connection is alive.
port_forwardForward a local port to a port on a Kubernetes resource
ParameterTypeDescription
localPort *number
namespacestring
resourceName *string
resourceType *string
targetPort *number
stop_port_forwardStop a port-forward process
ParameterTypeDescription
id *string
uninstall_helm_chartUninstall a Helm chart release
ParameterTypeDescription
contextany
name *stringName of the Helm release to uninstall
namespace *any
upgrade_helm_chartUpgrade an existing Helm chart release
ParameterTypeDescription
chart *stringChart name or path to chart directory
contextany
name *stringName of the Helm release to upgrade
namespace *any
repostringHelm repository URL (optional if using local chart path)
valuesobjectCustom values to override chart defaults
valuesFilestringPath to values file (alternative to values object). The path is read on the machine running the MCP server, so it is rejected when the server runs over a remote (SSE/Streamable HTTP) transport; use 'values' to pass the values inline instead.

Security checks

Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.2K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by bun.lockb.
  • ✓No dynamic code executionScanned 46 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdio, Streamable HTTP and HTTP with SSEsrc/index.ts:9, src/utils/streamable-http.ts:3, src/utils/sse.ts:3
Starts other programs
2 callssrc/security/kubectl-flags.ts:591, src/tools/port_forward.ts:20
Outbound network calls
No outbound network calls
Writes or deletes files
5 callssrc/utils/kubernetes-manager.ts:468, src/utils/kubernetes-manager.ts:480, src/utils/temp-file.ts:21
Lockfile
bun.lockb

Pattern matches on the source text of 46 files: places to read, not proof of what the code does at run time.

Releases

v4.2.3Release v4.2.3 · 13 Nov 2026KUBECONFIG can now list several files, merged the way kubectl does (#397). Thanks to @lbarrosby for the contribution!
v4.2.2Release v4.2.2 · 10 Nov 2026Adding context parameter to helm tools. Thanks to @lbarrosby for the contribution!
v4.2.1Release v4.2.1 · 26 Oct 2026Tool arguments are now validated against each tool's input schema before running, with errors that name the argument, the expected type or values, and what was received (#393).
v4.2.0Release v4.2.0 · 26 Oct 2026Hardening of kubectl argument handling: a verb policy for kubectl_generic (#387), fail-closed argv checks (#388), kubectl_create input validation (#389), flag-shaped operand checks in the remaining tools (#390), private temp files (#391),…
v4.1.9Release v4.1.9 · 2 Oct 2026`exec_in_pod` is now classified as a destructive tool, so not allowed under ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS. @rr-paras-patel

README

The repository's README runs to about 2.2K words, fetched 5 days ago. The original in the repository is authoritative.

Read full README
Questions

About flux159/mcp-server-kubernetes

How do I install flux159/mcp-server-kubernetes?

In Claude Code, run claude mcp add kubernetes -- npx mcp-server-kubernetes. Other MCP clients take the command after "--" in their server configuration.

Is flux159/mcp-server-kubernetes safe to use with an AI agent?

Its trust score is 88 out of 100 (strong). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 46 source files found that it serves MCP over stdio, Streamable HTTP and HTTP with SSE, starts other programs (2 calls) and writes or deletes files (5 calls). Its dependencies are pinned by bun.lockb. It has no ConduID identity yet, so agent calls to it are not receipted.

Is flux159/mcp-server-kubernetes still maintained?

Yes — the latest release is v4.2.3 (13 Nov 2026), and the last commit was 14 days ago. The repository has 1.6K stars and 11 open issues.

What tools does flux159/mcp-server-kubernetes provide?

Conduid read 22 tools from the source: exec_in_pod, explain_resource, install_helm_chart, kubectl_apply, kubectl_context, kubectl_create, kubectl_delete, kubectl_describe and 14 more. 20 of them publish their parameters, listed under Tools above.

What license is flux159/mcp-server-kubernetes released under?

The repository declares the MIT license. That applies to the latest release, v4.2.3, as well.