$ timeahead.in
/ servers/npm/mcp-server-kubernetes
npm

mcp-server-kubernetes

MCP server for interacting with Kubernetes clusters via kubectl

1k stars32k/wkupdated 1d agogithub ↗
56poor
▣ Overview
CILanguageBunKubernetesDockerStarsIssuesPRs WelcomeLast Commit

What it does

The server wraps kubectl to expose Kubernetes cluster operations as MCP tools. It loads cluster authentication from your kubeconfig file (defaulting to ~/.kube/config) and provides tools for querying, listing, describing, and creating Kubernetes resources. This lets Claude interact with your cluster directly—inspecting pod status, examining resource configurations, and deploying workloads.

Who it's for

DevOps engineers and platform teams managing Kubernetes clusters who want to automate operations through Claude. SREs troubleshooting cluster issues interactively. Anyone integrating cluster management into broader AI-assisted infrastructure workflows.

Common use cases

  • Query pod status and logs to debug failing deployments
  • Describe Kubernetes resources to understand configuration and diagnose issues
  • Create or update deployments, services, and ConfigMaps from Claude
  • Check cluster health and resource usage across multiple kubectl contexts
  • Integrate Kubernetes operations into AI-driven infrastructure automation

Setup pitfalls

  • Security: The scanner detected 8 secrets in the repository. Review the source code before deploying to production to ensure no hardcoded credentials are bundled.
  • kubectl must be installed and in your system PATH. Verify with kubectl version.
  • Kubeconfig file must exist and contain at least one configured cluster context. Test your setup locally with kubectl get pods before connecting the MCP server.
  • Service account permissions: your cluster's RBAC policies must grant the account appropriate roles for the operations you intend (e.g., get, list, create on Pods, Deployments, etc.).
8 credentials detected in repository history via Gitleaks
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
0
0.0
Freshness
25%
100
25.0
Adoption
20%
86
17.1
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
56.1
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecsecrets
◆ Risk level: high
fs read + fs write + network + exec + secrets active — can execute code, access credentials, and make external network calls.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "mcp-kubernetes": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-kubernetes"
      ]
    }
  }
}
📈 Score historylast 32 snapshots
4/30/20266/10/2026 · 32 snapshots
⚙ Maintenance health
79/ 100 · is this project alive?
contributors (1y)31
top contributor share32%
releases (1y)47
last release0d ago
ci✓ passing
⛁ Raw data
weekly downloads32k
github stars1k
forks247
open issues11
license✓ present
readme length16417 chars
last publish1d ago
last commit1d ago
last updated5d ago
install verified✗ fail · 30d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points