Skip to main content
Glama
htrixtec

MCP Server Kubernetes

by htrixtec

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ENABLE_TELEMETRYNoSet to 'true' to enable OpenTelemetry observability.
OTEL_TRACES_SAMPLERNoSampling strategy for traces (e.g., 'always_on', 'always_off', or a ratio like '0.1').
OTEL_EXPORTER_OTLP_ENDPOINTNoThe OTLP endpoint URL for exporting telemetry data (e.g., http://localhost:4317).
ALLOW_ONLY_NON_DESTRUCTIVE_TOOLSNoSet to 'true' to enable non-destructive mode, disabling destructive operations (delete, uninstall, cleanup, etc.).

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
cleanupC

Cleanup all managed resources

kubectl_getA

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

kubectl_describeA

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

kubectl_applyC

Apply a Kubernetes YAML manifest from a string or file

kubectl_deleteB

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

kubectl_createC

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

kubectl_logsB

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

kubectl_scaleB

Scale a Kubernetes deployment

kubectl_patchB

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

kubectl_rolloutB

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

kubectl_contextB

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

kubectl_reconnectA

Reconnect to the Kubernetes API server by recreating all API clients. Use this after cluster upgrades (e.g., EKS control plane upgrades that rotate ENIs/IPs) to force fresh DNS resolution and new TCP connections.

explain_resourceB

Get documentation for a Kubernetes resource or field

install_helm_chartA

Install a Helm chart with support for both standard and template-based installation

upgrade_helm_chartC

Upgrade an existing Helm chart release

uninstall_helm_chartC

Uninstall a Helm chart release

node_managementB

Manage Kubernetes nodes with cordon, drain, and uncordon operations

port_forwardC

Forward a local port to a port on a Kubernetes resource

stop_port_forwardD

Stop a port-forward process

exec_in_podA

Execute a command in a Kubernetes pod or container and return the output. Command must be an array of strings where the first element is the executable and remaining elements are arguments. This executes directly without shell interpretation for security.

list_api_resourcesC

List the API resources available in the cluster

kubectl_genericB

Execute any kubectl command with the provided arguments and flags

pingA

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

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

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

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