Kubernetes MCP server enterprise setup: OAuth, Helm chart and observability

Whether the community containers/kubernetes-mcp-server meets your sign-in, deployment and audit requirements, what must be built around it, and where the gaps are.

On this page

Can the Kubernetes MCP server sign users in with our identity provider?

A platform or security team deciding whether an AI agent may reach a cluster needs to know first whether each person signs in with their own identity. The containers/kubernetes-mcp-server project supports OAuth and OIDC sign-in only in HTTP mode, and it is a community Apache-2.0 project, not a Kubernetes release. Per-user audit depends on passthrough identity: if every user is mapped to one shared ServiceAccount, the cluster cannot tell who did what. The project's Microsoft Entra ID guide states that combining require_oauth = true with cluster_auth_mode = kubeconfig is rejected at startup for this reason. The review covers three areas: sign-in, deployment and telemetry. There is no edition or paid tier. The project is open source, so every capability is assembled by your team or a partner you hire, and support comes only from whoever runs it.

Start by confirming the transport. The configuration reference says that setting require_oauth = true with an empty port (stdio) fails at load, so an OAuth design only applies when the server runs as an HTTP service that your identity provider can reach. The reference also shows a Keycloak authorization_url example with oauth_audience, and a token_exchange block that uses the rfc8693 strategy with client authentication settings. Ask who owns the identity provider application, which audience and scopes the tokens carry, and how token exchange is audited. The Keycloak OIDC guide carries a warning that OIDC and OAuth setup is a preview feature whose configuration fields may change, and it recommends development and testing use only. Treat that as a blocker for production until your team has reviewed the current behavior in your own environment.

Check the default before you rely on it. The Entra ID guide says that when cluster_auth_mode is not set, the server uses passthrough: the Authorization header is forwarded to the cluster when present, and kubeconfig credentials are used when it is absent. A missing header therefore falls back to whatever identity the server's kubeconfig carries, which is the outcome your audit design must prevent. Store config.toml and any key or token files in a Kubernetes Secret rather than a ConfigMap, as the configuration reference recommends, and confirm that client secrets appear redacted in the logged configuration. Ask your team to test a request with no bearer token and confirm it is refused, then compare the cluster audit log entries against the signed-in user.

Which sign-in, deployment and audit capabilities are built in

This table compares the sign-in, deployment and audit capabilities of the community containers/kubernetes-mcp-server project and what each one needs before a team relies on it. Read the status column first, because OAuth and OIDC are for HTTP mode only and the Keycloak path is marked as preview. The main takeaway is that per-user identity depends on choosing passthrough authentication rather than a shared ServiceAccount.

CapabilityStatusWhat it needs
stdio modeBuilt inLocal single-user run. OAuth and OIDC do not apply in this mode.
HTTP mode with OAuth or OIDCBuilt in, HTTP mode onlySet a port in the TOML config. Setting require_oauth = true with an empty port fails at load.
Microsoft Entra ID setup guideDocumented guideFollow the project's Entra ID guide. Combining require_oauth = true with a shared ServiceAccount is rejected at startup.
Keycloak OIDC setup guidePreview, not for productionTreat fields as subject to change. The guide recommends development and testing use only.
Passthrough versus kubeconfig cluster authPassthrough is the defaultIf cluster_auth_mode is unset, the Authorization header is forwarded when present and kubeconfig credentials are used when absent. Confirm the mode for each deployment.
Helm chart installBuilt inInstall from the project's OCI chart path. The default image tag is latest, so pin a version in your own values file.
Gateway API HTTPRouteSupported by the chartA Gateway API controller in the cluster and a route configured through chart values.
Additional sidecar containersSupported by the chartDefine sidecars in chart values and review what each one can reach.
Secret-based config storageRecommended by the projectStore config.toml and key or token files in a Kubernetes Secret, not a ConfigMap.
Redacted logged configurationBuilt inSensitive values such as client secrets appear redacted in logged config. Confirm this in your own logs.
OpenTelemetry tool-call tracingBuilt inEach MCP tool call is traced with tool name, outcome, duration and errors. Configure an OpenTelemetry collector to export it.
HTTP request tracingBuilt in, HTTP mode onlyTraces include method, path, status and client address. Confirm how long your backend retains them.

How the server passes a user's identity to the cluster

