kubently — Claude Code MCP server: what it does, how to install
Troubleshoots Kubernetes clusters using natural language prompts. Investigates crashing pods, checks fleet health, and inspects logs straight from your coding agent.
claude mcp add kubently -- npx -y @kubently/cliWhat kubently does
Kubently bridges Kubernetes infrastructure with AI assistants using the Model Context Protocol. It investigates failing workloads, scans logs, and pinpoints root causes across multiple clusters simultaneously. Executors connect to the central service using outbound requests. Because of this design, you do not need public ingress or shared kubeconfig files.
The architecture relies on Redis for conversation context and coordinates tasks via the A2A protocol. Beyond interactive diagnostics, the system handles Alertmanager webhooks, verifies rollout health, and posts automated Slack digests. Operation requires an active API token for Anthropic, OpenAI, or Google. Deployment depends on Helm and a functional cluster running Kubernetes 1.28 or newer.
What it helps with
- diagnose crashlooping pods from events and workload logs
- troubleshoot firewalled clusters across a multi-cluster fleet
- verify workload health following a fresh deployment
- triage firing Alertmanager notifications automatically
Example prompts for the agent
- Use kubently to investigate why checkout pods are restarting in prod
- Check all clusters via kubently for PVC storage exceeding 85 percent
How to install kubently
Platform CLI
claude mcp add kubently -- npx -y @kubently/cliPlatform CLI
codex mcp add kubently -- npx -y @kubently/cliConfig file
{
"mcpServers": {
"kubently": {
"command": "npx",
"args": [
"-y",
"@kubently/cli"
]
}
}
}Config file
{
"servers": {
"kubently": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@kubently/cli"
]
}
}
}Platform CLI
gemini mcp add kubently npx -y @kubently/cliStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about kubently
How do I install kubently for Claude Code?
Run claude mcp add kubently -- npx -y @kubently/cli in your terminal. You also need to run kubently install against your cluster using kubectl to deploy backend services.
What does kubently do?
It provides an agentic troubleshooting tool for Kubernetes. It allows your coding assistant to inspect pods, read container logs, and identify the root causes of deployment failures.
What prerequisites does kubently require?
You need Kubernetes 1.28 or newer, Helm, and an API key for Anthropic, OpenAI, or Google. History tracking also relies on a Redis instance.