Kubernetes MCP servers compared: containers vs Flux159

·

The short answer

Both servers let an AI assistant read and change a Kubernetes cluster. They differ in how you limit what the assistant can touch, how the server logs in to the cluster, and how you install it. The containers README calls its own limits "best-effort guardrails" and names Kubernetes RBAC as "the access control to rely on."

OpsMCP's advice for either server is the same. Give the server a cluster login that can only do what you want the assistant to do, then use the server's own settings as a second layer.

containers/kubernetes-mcp-server Flux159 mcp-server-kubernetes
Read-only read_only = true in the config file. Off by default ALLOW_ONLY_READONLY_TOOLS=true. A separate ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS mode turns off deletes but still allows create and update
Limit what it can touch denied_resources blocks resource kinds, such as Secret. Toolsets and tool lists turn groups or single tools on or off ALLOWED_TOOLS lists the tools to turn on. No setting to block a resource kind is described
Login to the cluster kubeconfig, in-cluster, several clusters through kubeconfig contexts, and company sign-in (OAuth/OIDC) when the server is reached over the network (HTTP mode) kubeconfig, environment variables, or in-cluster. A shared header token for HTTP mode
Install npx or uvx (command-line installers), release binaries, or a Helm chart (a Kubernetes install package) npx, Claude Desktop extension. A Docker image and a Helm chart appear in the advanced docs
Latest release (checked 2026-11-13) v0.1.2, November 4, 2026 v4.2.3, November 12, 2026
Published security advisories 1 in the repo's list 11 in the repo's list, plus GHSA-wmg3-h8mf-wgvr in the GitHub Advisory Database

A longer advisory list is a record of bugs that were found and fixed. On its own it does not tell you which server has fewer problems today.

What each server is

An MCP server is a small program that lets an AI assistant use a tool. Here the tool is a Kubernetes cluster, which is a group of machines that run an organization's apps in containers.

containers/kubernetes-mcp-server is published under the containers organization on GitHub. Its packages are named kubernetes-mcp-server on npm and PyPI. It works with Kubernetes and OpenShift and talks to the cluster's API directly. OpsMCP lists it at /servers/containers-kubernetes-mcp-server.

Flux159/mcp-server-kubernetes is published by the GitHub account Flux159. Its npm package is mcp-server-kubernetes. It runs kubectl on your machine to do its work, so kubectl must be installed. Helm is optional. OpsMCP lists it at /servers/flux159-mcp-server-kubernetes.

The two names are near mirror images. kubernetes-mcp-server is the containers project and mcp-server-kubernetes is the Flux159 project. Check the package name in your config before you read an advisory.

A third Kubernetes server, dockndevai mcp-kubernetes, is also in the OpsMCP directory. This page does not cover it.

Read-only mode

A toolset is a named group of tools that you switch on or off together. Both servers let you hide tools, and both have a read-only setting. They work differently.

On the containers server, read_only = true goes in the TOML config file and is off by default. When it is on, the server only registers tools marked as read-only. The configuration docs add one limit. Those read-only tools "can still read any object that identity can get, including Secrets." A separate disable_destructive = true setting hides tools marked as destructive and keeps other write tools.

The containers README says:

read_only and denied_resources are best-effort guardrails. Kubernetes RBAC on the identity this server authenticates as is the access control to rely on.

The Flux159 server has three modes, set with environment variables. If you set more than one, the advanced README says ALLOWED_TOOLS wins first, then ALLOW_ONLY_READONLY_TOOLS, then ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS.

Non-destructive is not the same as read-only. In that mode the main README says create and update tools stay on, including kubectl_apply, kubectl_create, kubectl_scale, kubectl_patch, kubectl_rollout, Helm install and upgrade, and port_forward.

Versions before 3.6.0 had a bug in these modes. GHSA-cr22-wjx7-2w6m says the modes hid tools from the list but did not stop a client from calling them by name. It was fixed in 3.6.0. If you rely on these modes, run 3.6.0 or later.

Limiting what it can touch

RBAC (role-based access control) is Kubernetes' own system for deciding which account may do what. A ServiceAccount is a login made for a program instead of a person.

The containers server has a denied_resources list in its config file. Each entry names a resource kind, and the server rejects calls for it. The README example blocks Secret. The configuration docs set out what it does not cover. It matches on kind and API version only, so it ignores namespace and object name. Tools that use their own connection, such as the Kiali, NetObserv, Prometheus, Loki, and Tempo tools, do not check the list. You can also pick toolsets. Only config and core are on by default.

We found no setting in the Flux159 READMEs that blocks a resource kind or a namespace. You can limit it by tool with ALLOWED_TOOLS. It also masks the values of Secrets in kubectl get secrets output by default. The advanced README says this "does not mask secrets that may appear in logs or other operations."

