Skip to main content
Glama
dockndevai

mcp-kubernetes

by dockndevai

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
K8S_MODENoAccess mode: read-only, read-write, or admin. Default is read-only.read-only
K8S_DRY_RUNNoSet to 'true' to validate write/admin tools without calling the Kubernetes API.false
K8S_AUDIT_LOGNoSet to 'false' to disable JSON audit logging to stderr per guarded operation.true
K8S_ALLOW_EXECNoSet to 'true' to enable exec_in_pod (requires admin mode).false
K8S_ALLOW_APPLYNoSet to 'true' to enable apply_manifest (requires read-write mode).false
KUBECONFIG_PATHNoPath to the kubeconfig file. If not set, uses the default kubeconfig or in-cluster service account.
K8S_ALLOW_DELETENoSet to 'true' to enable delete_resource (requires admin mode).false
K8S_CONTEXT_ALLOWLISTNoComma-separated list of kube-config contexts that may be targeted. If not set, all contexts are allowed.
K8S_NAMESPACE_ALLOWLISTNoComma-separated list of namespaces allowed for operations. If not set, all namespaces are allowed.
K8S_PROTECTED_NAMESPACESNoComma-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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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.

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_eventsB

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).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dockndevai/mcp-kubernetes'

If you have feedback or need assistance with the MCP directory API, please join our Discord server