MCP server · Audited from source
mcp-server-kubernetes
by flux159/mcp-server-kubernetesMIT licenceAudited 12 Oct 2026 · source c37fcfa1e04a
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
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
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
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
# - "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
# 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
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
`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
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
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
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.symlink · AGENTS.md
AGENTS.md
- Why
- link not followed
- Fix
- —
LOWFilesystem / pathfs.credential_store · .github/workflows/cd.yml:56
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
grep "server:" ~/.kube/config
- Why
- touches a credential store
- Fix
- —
LOWFilesystem / pathfs.credential_store · .github/workflows/cd.yml:73
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
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
grep "server:" ~/.kube/config
- Why
- touches a credential store
- Fix
- —
LOWNetwork egressnet.metadata_ip · helm-chart/examples/secure-networkpolicy.yaml:142
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
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
# - 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
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
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
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
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
# 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
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
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
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.
| Tool | What it does | Risk |
|---|---|---|
kubectl_delete | Delete Kubernetes resources by resource type, name, labels, or from a manifest file | destructive |
uninstall_helm_chart | Uninstall a Helm chart release | destructive |
create_deployment | Create a new Kubernetes deployment | write |
exec_in_pod | Execute 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_chart | Install a Helm chart with support for both standard and template-based installation | write |
kubectl_apply | Apply a Kubernetes YAML manifest from a string or file | write |
kubectl_context | Manage Kubernetes contexts - list, get, or set the current context | write |
kubectl_create | Create Kubernetes resources using various methods (from file or using subcommands) | write |
kubectl_generic | Execute any kubectl command with the provided arguments and flags | write |
kubectl_patch | Update field(s) of a resource using strategic merge patch, JSON merge patch, or JSON patch | write |
stop_port_forward | Stop a port-forward process | write |
cleanup | Cleanup all managed resources | read |
explain_resource | Get documentation for a Kubernetes resource or field | read |
k8s-diagnose | Diagnose Kubernetes Resources. | read |
keyword | A keyword to search pod/node names. | read |
kubectl_describe | Describe Kubernetes resources by resource type, name, and optionally namespace | read |
kubectl_get | Get or list Kubernetes resources by resource type, name, and optionally namespace | read |
kubectl_logs | Get logs from Kubernetes resources like pods, deployments, or jobs | read |
kubectl_reconnect | Reconnect 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_rollout | Manage the rollout of a resource (e.g., deployment, daemonset, statefulset) | read |
kubectl_scale | Scale a Kubernetes deployment | read |
list_api_resources | List the API resources available in the cluster | read |
list_namespaces | List all namespaces | read |
namespace | Optional: Specify a namespace to narrow down the search. | read |
node_management | Manage Kubernetes nodes with cordon, drain, and uncordon operations | read |
ping | Verify that the counterpart is still responsive and the connection is alive. | read |
port_forward | Forward a local port to a port on a Kubernetes resource | read |
upgrade_helm_chart | Upgrade an existing Helm chart release | read |
Safer alternatives
All cloud & infra servers →shinzo-labs/shinzo-ts
TypeScript SDK for MCP server observability, built on OpenTelemetry. Gain insight into agent usage patterns, contextualize tool calls, and analyze server performance across platforms. Integrate with any OpenTelemetry ingest service including the Shinzo platform.
parthkapoor-dev/devex
⚡️ Devex — A Fast, Secure, and Scalable Repl-as-a-Service Platform built for Developers 🚀
dmayboroda/minima
On-premises conversational RAG with configurable containers
Audit history
- ✕BLOCK D 69 / 100
First audit ·
c37fcfa1e04a
README badge
Badges show the current verdict, BLOCK included
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?
What tools does mcp-server-kubernetes expose?
Is mcp-server-kubernetes safe to connect to an agent?
What credentials does mcp-server-kubernetes need?
How does mcp-server-kubernetes run?
How current is this page?
I already installed mcp-server-kubernetes. What should I do?
Can the verdict change?
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.
- What is the mcp-server-kubernetes MCP server?
- What tools does mcp-server-kubernetes expose?
- Is mcp-server-kubernetes safe to connect to an agent?