Skip to main content
Glama

mcp-server-kubernetes

by Flux159

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ALLOW_ONLY_NON_DESTRUCTIVE_TOOLSNoRun the server in a non-destructive mode that disables all destructive operations (delete pods, delete deployments, delete namespaces, etc.)false

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
k8s-diagnoseDiagnose Kubernetes Resources.

Resources

Contextual data attached and managed by the client

NameDescription
Kubernetes PodsList of pods in the default namespace
Kubernetes DeploymentsList of deployments in the default namespace
Kubernetes ServicesList of services in the default namespace
Kubernetes NamespacesList of all namespaces
Kubernetes NodesList of all nodes in the cluster

Tools

Functions exposed to the LLM to take actions

NameDescription
cleanup

Cleanup all managed resources

kubectl_get

Get or list Kubernetes resources by resource type, name, and optionally namespace

kubectl_describe

Describe Kubernetes resources by resource type, name, and optionally namespace

kubectl_apply

Apply a Kubernetes YAML manifest from a string or file

kubectl_delete

Delete Kubernetes resources by resource type, name, labels, or from a manifest file

kubectl_create

Create Kubernetes resources using various methods (from file or using subcommands)

kubectl_logs

Get logs from Kubernetes resources like pods, deployments, or jobs

kubectl_scale

Scale a Kubernetes deployment

kubectl_patch

Update field(s) of a resource using strategic merge patch, JSON merge patch, or JSON patch

kubectl_rollout

Manage the rollout of a resource (e.g., deployment, daemonset, statefulset)

kubectl_context

Manage Kubernetes contexts - list, get, or set the current context

explain_resource

Get documentation for a Kubernetes resource or field

install_helm_chart

Install a Helm chart

upgrade_helm_chart

Upgrade a Helm release

uninstall_helm_chart

Uninstall a Helm release

port_forward

Forward a local port to a port on a Kubernetes resource

stop_port_forward

Stop a port-forward process

exec_in_pod

Execute a command in a Kubernetes pod or container and return the output

list_api_resources

List the API resources available in the cluster

kubectl_generic

Execute any kubectl command with the provided arguments and flags

ping

Verify that the counterpart is still responsive and the connection is alive.

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/Flux159/mcp-server-kubernetes'

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