mcp-kubernetes
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| K8S_MODE | No | Access mode: read-only, read-write, or admin. Default is read-only. | read-only |
| K8S_DRY_RUN | No | Set to 'true' to validate write/admin tools without calling the Kubernetes API. | false |
| K8S_AUDIT_LOG | No | Set to 'false' to disable JSON audit logging to stderr per guarded operation. | true |
| K8S_ALLOW_EXEC | No | Set to 'true' to enable exec_in_pod (requires admin mode). | false |
| K8S_ALLOW_APPLY | No | Set to 'true' to enable apply_manifest (requires read-write mode). | false |
| KUBECONFIG_PATH | No | Path to the kubeconfig file. If not set, uses the default kubeconfig or in-cluster service account. | |
| K8S_ALLOW_DELETE | No | Set to 'true' to enable delete_resource (requires admin mode). | false |
| K8S_CONTEXT_ALLOWLIST | No | Comma-separated list of kube-config contexts that may be targeted. If not set, all contexts are allowed. | |
| K8S_NAMESPACE_ALLOWLIST | No | Comma-separated list of namespaces allowed for operations. If not set, all namespaces are allowed. | |
| K8S_PROTECTED_NAMESPACES | No | Comma-separated list of namespaces that can be read but never mutated or deleted. | kube-system,kube-public,kube-node-lease |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_contextsA | List the contexts (clusters) available in the loaded kube-config. |
| list_namespacesA | List namespaces in the cluster. Namespaces outside the allowlist are filtered out. |
| list_podsA | List pods in a namespace with status, readiness, restarts, and node. |
| get_podA | Fetch the full representation of a single pod. Credential-shaped env values and arguments are masked. |
| get_pod_logsA | Fetch recent logs from a pod container. |
| list_deploymentsA | List deployments in a namespace with replica status. |
| list_servicesA | List services in a namespace with type and cluster IP. |
| list_nodesA | List cluster nodes with readiness and kubelet version. |
| list_eventsA | List recent events in a namespace — useful for diagnosing failures. |
| get_resourceA | Read an arbitrary Kubernetes object by apiVersion/kind/name (e.g. apiVersion=apps/v1, kind=Deployment). Secret values are always redacted; credential-shaped env values and ConfigMap entries are masked. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
The list_* tools each target a clearly distinct Kubernetes resource type, and get_pod_logs is unambiguous. The only mild overlap is between get_pod and the generic get_resource (which can also fetch a pod by apiVersion/kind/name); descriptions hint that get_pod returns a fuller/masked representation, but an agent could reasonably pick either for a pod read.
Every tool follows the same snake_case verb_noun pattern (get_*, list_*), with resource names spelled consistently (pod, deployments, namespaces). Even the compound get_pod_logs fits the convention.
Ten tools is a well-scoped set for a read-only Kubernetes diagnostics server: pod inspection, logs, events, and the common workload/node/service listings. Each tool covers a distinct need with no filler.
Read coverage is strong — get_resource acts as a universal escape hatch for any kind not covered by a dedicated getter, and the list tools cover the main diagnostic surfaces. The obvious gap is any mutating or lifecycle operation (scale, rollout restart, delete, apply), so an agent cannot act on what it observes, but this appears to be a deliberate read-only scope.