The main decision in this section is whether each request reaches the Kubernetes API server under the identity of the person who made it. In HTTP mode, the MCP client sends an Authorization header with the request. The server validates that token against the OAuth or OIDC settings in its configuration. With the default passthrough behavior (used when cluster_auth_mode is not set), the server forwards the Authorization header to the cluster, so the API server evaluates that user's own RBAC bindings. Kubeconfig credentials are used only when no Authorization header is present. For a team, this means the cluster sees the same user identity that the sign-in provider issued, and that is the identity your audit logs will show.

The server refuses one combination outright. Setting require_oauth = true together with a shared ServiceAccount, expressed as cluster_auth_mode = kubeconfig, is rejected at startup. The project's Microsoft Entra ID guide gives the reason: every user would collapse into one cluster identity, and per-user audit trails would be lost. Treat this check as a guardrail, not a design choice to work around. Before rollout, confirm with your platform team which identity each cluster role will see, and confirm that the token audience and claims your identity provider issues match what the cluster's authentication configuration expects. The OAuth and OIDC guides are marked as preview features, so verify field names against the version you deploy.

The token_exchange block, which uses the rfc8693 strategy, is a separate option for a different identity path, such as exchanging the user's token for a cluster-scoped token. It is not a substitute for passthrough. Its client authentication settings are not a default you can accept as written: your team must decide which client identity performs the exchange, which audience the exchanged token carries, how long it lives, and who can rotate its secret. Store any such client secret in a Kubernetes Secret, as the configuration reference recommends, and confirm with your security team how that secret is issued and revoked before using this path for production.

Each request carries the user's own identity to the cluster

The path starts at the MCP client, which signs the user in through Microsoft Entra ID or Keycloak and receives an access token. The client then sends requests to the Kubernetes MCP server running in HTTP mode, where OAuth and OIDC sign-in applies. In passthrough mode, the server forwards the Authorization header to the Kubernetes API server, so the cluster's RBAC decides what that user can do. Each MCP tool call is traced with its name, outcome and duration, and those traces are exported to an OpenTelemetry collector. Check that the token audience, the RBAC bindings and the trace destination match your audit requirements.

Sign-in, token forwarding and telemetry export from the MCP client to the cluster.

Decisions to settle before the first team connects

The community server gives a team several choices that shape who the cluster sees, how the deployment is pinned and what an auditor can trace. Settle identity and cluster authentication first, then the storage of secrets, image version, network path and telemetry destination, because each one changes what the audit trail records.

Identity provider and protocol

The project documents a Microsoft Entra ID setup guide, while the Keycloak OIDC guide is marked as a preview feature whose configuration fields may change and which is recommended for development and testing only. OAuth and OIDC apply to HTTP mode, and require_oauth = true with an empty port fails at load in stdio mode. For a production team, the Entra ID path is the documented one to evaluate first, and any Keycloak use should be treated as a pilot until you confirm the fields are stable.

Entra ID guide

Passthrough versus kubeconfig cluster auth

When cluster_auth_mode is not set, the server defaults to passthrough: it forwards the Authorization header to the cluster when present and falls back to kubeconfig credentials when absent. Combining require_oauth = true with a shared ServiceAccount (cluster_auth_mode = kubeconfig) is rejected at startup, because every user would collapse to one cluster identity. Passthrough is what keeps each user's identity in the Kubernetes audit log, so confirm that the header actually reaches the API server in your setup.

Where config.toml and key files live

The configuration reference recommends storing config.toml and any key or token files in a Kubernetes Secret rather than a ConfigMap. Client secrets appear as redacted values in the logged configuration. Decide who can read that Secret, since RBAC on Secrets in the namespace determines who can recover the client secret or token material. Review the namespace's Secret access before the deployment goes live.

Configuration reference

Helm chart image pinning

The chart's default image points to quay.io, repository containers/kubernetes_mcp_server, with the tag latest. A floating tag means the running code can change on the next pod restart without a change record. Pin the image to a specific tag or digest that your team has reviewed, and record it in your change management system. Also confirm the chart version you install from oci://ghcr.io/containers/charts/kubernetes-mcp-server, since the chart and image are versioned separately.

Helm chart README

Network exposure through Gateway API

The chart supports a Gateway API HTTPRoute, which determines which network paths reach the server in HTTP mode. Decide whether the endpoint is reachable only from the internal network, from a VPN, or through an identity-aware gateway in front of the OAuth check. Confirm that the route forwards the bearer token unchanged, because passthrough depends on it. Additional sidecar containers in the chart also belong in this review, since each one runs inside the same pod.

Where OpenTelemetry traces go

The server traces every MCP tool call with the tool name, success or failure, duration and errors. In HTTP mode it also traces method, path, status and client address. Choose the collector endpoint and retention period before enabling traces, since these records are the main per-call evidence beyond the Kubernetes audit log. Confirm with your security team which backend stores them, who can query it, and whether tool arguments or outputs are included.

OpenTelemetry guide

How the answer changes by identity provider and deployment

The project documents a Microsoft Entra ID setup guide, which is the most complete identity path in the supplied material. The guide's key rule is that require_oauth = true combined with a shared ServiceAccount (cluster_auth_mode = kubeconfig) is rejected at startup, because every user would collapse to one cluster identity and per-user audit trails would break. When cluster_auth_mode is not set, the server defaults to passthrough: the Authorization header is forwarded to the cluster when present, and kubeconfig credentials are used only when it is absent. Confirm which mode your deployment sets, since a missing header under passthrough can fall back to a shared kubeconfig identity.

  • Startup rejection: a shared ServiceAccount combined with required OAuth fails at startup, which protects per-user attribution.
  • Passthrough default: the user's token reaches the Kubernetes API when the header is present.
  • Fallback path: kubeconfig credentials apply when no header arrives, so test that unauthenticated requests cannot reach the cluster.
  • Cluster RBAC: the cluster must map Entra ID identities or groups to roles, which the guide and your cluster admins must agree on.
  • Pilot status: confirm with the project that the guide matches your Entra ID tenant configuration.

Check that the fallback behavior is blocked for your users and that a test identity sees only the resources its cluster role allows.

Order of work for a production rollout

This sequence moves the server from a single-user trial to a team deployment in an order where each step produces evidence the next step depends on, so identity and audit trails are proven before anyone else gets access.

  1. Confirm the cluster RBAC model first

    The platform team decides what the server may do in the cluster before anything else is configured. Create a dedicated ServiceAccount for the server, bind it to a read-only role scoped to the namespaces the team needs, and confirm that this account is the fallback identity. Check the result with the cluster's own access review tooling by testing a few requests that should be denied, such as reading Secrets. The step is done when the fallback identity can only do what the team has agreed to, and the team has written that down for the security reviewer.

  2. Choose the identity provider guide

    Pick the identity provider your organization already uses for workforce sign-in and match it to a project guide. The project publishes a Microsoft Entra ID guide and a Keycloak OIDC guide, and the Keycloak guide is marked as a preview with fields that may change, so it suits development and testing only. Confirm with the identity team which audience, client registration and group claims the cluster will trust. The step produces a short written decision that names the guide, the token audience and the owner of the identity configuration.

  3. Configure HTTP mode with OAuth

    OAuth and OIDC sign-in only apply in HTTP mode, so the server must run with a port set in its TOML configuration. Set the OAuth options from the chosen guide and make sure the authentication mode forwards each user's own token to the cluster instead of a shared identity. Then test the negative case: a configuration that combines OAuth with a shared ServiceAccount and the kubeconfig cluster authentication mode should be rejected at startup. If it starts, stop the rollout. The step is done when the server refuses the shared-identity combination and accepts a valid user token.

  4. Deploy with the Helm chart and a pinned image

    Install the chart from its published OCI location and override the default image setting, which points to the latest tag, with a specific version that your team has reviewed and recorded. Keep the chart version and image digest in your change record. If you plan to route traffic through a Gateway API HTTPRoute or add sidecar containers, review those additions as part of the same change because each one changes the trust boundary. The step is done when the running pod reports the pinned image and the chart values match what the security reviewer approved.

  5. Store secrets in Kubernetes Secrets and confirm redaction

    Move config.toml, key files and token files into a Kubernetes Secret rather than a ConfigMap, and mount them into the pod. Then read the server's startup log and confirm that client secrets and similar values appear as redacted. Ask the platform team to confirm who can read the Secret object in the namespace, since access to the Secret is access to the credentials it holds. The step is done when the log shows redacted values and the Secret's read access is limited to named administrators.

  6. Enable and verify OpenTelemetry traces

    Turn on OpenTelemetry tracing and send spans to your collector. Make one tool call with a test user and confirm the trace holds the tool name, whether the call succeeded or failed, its duration and any error. In HTTP mode, also confirm the request spans carry method, path, status and client address. Check that the trace identifies the signed-in user through your own logging pipeline, because the traces show the call but attribution depends on how your identity is carried through. The step is done when a test call appears in your tracing backend with the expected fields and a sample is kept for the audit file.

  7. Retest passthrough identity with two users

    Before wider access, have two named test users sign in and perform the same read in a namespace only one of them can see. Confirm that each user receives their own result and that the cluster audit log records two different identities for the two requests. Repeat with a request one user should be denied. Record the results and keep the test as the evidence for the security review. The step is done when both users see only what their own cluster permissions allow and the audit trail attributes each action to the correct person, which is the condition for expanding access.

What a security reviewer asks to see and where it comes from

This table maps each item a security reviewer typically asks for in a Kubernetes MCP server rollout to the setting, log or cluster object that produces it. Use it to decide who must supply each piece of evidence before approval. The main takeaway is that identity, secret storage and tracing are configured in the server and the cluster, so the evidence has to come from those places rather than from vendor statements.

EvidenceWhere it comes fromOwner
Sign-in mechanism and identity providerOAuth or OIDC settings in the server's TOML config, used in HTTP mode only, with the provider guide (Entra ID or Keycloak) as the referencePlatform engineering with the identity team
Proof of per-user cluster identityAuthorization header passthrough to the API server, or a token exchange block, checked by testing two users and comparing their audit eventsPlatform engineering and cluster admins
Startup rejection of shared ServiceAccount modeServer startup behavior when require_oauth is true with cluster_auth_mode set to kubeconfig; capture the rejection in a test runPlatform engineering
Secret storage locationKubernetes Secret holding config.toml, key files and token files, confirmed with a cluster query and RBAC on the SecretCluster admins and security engineering
Redacted configuration outputLogged configuration at startup, where client secrets should appear as redacted; check the log before approvalSecurity engineering
Image source and version pinningHelm values for the image repository and tag; the chart default is quay.io with the latest tag, so the pinned tag and digest must be recordedPlatform engineering and release management
Trace fields for tool calls and HTTP requestsOpenTelemetry spans with tool name, success or failure, duration and errors, plus method, path, status and client address in HTTP modeObservability team
Trace destination and retentionOTLP exporter settings and the backend's retention policy, which the project does not set; confirm both with the platform teamObservability team and compliance

Questions buyers ask before approving the server

Is there an enterprise edition of the Kubernetes MCP server with SSO?

No enterprise edition is documented for this project. The containers/kubernetes-mcp-server project is community open source under the Apache-2.0 license, and it is not a Kubernetes project release. Sign-in is handled by OAuth and OIDC configuration, which applies only in HTTP mode. The configuration reference says OAuth and OIDC are for HTTP mode, and setting require_oauth to true with an empty port (stdio) fails at load. Your identity team should confirm which identity provider settings your environment needs and whether the project's guides meet your sign-in policy before you rely on them.

What does setting up the Kubernetes MCP server cost, and who pays?

The project publishes no price, because it is free open-source software. The cost is the engineering time to configure the server, the identity provider, the cluster RBAC for each user, the Helm deployment and the tracing pipeline, plus any outside services you buy, such as a managed identity provider, a telemetry backend or implementation help. Setup is mostly one-time work, while upkeep recurs: upgrades, chart changes, and reviewing identity and RBAC settings. Costs rise with the number of clusters, identity providers and users, and with the depth of audit requirements. Ask any outside partner for a written scope and fixed deliverables before work starts.

Can our own team set up the Kubernetes MCP server without outside help?

Yes, if your team can run the skills the setup needs. Those include administering Kubernetes authentication and RBAC, configuring an OAuth or OIDC identity provider, deploying a Helm chart with a Secret for sensitive configuration, and running OpenTelemetry tracing into a backend your security team can query. The project's guides cover Microsoft Entra ID and Keycloak, so an engineer who has worked with either identity provider will find the path shorter. Plan for someone to own the configuration over time, since the OAuth and OIDC guide notes that configuration fields may change.

Is the Keycloak OIDC setup for the Kubernetes MCP server production-ready?

Not according to the project's own documentation. The Keycloak OIDC setup guide carries a warning that OIDC and OAuth setup is a preview feature, that configuration fields may change, and that it is recommended for development and testing use only. Do not put that path in production without a review of your own. If your organization needs Keycloak, treat the guide as a starting point, pin the chart and binary versions you test, and retest after each upgrade. Confirm the current status with the project maintainers before you approve a production rollout.

