Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

mcp-server-kubernetes

by flux159/mcp-server-kubernetesMIT licenceAudited 12 Oct 2026 · source c37fcfa1e04a

npm mcp-server-kubernetes 4.1.9ssestdiostreamable-http★ 1,597
✕BLOCKGrade D · 69/100 · 12 Oct 2026 · c37fcfa

Is it safe? No — BLOCK, grade D (69/100). It exposes 28 tools: 17 read, 9 write and 2 destructive. The audit recorded 29 findings (0 critical, 3 high, 5 medium, 19 low). Maintainer's description: MCP Server for kubernetes management commands

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “mcp-server-kubernetes (Flux159/mcp-server-kubernetes)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/flux159/mcp-server-kubernetes

Why this is BLOCK. The audit found 0 critical and 3 high findings; the most severe is Code injection at src/tools/kubectl-get.ts:578. Each finding is listed below with its file and line.

Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.

Trust audit

Audit 0.4.1 · full source read 12 Oct 2026

Trust score69/100✕BLOCK D
0 critical3 high5 medium19 low2 info

29 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared1 observation
  • NetworkDeclared5 observations
  • ShellDeclared1 observation
  • DependenciesPinnedNothing floats
  • SecretsFoundSee the findings

Findings (29)

Sorted by severity · the 25 most severe of 29 are listed

