Kubernetes monitoring & ops for AI agents — safe-by-default access modes and guards.
MCPpedia last refreshed this data
io.github.dockndevai/mcp-kubernetes is an MCP server that kubernetes monitoring & ops for AI agents — safe-by-default access modes and guards. Its tool list has not been published yet over stdio and http, requires no API key, and scores 61/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"kubernetes": {
"env": {
"K8S_MODE": "read-only",
"KUBECONFIG_PATH": "/Users/you/.kube/config"
},
"args": [
"-y",
"@dockndevai/mcp-kubernetes"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Kubernetes monitoring & ops for AI agents — safe-by-default access modes and guards.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y '@dockndevai/mcp-kubernetes' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @dockndevai/mcp-kubernetes against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in cloud / ai-ml
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
Unified real-time search engine skill for AI agents.
The official MCP server implementation for the Perplexity API Platform
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
MCP Security Weekly
Get CVE alerts and security updates for io.github.dockndevai/mcp-kubernetes and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol server for Kubernetes. It lets an MCP-capable client (Claude Desktop, Claude Code, etc.) inspect and operate Kubernetes clusters across multiple contexts — with behaviour controlled entirely by flags.
The design goal is safe by default: it starts read-only, can be scoped to an allowlist of namespaces and contexts, protects system namespaces from mutation, and gates the dangerous operations (delete, apply, exec) behind explicit opt-ins.
context; scope which contexts are usable with an allowlist.read-only → read-write → admin, layered so a mode never exposes tools above its level.| Concern | Flag | Default | Effect |
|---|---|---|---|
| What can the server do at all? | K8S_MODE | read-only | read-only exposes only reads; read-write adds mutations; admin adds destructive tools. Tools above the mode are never registered. |
| Which namespaces are in scope? | K8S_NAMESPACE_ALLOWLIST | (all) | When set, any operation on a namespace outside the list is refused. For a Namespace object the check is on its name; with no namespace given, a namespaced kind is checked against the context's default namespace. |
| Which namespaces are read-only forever? | K8S_PROTECTED_NAMESPACES | kube-system,kube-public,kube-node-lease | Can be read but never mutated or deleted, regardless of mode. |
| Which clusters are reachable? | K8S_CONTEXT_ALLOWLIST | (all) | When set, only these kube-config contexts may be targeted. |
| Can it delete? | K8S_ALLOW_DELETE | false | delete_resource needs this and admin mode. |
| Can it apply manifests? | K8S_ALLOW_APPLY | false | apply_manifest needs this and read-write mode. |
| Can it exec into pods? | K8S_ALLOW_EXEC | false | exec_in_pod needs this and admin mode; the tool isn't even registered otherwise. |
| Preview without touching the cluster | K8S_DRY_RUN | false | Write/admin tools validate + log intent, then return without calling the API. |
| Audit trail | K8S_AUDIT_LOG | true | Emits a JSON line to stderr per guarded operation (ALLOW / DENY / DRY_RUN). |
| Log redaction | K8S_REDACT_LOGS | true | get_pod_logs and exec_in_pod (stdout/stderr) output is scrubbed of credential-shaped text (PEM private keys, password=/token: style pairs, Authorization/Bearer values, URL passwords, JWTs and service-account tokens, AWS/GCP/GitHub/Slack/... key shapes) before it reaches the model. Best-effort heuristics, not a guarantee (a bare random password is not caught); set false to return raw output. See SECURITY.md for exactly what is and is not caught. |
| Object redaction | K8S_REDACT_OBJECTS | true | get_pod / get_resource / list_events (and API error text) mask credential-shaped content that is not in a Secret: env values whose variable name looks secret (DB_PASSWORD, API_KEY, *_TOKEN, *_DSN, ... in pods and in every pod template: Deployments, StatefulSets, Jobs, CronJobs, ...; valueFrom references stay visible), ConfigMap entries with secret-shaped keys or credential-looking values, Route tls.key, command-line --password x ar |