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_onlyanddenied_resourcesare 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.
ALLOW_ONLY_READONLY_TOOLS=truekeeps onlykubectl_get,kubectl_describe,kubectl_logs,kubectl_context,explain_resource,list_api_resources, andping.ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS=trueturns offkubectl_delete,uninstall_helm_chart,cleanup,cleanup_pods,node_management,kubectl_generic, andexec_in_pod.ALLOWED_TOOLStakes a comma-separated list of tool names and turns on only those. The server will not start if a name in the list is wrong.
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.
Vet MCP servers with a one-page checklist
The free checklist turns the OpsMCP grading rules into checks you can run yourself. It comes with OpsMCP Weekly, one email each Tuesday.
One email a week. You can unsubscribe from any issue, and we never sell your address.
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:
- Latest release: v0.1.2, published November 4, 2026.
- GHSA-xq9m-mrj7-jv98, "Kiali Toolset Status Probes can leak Bearer Token." Moderate, CVSS 6.8. Affects 0.1.0 through 0.1.1. Patched in 0.1.2. Published November 4, 2026. It applies only when the Kiali toolset is on, the Kiali URL is not set, and an experimental setting that is off by default is turned on. No CVE ID is listed.
- Full list: repository advisories.
Flux159 mcp-server-kubernetes:
- Latest release: v4.2.3, published November 12, 2026.
- GHSA-6963-p4fp-2wxw, "kubectl_patch is missing the remote-transport path guard applied to every sibling tool, allowing server-side arbitrary file read via patchFile." High, CVSS 7.1. Affects 4.1.0 and below. Patched in 4.1.1 and above. Published October 2, 2026. CVE-2026-104776.
- GHSA-wmg3-h8mf-wgvr, "mcp-server-kubernetes argument injection can expose Kubernetes cluster credentials." Critical, scored 9.8 under CVSS 3.1 and 9.3 under CVSS 4.0. Affects versions below 3.9.0. Patched in 3.9.0. Published July 10, 2026. CVE-2026-61459. This one is in the GitHub Advisory Database. It is not in the repo's own list.
- GHSA-cr22-wjx7-2w6m, the tool filtering bug covered above. High, CVSS 8.8. Affects versions below 3.6.0. Patched in 3.6.0. CVE-2026-46519.
- Full list: repository advisories, 11 entries as of 2026-11-12.
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.
- Do you need to block whole resource kinds, such as Secrets? The containers server has
denied_resources. Flux159 does not describe one. - Do you want people to log in through your company sign-in system? The containers server documents OAuth and OIDC in HTTP mode.
- Do you want to name the exact tools the assistant gets? Both servers can do this.
- Does your team already have
kubectlon the machine that will run the server? Flux159 needs it. - Which install method fits your team: npx, uvx, a binary, a container, or a Helm chart?
- Which version are you running, and is it at or above every fixed version listed above?
- Have you set up a ServiceAccount with only the rights you want the assistant to have?
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.
Get the MCP server security checklist
OpsMCP Weekly is one email each Tuesday with score changes and new security advisories for the IT MCP servers OpsMCP grades. Sign up, confirm your address, and the free one-page checklist is yours.
One email a week. You can unsubscribe from any issue, and we never sell your address.
Sources (opened 2026-11-12)
- containers README: https://github.com/containers/kubernetes-mcp-server/blob/main/README.md
- containers configuration docs (Cluster Authorization,
read_only,denied_resources): https://github.com/containers/kubernetes-mcp-server/blob/main/docs/configuration.md - containers Kubernetes setup guide: https://github.com/containers/kubernetes-mcp-server/blob/main/docs/getting-started-kubernetes.md
- containers releases and v0.1.2 notes: https://github.com/containers/kubernetes-mcp-server/releases/tag/v0.1.2
- containers advisories: https://github.com/containers/kubernetes-mcp-server/security/advisories
- Flux159 README: https://github.com/Flux159/mcp-server-kubernetes/blob/main/README.md
- Flux159 ADVANCED_README: https://github.com/Flux159/mcp-server-kubernetes/blob/main/ADVANCED_README.md
- Flux159 releases: https://github.com/Flux159/mcp-server-kubernetes/releases
- Flux159 advisories: https://github.com/Flux159/mcp-server-kubernetes/security/advisories
- GHSA-wmg3-h8mf-wgvr: https://github.com/advisories/GHSA-wmg3-h8mf-wgvr