Skip to main content
Glama

MCP Kubernetes Server

by abhijeetka

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_pods

Get all pods in the specified namespace

get_failing_pods

Get all pods with issues in the specified namespace

get_services

Get all services in the specified namespace

describe_pod

Describe a specific pod

get_namespaces

Get all namespaces in the cluster

get_nodes

Get all nodes in the cluster

get_deployments

Get all deployments in the specified namespace

get_jobs

Get all jobs in the specified namespace

get_cronjobs

Get all cronjobs in the specified namespace

get_statefulsets

Get all statefulsets in the specified namespace

get_daemonsets

Get all daemonsets in the specified namespace

expose_service

Expose a resource as a new kubernetes service k8s_object can be pod (po), service (svc), replicationcontroller (rc), deployment (deploy), replicaset (rs) Type for this service: ClusterIP, NodePort, LoadBalancer, or ExternalName. Default is 'ClusterIP'.

port_forward

Port forward a resource to the outside world k8s_object can be a pod, deployment or a service and it should be in the format pod/, deployment/, service/

get_logs

Get the logs of a specific pod

get_events

Get the events of a specific namespace

create_deployment

Create a Kubernetes deployment with specified name, image, namespace and replicas

get_current_context

Get the current Kubernetes context

list_contexts

List all available Kubernetes contexts

use_context

Switch to a specific Kubernetes context Args: context_name: The name of the Kubernetes context to switch to

annotate_resource

Annotate a Kubernetes resource with the specified annotation

Args: resource_type: Type of the resource (e.g., pod, service, deployment) resource_name: Name of the resource to annotate annotation: Annotation to add (e.g., key=value) namespace: Namespace of the resource
remove_annotation

Remove an annotation from a Kubernetes resource

Args: resource_type: Type of the resource (e.g., pod, service, deployment) resource_name: Name of the resource to remove the annotation from annotation_key: Key of the annotation to remove namespace: Namespace of the resource
label_resource

Label a Kubernetes resource with the specified label

Args: resource_type: Type of the resource (e.g., pod, service, deployment) resource_name: Name of the resource to label label: Label to add (e.g., key=value) namespace: Namespace of the resource
remove_label

Remove a label from a Kubernetes resource

Args: resource_type: Type of the resource (e.g., pod, service, deployment) resource_name: Name of the resource to remove the label from label_key: Key of the label to remove namespace: Namespace of the resource
update_deployment

Update a Kubernetes deployment with new replicas count and/or image

Args: name: Name of the deployment to update namespace: Namespace of the deployment replicas: New number of replicas (optional) image: New container image (optional)
delete_resource

Delete a Kubernetes resource

Args: resource_type: Type of the resource (e.g., pod, service, deployment,configmap,secret,ingress,statefulset,replicaset,damonset,newtorkpolicy,rolebinding,role,serviceaccount,job,cronjob) resource_name: Name of the resource to delete namespace: Namespace of the resource

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/abhijeetka/mcp-k8s-server'

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