K8gentS — Kubernetes RCA MCP Server logo

K8gentS — Kubernetes RCA MCP Server

K8gentS — Kubernetes RCA MCP Server analyzes Kubernetes failures, reports findings to Slack, and gates remediation through OPA and human approval.

Install K8gentS — Kubernetes RCA MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

K8gentS — Kubernetes RCA MCP Server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Configure
    helm dependency update deploy/helm/k8gents
    
  2. 2. Install
    helm install k8gents deploy/helm/k8gents \
      --namespace k8gent-system \
      --create-namespace \
      --set secrets.aiApiKey="YOUR_GEMINI_KEY" \
      --set secrets.slackBotToken="xoxb-..." \
      --set secrets.slackAppToken="xapp-..." \
      --set secrets.slackChannelId="C12345678" \
      --set secrets.allowedApprovers="U123456,U789012"
    

Overview

K8gentS — Kubernetes RCA MCP Server MCP server connects Kubernetes diagnostics with an LLM-based root cause analysis workflow for Claude and Cursor. It watches cluster events and failure conditions, gathers logs and pod context, sanitizes that data, and produces ranked hypotheses with resolution steps. Findings are sent to Slack, where designated approvers can accept or reject remediation; the default posture is read-only. Reach for it when Kubernetes incidents need automated investigation with bounded, human-approved changes.

Use cases

  • Monitor Kubernetes warning events and failed workloads
  • Investigate CrashLoopBackOff and OOMKilled incidents
  • Send ranked root-cause hypotheses to Slack
  • Approve bounded Kubernetes remediation after review

Key features

  • Kubernetes event and failure monitoring
  • LLM-based root cause analysis
  • Secret and PII sanitization
  • Slack Socket Mode notifications
  • Human-approved remediation
  • OPA Gatekeeper enforcement

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.

15/16 checks healthy over the last 111d

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit6mo agoMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How K8gentS — Kubernetes RCA MCP Server works

What K8gentS — Kubernetes RCA MCP Server MCP server does

K8gentS — Kubernetes RCA MCP Server monitors a Kubernetes cluster for warning events and operational failure signals, including crashed pods, CrashLoopBackOff, OOMKilled, connectivity or DNS problems, database deadlocks, and missing secrets or configuration. When it detects an anomaly, it gathers relevant operational context and sends a sanitized diagnostic prompt to an LLM reasoning engine.

The resulting analysis contains a description of the issue, three possible root causes with confidence metrics, and step-by-step resolution guidance. Slack is used to deliver these findings and to collect an approval decision for proposed remediation. The MCP diagnostic integration is described for Claude and Cursor.

How it works

The agent watches the Kubernetes event stream and retrieves recent logs, pod descriptions, and event history when an issue requires investigation. A regex-based sanitization step removes items such as IP addresses, JWTs, API keys, and email addresses before the context reaches the LLM.

The default operating mode is read-only. If remediation is enabled and a reviewer selects the approval action in Slack, the change runs in a short-lived Kubernetes Job using a separate executor service account. OPA Gatekeeper policies are applied at API admission time to restrict that executor independently of RBAC. The documented policy prevents changes to the service account, use of hostNetwork or hostPID, activity in kube-system, and mutations outside pods and deployments.

Slack communication uses Socket Mode, so the deployment does not require an exposed inbound endpoint or Ingress rule. Event debouncing and hourly circuit breakers limit repeated processing and API usage.

Setup and configuration

K8gentS — Kubernetes RCA MCP Server is packaged as a Helm chart with OPA Gatekeeper declared as a chart dependency. The documented prerequisites are Kubernetes 1.20 or newer, Helm 3, authenticated kubectl, a Google Gemini API key, and a Slack app configured for Socket Mode and interactive components.

Required deployment values include AI_API_KEY, SLACK_BOT_TOKEN, SLACK_APP_TOKEN, SLACK_CHANNEL_ID, and ALLOWED_APPROVERS. The Slack bot needs chat:write and chat:write.public scopes, must be invited to the destination channel, and requires a comma-separated list of approved Slack user IDs.

The installation process builds and pushes the agent image, updates the chart image repository, fetches chart dependencies, and installs the chart into a Kubernetes namespace. WATCH_NAMESPACES can limit monitoring to selected comma-separated namespaces or use all for cluster-wide watching. AI_MODEL selects a model supported by the Google GenAI SDK, while LOG_LEVEL controls Python logging. The documented remediation modes are api and subprocess.

Tools and capabilities

  • Monitor Kubernetes warning events and selected failure conditions.
  • Collect logs, pod descriptions, and event history for diagnosis.
  • Produce three ranked RCA hypotheses with confidence metrics.
  • Send diagnostic results and approval controls through Slack Socket Mode.
  • Expose MCP diagnostics for use with Claude and Cursor.
  • Execute approved remediation in an ephemeral, policy-bounded Job.

Limitations and notes

K8gentS — Kubernetes RCA MCP Server relies on non-deterministic LLM reasoning, so its hypotheses and confidence values are not equivalent to deterministic checks or calibrated probabilities. The project identifies confidence calibration, evaluation of novel failures, monitoring the monitoring service, and model selection as open design questions.

Remediation is not unrestricted: it requires human approval, runs under a separate executor identity, and is constrained by OPA Gatekeeper policies. The README names Claude and Cursor as MCP clients but does not specify additional client compatibility or individual MCP tool names.

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 K8gentS — Kubernetes RCA MCP Server

K8gentS — Kubernetes RCA MCP Server is an MCP server that connects AI clients such as Claude and Cursor to Kubernetes diagnostics. Its main capabilities are monitoring cluster failures, gathering logs and event context, generating ranked root-cause hypotheses, and supporting Slack-based, human-approved remediation under OPA Gatekeeper controls.

Install it with the supplied Helm chart after building and pushing the agent image. Update the chart image repository, fetch dependencies, and run Helm with the Gemini key, Slack tokens, channel ID, and approver IDs. Kubernetes 1.20+, Helm 3, and authenticated kubectl are required.

Yes, the README identifies Cursor as a supported MCP client.

Yes, the default posture is read-only. Remediation is opt-in and requires a Slack approver to select the approval action. Approved changes run in an ephemeral Job using a separate service account and are restricted by OPA Gatekeeper admission policies.

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 PreviewK8gentS — Kubernetes RCA MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/k8gents-kubernetes-rca-mcp-server?style=directory)](https://allmcps.com/mcp/k8gents-kubernetes-rca-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/k8gents-kubernetes-rca-mcp-server"><img src="https://allmcps.com/api/badge/k8gents-kubernetes-rca-mcp-server?style=directory" alt="K8gentS — Kubernetes RCA MCP Server on AllMCPs" /></a>