The containers project has a Kubernetes setup guide for production. It creates a dedicated ServiceAccount and binds it to Kubernetes' built-in view role, which gives read-only access. The cluster enforces that limit no matter which tools the server offers.

The Flux159 READMEs do not give RBAC advice. OpsMCP's advice is to apply the same step there. Make a ServiceAccount with only the rights you want the assistant to have, and point the server at a kubeconfig for that account.

How it logs in to the cluster

A kubeconfig is the file on your computer that holds the cluster address and your login.

The containers server can use your kubeconfig or the in-cluster login it gets when it runs inside a pod. It can work with several clusters through the contexts in your kubeconfig. In HTTP mode it supports company sign-in through OAuth or OIDC, which are standard ways to log in through a sign-in system instead of a stored password or token. The project has setup guides for Keycloak and Microsoft Entra ID. Version 0.1.2 fixed a bug so that clients who log in with a bearer token keep the cluster context they selected.

The Flux159 server reads ~/.kube/config and uses your current kubectl context by default. The advanced README lists other ways, in this order. A full kubeconfig can be passed as YAML or JSON in an environment variable. A server address and token can go in K8S_SERVER and K8S_TOKEN. After those come in-cluster login when it runs in a pod, a custom path in KUBECONFIG_PATH, the standard KUBECONFIG variable, and finally the default file. K8S_CONTEXT and K8S_NAMESPACE override the context and the default namespace. For HTTP mode, setting MCP_AUTH_TOKEN makes the server require a matching X-MCP-AUTH header on each request. The advanced README suggests a reverse proxy with OAuth or OIDC for production servers that face the internet.

If you plan to use company sign-in, OpsMCP's guide on MCP client registration explains what changed in the MCP spec.

Installing each one

These commands are copied from each project's README as of 2026-11-12. Check the current README before you run them.

containers/kubernetes-mcp-server:

npx -y kubernetes-mcp-server@latest
uvx kubernetes-mcp-server@latest
helm install kubernetes-mcp-server oci://ghcr.io/containers/charts/kubernetes-mcp-server

The project also ships native binaries for Linux, macOS, and Windows on its releases page. The README says a container image exists but does not name it here.

Flux159 mcp-server-kubernetes:

npx mcp-server-kubernetes

The README also offers a Claude Desktop extension, which you can download as an .mcpb file from the releases page. The advanced README shows a Docker image, flux159/mcp-server-kubernetes, and a section on its Helm chart. HTTP mode is off until you set ENABLE_UNSAFE_STREAMABLE_HTTP_TRANSPORT=1.

Both READMEs show @latest or no version at all. To control which version runs, pin it. Our guide on checking which version of an MCP server you are running shows how.

Releases and security advisories

A security advisory (GHSA) is a public notice on GitHub that a version had a security bug and which version fixes it.

containers/kubernetes-mcp-server:

Flux159 mcp-server-kubernetes:

For each advisory, make sure the version you run is at or above the fixed version it lists. Our October 2026 advisory roundup has more on GHSA-6963-p4fp-2wxw.

How to choose

Answer these for your own setup. OpsMCP does not pick a server for you.

How OpsMCP scores servers is on /methodology/. More Kubernetes servers are on /systems/kubernetes.

Frequently asked questions

What is the difference between kubernetes-mcp-server and mcp-server-kubernetes?

They are two separate projects with near mirror image names. kubernetes-mcp-server is published by the containers organization on GitHub and talks to the cluster API directly. mcp-server-kubernetes is published by Flux159 and runs kubectl on your machine.

Does read-only mode stop the AI assistant from changing my cluster?

It hides the tools that change things. The containers README lists its read-only setting among its "best-effort guardrails" and names RBAC as the control to rely on. The cluster login you give the server sets the real limit.

Can I stop a Kubernetes MCP server from reading Secrets?

On the containers server, add Secret to denied_resources. Its docs say tools that use their own connection, such as Kiali or Prometheus tools, do not check that list. On either server, a ServiceAccount without permission to read Secrets stops it at the cluster.

Do I still need Kubernetes RBAC if the server has a read-only mode?

Yes. The containers project says RBAC is the control to rely on, and Flux159 had a bug before 3.6.0 where its modes hid tools without blocking them. RBAC is enforced by the cluster itself.

How do I check which version of a Kubernetes MCP server I am running?

Look at the package name and version in your AI client's config, then check what that command actually starts. Our guide on checking which version of an MCP server you are running walks through npx, uvx, and Docker.

Which advisories affect mcp-server-kubernetes?

The Flux159 repo lists 11 advisories as of 2026-11-12, and GHSA-wmg3-h8mf-wgvr is in the GitHub Advisory Database. The most recently published, as of 2026-11-12, is GHSA-6963-p4fp-2wxw, fixed in 4.1.1. Check your version against the fixed version in each one.

Sources (opened 2026-11-12)