Skip to main content
SkillTotal

Is mcp-server-kubernetes safe?

No malicious indicators - review capabilities before installing
Notable — review in context (a capability is not a malicious indicator):
  • Node.js shell/command execution
  • Node.js filesystem write/delete
  • Node.js network egress

What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.

mcp-server-kubernetes is an npm package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: filesystem write, mcp tools detected, network egress, scoped identity and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).

mcp-server-kubernetes 4.2.1

npm package · npm:mcp-server-kubernetes
LOW
0
/ 100 risk score
Snapshot · scanned Nov 1, 2026 · mcp-server-kubernetes@4.2.1 · engine 0.89.0 / ruleset 88

Get notified when this component changes

Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.

Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of mcp-server-kubernetes's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
filesystem writemcp tools detectednetwork egressscoped identityshell execution

Behavioral traits

How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.

Tool surface
Tool Usage
Execution authority
Tool Access Control / Direct Tool Access
Filesystem reach
Tool Execution Context
Network egress
Interaction & Communication / Direct Communication
Scoped / least-privilege identity
Tool Execution Context / Least-Privilege Service Identity

Findings (5)

CapabilityNode.js shell/command executionnot scored · severity highST-SHELL-NODE

The component can run operating-system commands or spawn processes.

import { type ExecFileSyncOptionsWithStringEncoding } from "child_process";
import { execFileSync, } from "child_process";
import { spawn } from "child_process";
const process = spawn("kubectl", args);

Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.

Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; prefer execFile with an argument array.

CapabilityNode.js filesystem write/deletenot scored · severity mediumST-FS-NODE-WRITE

The component writes or deletes files on disk.

fs.writeFileSync(tempKubeconfigPath, kubeconfigYaml, {
fs.unlinkSync(tempKubeconfigPath);
fs.writeFileSync(file, contents, { flag: "wx", mode: 0o600 });
fs.rmSync(dir, { recursive: true, force: true });
fs.rmSync(dir, { recursive: true, force: true });

Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.

Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.

CapabilityNode.js network egressnot scored · severity mediumST-NET-NODE

The component makes outbound network requests.

Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.

Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.

CapabilityScoped / least-privilege identitynot scored · severity lowST-AUTH-SCOPED

A short-lived, scoped, assumed identity was detected - an STS AssumeRole / session token, a cloud managed or workload identity, an impersonated service account, a projected Kubernetes service-account token, or a dynamic-secret broker. Tools authenticate with a narrowly-scoped credential that expires, rather than a long-lived embedded service credential.

const serviceAccountPath = "/var/run/secrets/kubernetes.io/serviceaccount/token";

Fix: A scoped, short-lived identity is the smallest-blast-radius execution context. Confirm the assumed role / requested scope grants only the permissions the tool needs, and that the token lifetime is minimal.

CapabilityMCP tool surface detectednot scored · severity lowST-MCP-DETECTED

An MCP tool surface (manifest or tool definitions) was found.

const server = new Server({
server.setRequestHandler(ListToolsRequestSchema, async () => {
server.setRequestHandler(CallToolRequestSchema, withTelemetry(async (request) => {
const transport = new StdioServerTransport();
const transport = new SSEServerTransport("/messages", res, {
const transport = new StreamableHTTPServerTransport({

Why it matters: Just context — review which tools it offers and their permissions.

Fix: Review the declared MCP tools and their permissions.

How attackers abuse these capabilities

Interactive labs on the attack class behind the rules above. They show the technique, not anything found in mcp-server-kubernetes.

Check the next package before your agent installs it

The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.

Check your own component

Run the same evidence-backed scan on any MCP server, agent skill, or package.

Scan your own component

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →