K8scortex MCP logo

K8scortex MCP

Governed MCP access to multi-cloud Kubernetes clusters with 75 tools, role controls, dry runs, routing, and audit logging.

Install K8scortex MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "k8scortex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "k8scortex-mcp"
      ],
      "env": {
        "K8SCORTEX_STDIO_ROLES": "YOUR_VALUE_HERE",
        "CLUSTERS_CONFIG": "YOUR_VALUE_HERE",
        "AZURE_KEYVAULT_URI": "YOUR_VALUE_HERE",
        "USE_LOCAL_KUBECONFIG": "YOUR_VALUE_HERE",
        "DEFAULT_CLUSTER": "YOUR_VALUE_HERE",
        "OIDC_ISSUER": "YOUR_VALUE_HERE",
        "OIDC_AUDIENCE": "YOUR_VALUE_HERE",
        "OIDC_JWKS_URI": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

k8scortex-mcp MCP server places a governed MCP layer between AI clients and Kubernetes clusters across GKE, EKS, AKS, OpenShift, and local environments. It exposes 75 tools for workloads, deployments, configuration, observability, networking, GitOps, cluster administration, and generic reads, with per-tool roles, cluster policies, dry-run defaults, and structured audit records. Use it when agents need controlled access to multiple clusters without handing them an unrestricted kubeconfig. Stdio supports local clients, while SSE/HTTP with OIDC supports shared team deployments.

Use cases

  • Inspect workloads across development and production clusters
  • Preview and control Kubernetes changes through role-based access
  • Compare application state between clusters
  • Route audited GitOps and operational requests to managed clusters

Key features

  • 75 Kubernetes tools across operational domains
  • Multi-cluster routing for local and managed clusters
  • OIDC authentication with role and cluster policies
  • Dry-run defaults for destructive operations
  • Structured audit logging
  • Stdio and SSE/HTTP transports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/18 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · k8scortex-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads330Package downloads in the last 30 days.
Last commit20d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How K8scortex MCP works

What k8scortex-mcp does

k8scortex-mcp provides an MCP gateway for Kubernetes operations across local and managed clusters. It can work with kubeconfig contexts, Amazon EKS, Google GKE, and Azure Key Vault-backed AKS configurations. Registered clusters are addressed through a cluster parameter, allowing one MCP connection to route requests to different environments.

The server groups its 75 tools across workload management, deployments, configuration, observability, jobs, networking, GitOps, cluster administration, and generic read operations. Generic list and get coverage helps agents inspect resources beyond the server’s curated mutation paths.

Access control is applied per tool and cluster. A five-level role hierarchy, cluster-specific policies, and OIDC identities can restrict which operations a caller may perform. Each call is recorded with the caller, arguments, and result. Destructive operations use simulation mode by default, and short-lived EKS and GKE credentials are created on demand and retained only until expiration.

How it works

Cluster sources are selected from the environment. Setting CLUSTERS_CONFIG uses a registry file; setting AZURE_KEYVAULT_URI uses an Azure Key Vault cluster index; otherwise, the server reads contexts from KUBECONFIG or the default kubeconfig, with in-cluster service-account access also supported. DEFAULT_CLUSTER supplies a fallback for calls that omit a target. Read-only calls may use that fallback, while mutating calls require an explicit cluster when multiple clusters are registered.

Registry entries can describe kubeconfig, EKS, GKE, or Azure Key Vault providers. EKS uses the AWS credential chain and can assume a configured role. GKE uses Application Default Credentials. Azure Key Vault entries retrieve base64-encoded kubeconfig data from a secret. Cluster policies can raise the minimum role for matching clusters or disable named tools; policies only make the global permissions more restrictive.

The server offers stdio for local MCP clients and SSE/HTTP for programmatic or shared deployments. HTTP mode expects OIDC configuration unless authentication is explicitly disabled. OIDC discovery, audience validation, optional JWKS overrides, and configurable role or group claims support identity providers such as Entra ID, Okta, Cognito, Keycloak, and Google.

Setup and configuration

Local use requires Node.js 22 or newer and a working kubeconfig. Install the package through an MCP client using npx -y k8scortex-mcp, or build from source with npm install, npm run build, and the generated stdio entry point. K8SCORTEX_STDIO_ROLES=developer creates a read-only local session; omitting it exposes the full configured toolset.

For a shared service, deploy the Helm chart or container image and provide OIDC settings plus a cluster registry. The container listens on port 3000 in the documented example and exposes the MCP endpoint at /mcp. A management-cluster deployment can use Workload Identity, IRSA, or managed identity for cloud-provider access.

Tools and capabilities

  • Route operations to registered local, EKS, GKE, AKS, or OpenShift clusters.
  • Inspect and manage workloads, deployments, jobs, networking, configuration, and cluster resources.
  • Compare resources across clusters with cluster-aware policy checks.
  • Preview destructive operations through default dry-run behavior.
  • Apply role-based and per-cluster restrictions to tool calls.
  • Record caller identity, arguments, and outcomes for auditing.

Limitations and notes

Mutating access depends on both the server’s role configuration and the target cluster policy. A production policy can require an SRE-level role for writes or deny particular tools altogether. Cloud providers also require their respective permissions: EKS needs eks:DescribeCluster and an EKS access entry, while GKE needs container.clusters.get and Kubernetes RBAC. HTTP deployments must configure an identity provider unless authentication is deliberately disabled. The server does not replace Kubernetes RBAC or the permissions granted by the underlying cloud credentials.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about K8scortex MCP

k8scortex-mcp is an MCP server that connects AI clients to Kubernetes clusters across GKE, EKS, AKS, OpenShift, and local kubeconfig contexts. Its 75 tools cover workloads, deployments, observability, GitOps, networking, administration, and generic reads, with role controls, cluster policies, dry runs, and audit logging.

Install it in an MCP client with `npx -y k8scortex-mcp` and provide Node.js 22 or newer plus a working kubeconfig. For a local build, run `npm install` and `npm run build`, then point the client to `dist/stdio.js`.

Yes, k8scortex-mcp supports Cursor through its stdio MCP configuration. Add the server command using `npx -y k8scortex-mcp`; set `K8SCORTEX_STDIO_ROLES=developer` when the session should have read-only access.

Register clusters in `CLUSTERS_CONFIG`, or use multiple kubeconfig contexts when running from kubeconfig. Calls target a registered cluster with the `cluster` parameter; mutating calls must name a cluster when more than one is available.

Deploy the Helm chart or container image with `OIDC_ISSUER`, `OIDC_AUDIENCE`, and a cluster registry. The HTTP service uses SSE/HTTP at `/mcp` and requires an identity provider unless `DISABLE_AUTH=true` is set.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewK8scortex MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/k8scortex-mcp?style=directory)](https://allmcps.com/mcp/k8scortex-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/k8scortex-mcp"><img src="https://allmcps.com/api/badge/k8scortex-mcp?style=directory" alt="K8scortex MCP on AllMCPs" /></a>