Does the Kubernetes MCP server keep per-user audit trails?

It can, but only in the right configuration. The Entra ID guide says that require_oauth set to true combined with a shared ServiceAccount, using cluster_auth_mode set to kubeconfig, is rejected at startup, because it would collapse every user to one cluster identity and break per-user audit trails. When cluster_auth_mode is not set, the server defaults to passthrough, which forwards the Authorization header to the cluster when present. Per-user attribution therefore depends on each user's token reaching the Kubernetes API, and on the cluster's own audit log recording that identity. The OpenTelemetry guide traces each tool call with its name, outcome, duration and errors, which supports review but does not replace the cluster's audit log. Verify the behavior in a test cluster before approval.

Is the Kubernetes MCP server covered for HIPAA or GDPR?

The server itself does not come with HIPAA or GDPR attestations, and no compliance certification for the project was supplied to us. Compliance depends on how your organization deploys it: where the cluster runs, which identity provider holds user data, where the OpenTelemetry traces are sent, how long they are kept, and which AI client and model provider receive the tool output. Ask the project maintainers in writing for any compliance statements they make, and have your compliance team assess the full data path. Independent auditors and certification bodies, not the project or DeployOpen, issue audit reports and certifications.

Who supports the Kubernetes MCP server if something breaks?

The project is a community open-source effort, so it has no vendor support contract documented in the sources we reviewed. Support comes from the public repository, its issue tracker and its maintainers, and the response is not guaranteed. For production use, confirm the support options in writing with the project, decide who inside your organization owns incidents, and pin the Helm chart and container image versions you have tested. If you need outside help, DeployOpen can plan, implement, harden and support self-hosted platforms in your own infrastructure under a fixed-scope agreement, and it offers ongoing support as a retainer. A quote follows from written scope, and DeployOpen does not publish a price list.

Where to check each claim in the project's own documentation

Before a reviewer signs off on any claim in this page, the claim should be traced to the project's own documentation, and the reviewer should confirm it against the version that will actually be deployed. Start with the Kubernetes MCP Server README for the list of client setups, the install options and the production guidance on a dedicated ServiceAccount with read-only access. Then open the configuration reference to confirm which settings live in config.toml, which also accept environment variables, and whether require_oauth and cluster_auth_mode behave as described for your transport. Treat the Keycloak OIDC guide as a preview document: it states that configuration fields may change and recommends development and testing use only.

Next, match each identity claim to its guide. The Microsoft Entra ID guide documents the rejection of a shared ServiceAccount combined with OAuth, and the passthrough default when cluster_auth_mode is unset, so confirm both in your own test cluster. The Helm chart README governs the image reference, the default latest tag and the Gateway API and sidecar options, so pin the chart and image versions you approve and record them in your review file. Finally, check the OpenTelemetry guide against a live export, since the audit trail you rely on depends on which spans are emitted. Record the commit or release tag you tested, because these documents can change between releases.

How DeployOpen helps teams approve this server safely

DeployOpen helps teams decide whether and how the community containers/kubernetes-mcp-server can run against their clusters. The work covers identity, deployment, and the OpenTelemetry tracing that supports audit reviews, and it runs inside the client's own infrastructure.

How we scope

  • Written scope agreed before work starts, naming the identity provider, cluster auth mode and deployment target
  • Review of whether OAuth or OIDC sign-in fits the team, since the project labels that setup as preview
  • Agreed list of clusters, namespaces, Helm values and telemetry destinations that the review will cover

How we build

  • Configure the server in HTTP mode with OAuth or OIDC, keeping per-user cluster identity intact for audit trails
  • Store config.toml and key or token files in Kubernetes Secrets rather than ConfigMaps, and verify redacted logging
  • Test the Helm chart deployment, image source and any Gateway API route or sidecar settings against the agreed design

How we hand over

  • Written findings report with fixes, configuration records and the tracing setup used for audit evidence
  • Documented sign-in flow, identity provider settings and known preview-stage limits for the client's security team
  • Retest of agreed items after fixes so the client can confirm the final configuration before rollout

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover
  • Re-review when the project's configuration fields or the Helm chart change between releases
  • Support for evidence requests from the client's compliance team, prepared from the deployed systems and their logs

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.