HIGHCode injectioncode.deserialize · src/tools/kubectl-get.ts:578
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
const parsed = yaml.load(output);
Why
deserialises untrusted bytes into live objects
Fix
use json or yaml.safe_load
HIGHNetwork egressnet.metadata_ip · helm-chart/values.yaml:619
F-04 Network egressCWE-200 · CWE-319Layer L1
#   - "199.36.153.8/30" # metadata.google.internal
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
HIGHNetwork egressnet.metadata_ip · helm-chart/values.yaml:625
F-04 Network egressCWE-200 · CWE-319Layer L1
# Cloud provider metadata service (AWS/GCP use same IP: 169.254.169.254)
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
MEDIUMInventory / provenanceinv.binary · bun.lockb
F-13 Inventory / provenanceCWE-1104Layer L0
bun.lockb
Why
a compiled or binary member cannot be reviewed from source
Fix
ship source, or explain the binary in the README
MEDIUMNetwork egressnet.beacon_words · src/security/kubectl-flags.ts:232
F-04 Network egressCWE-200 · CWE-319Layer L1
`act on the MCP server's own host, which would allow exfiltration of ` +
Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · helm-chart/examples/custom-kubeconfig.yaml:327
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · helm-chart/examples/custom-kubeconfig.yaml:333
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
kubectl_delete, uninstall_helm_chart
Why
2 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenanceinv.hidden_file · .mcpbignore
F-13 Inventory / provenanceCWE-1104Layer L0
.mcpbignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.credential_store · .github/workflows/cd.yml:56
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
sed -i 's|https://192.168.49.2:8443|http://localhost:8080|g' ~/.kube/config
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · .github/workflows/cd.yml:59
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
grep "server:" ~/.kube/config
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · .github/workflows/cd.yml:73
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
sed -i 's|http://localhost:8080|https://192.168.49.2:8443|g' ~/.kube/config
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · .github/workflows/ci.yml:45
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
sed -i 's|https://192.168.49.2:8443|http://localhost:8080|g' ~/.kube/config
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · .github/workflows/ci.yml:48
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
grep "server:" ~/.kube/config
Why
touches a credential store
Fix
—
LOWNetwork egressnet.metadata_ip · helm-chart/examples/secure-networkpolicy.yaml:142
F-04 Network egressCWE-200 · CWE-319Layer L1
cidr: 169.254.169.254/32  # AWS metadata service
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · helm-chart/examples/secure-networkpolicy.yaml:161
F-04 Network egressCWE-200 · CWE-319Layer L1
cidr: 169.254.169.254/32  # GCP metadata service
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · helm-chart/examples/secure-networkpolicy.yaml:193
F-04 Network egressCWE-200 · CWE-319Layer L1
#    - Metadata services (169.254.169.254)
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.raw_ip · tests/kubectl-flags-security.unit.test.ts:250
F-04 Network egressCWE-200 · CWE-319Layer L1
server: "https://127.0.0.1:19001",
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/kubectl-flags-security.unit.test.ts:354
F-04 Network egressCWE-200 · CWE-319Layer L1
assertSafeArgv(["get", "pods", "-Ashttp://127.0.0.1:59999"])
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/kubectl-flags-security.unit.test.ts:572
F-04 Network egressCWE-200 · CWE-319Layer L1
name: "--server=https://127.0.0.1:19012",
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/kubectl-flags-security.unit.test.ts:595
F-04 Network egressCWE-200 · CWE-319Layer L1
resourceType: "--server=https://127.0.0.1:19099",
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.tls_off · helm-chart/examples/secure-networkpolicy.yaml:200
F-04 Network egressCWE-200 · CWE-319Layer L1
#    kubectl exec -it deployment/mcp-server -- curl -k https://kubernetes.default/api
Why
certificate verification is disabled
Fix
leave verification on
LOWNetwork egressnet.tls_off · tests/kubectl-flags-security.unit.test.ts:32
F-04 Network egressCWE-200 · CWE-319Layer L1
test("rejects --insecure-skip-tls-verify", () => {
Why
certificate verification is disabled
Fix
leave verification on
LOWNetwork egressnet.tls_off · tests/kubectl-flags-security.unit.test.ts:124
F-04 Network egressCWE-200 · CWE-319Layer L1
test("rejects --insecure-skip-tls-verify=true in args", () => {
Why
certificate verification is disabled
Fix
leave verification on

Tools it exposes

28 declared in source · 2 destructive

17 read9 write2 destructive

2 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolWhat it doesRisk
kubectl_deleteDelete Kubernetes resources by resource type, name, labels, or from a manifest filedestructive
uninstall_helm_chartUninstall a Helm chart releasedestructive
create_deploymentCreate a new Kubernetes deploymentwrite
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.write
install_helm_chartInstall a Helm chart with support for both standard and template-based installationwrite
kubectl_applyApply a Kubernetes YAML manifest from a string or filewrite
kubectl_contextManage Kubernetes contexts - list, get, or set the current contextwrite
kubectl_createCreate Kubernetes resources using various methods (from file or using subcommands)write
kubectl_genericExecute any kubectl command with the provided arguments and flagswrite
kubectl_patchUpdate field(s) of a resource using strategic merge patch, JSON merge patch, or JSON patchwrite
stop_port_forwardStop a port-forward processwrite
cleanupCleanup all managed resourcesread
explain_resourceGet documentation for a Kubernetes resource or fieldread
k8s-diagnoseDiagnose Kubernetes Resources.read
keywordA keyword to search pod/node names.read
kubectl_describeDescribe Kubernetes resources by resource type, name, and optionally namespaceread
kubectl_getGet or list Kubernetes resources by resource type, name, and optionally namespaceread
kubectl_logsGet logs from Kubernetes resources like pods, deployments, or jobsread
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.read
kubectl_rolloutManage the rollout of a resource (e.g., deployment, daemonset, statefulset)read
kubectl_scaleScale a Kubernetes deploymentread
list_api_resourcesList the API resources available in the clusterread
list_namespacesList all namespacesread
namespaceOptional: Specify a namespace to narrow down the search.read
node_managementManage Kubernetes nodes with cordon, drain, and uncordon operationsread
pingVerify that the counterpart is still responsive and the connection is alive.read
port_forwardForward a local port to a port on a Kubernetes resourceread
upgrade_helm_chartUpgrade an existing Helm chart releaseread

Audit history

  1. ✕BLOCK D 69 / 100

    First audit · c37fcfa1e04a

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK DMODELSATLASBLOCK · D

A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.

Questions about mcp-server-kubernetes

What is the mcp-server-kubernetes MCP server?
MCP Server for kubernetes management commands
What tools does mcp-server-kubernetes expose?
28 in total: 17 read-only, 9 that write, and 2 that can delete or overwrite (kubectl_delete, uninstall_helm_chart). Every one is listed on this page with its risk.
Is mcp-server-kubernetes safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 3 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does mcp-server-kubernetes need?
It reads K8S_TOKEN, MASK_SECRETS and MCP_AUTH_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does mcp-server-kubernetes run?
It speaks sse, stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as mcp-server-kubernetes at 4.1.9.
How current is this page?
The grade is for one exact copy of the source (c37fcfa1e04a), read on 2026-10-12. The repository is watched and re-audited when it changes.
I already installed mcp-server-kubernetes. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • Flux159/mcp-server-kubernetes on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit c37fcfa1e04aObserved · 12 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.