MCP Kubernetes Server provides a bridge between AI assistants and Kubernetes clusters through kubectl commands. Developed by Pengfei Ni, this implementation exposes a single tool that executes kubectl commands and returns their output, enabling AI assistants to manage Kubernetes resources directly within conversations. The server runs on stdio transport, making it compatible with Claude Desktop integration, and includes error handling for failed command executions. It's particularly valuable for DevOps workflows that require Kubernetes cluster management without leaving the conversation interface.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Run any kubectl command and return the output. Parameters: command (string)
Run any helm command and return the output. Parameters: command (string)
Fetch any Kubernetes object (or list) as JSON string. Parameters: resource (string), name (string), namespace (string)
Show detailed information about a specific resource or group of resources. Parameters: resource_type (string), name (string, optional), namespace (string, optional), selector (string, optional), all_namespaces (boolean, optional)
Print the logs for a container in a pod. Parameters: pod_name (string), container (string, optional), namespace (string, optional), tail (integer, optional), previous (boolean, optional), since (string, optional), timestamps (boolean, optional), follow (boolean, optional)
List events in the cluster. Parameters: namespace (string, optional), all_namespaces (boolean, optional), field_selector (string, optional), resource_type (string, optional), resource_name (string, optional), sort_by (string, optional), watch (boolean, optional)
List all available APIs in the Kubernetes cluster. Parameters: none
List all Custom Resource Definitions (CRDs) in the Kubernetes cluster. Parameters: none
Display resource usage (CPU/memory) of nodes. Parameters: sort_by (string, optional)
Display resource usage (CPU/memory) of pods. Parameters: namespace (string, optional), all_namespaces (boolean, optional), sort_by (string, optional), selector (string, optional)
Get the status of a rollout for a deployment, daemonset, or statefulset. Parameters: resource_type (string), name (string), namespace (string, optional)
Get the rollout history for a deployment, daemonset, or statefulset. Parameters: resource_type (string), name (string), namespace (string, optional), revision (string, optional)
Check whether an action is allowed. Parameters: verb (string), resource (string), subresource (string, optional), namespace (string, optional), name (string, optional)
Show the subject that you are currently authenticated as. Parameters: none
Create a Kubernetes resource from YAML/JSON content. Parameters: yaml_content (string), namespace (string, optional)
Apply a configuration to a resource by filename or stdin. Parameters: yaml_content (string), namespace (string, optional)
Expose a resource as a new Kubernetes service. Parameters: resource_type (string), name (string), port (integer), target_port (integer, optional), namespace (string, optional), protocol (string, optional), service_name (string, optional), labels (object, optional), selector (string, optional), type (string, optional)
Create and run a particular image in a pod. Parameters: name (string), image (string), namespace (string, optional), command (array, optional), env (object, optional), labels (object, optional), restart (string, optional)
Set resource limits and requests for containers. Parameters: resource_type (string), resource_name (string), namespace (string, optional), containers (array, optional), limits (object, optional), requests (object, optional)
Set the image for a container. Parameters: resource_type (string), resource_name (string), container (string), image (string), namespace (string, optional)
Set environment variables for a container. Parameters: resource_type (string), resource_name (string), container (string), env_dict (object), namespace (string, optional)
Undo a rollout for a deployment, daemonset, or statefulset. Parameters: resource_type (string), name (string), namespace (string, optional), to_revision (string, optional)
Restart a rollout for a deployment, daemonset, or statefulset. Parameters: resource_type (string), name (string), namespace (string, optional)
Pause a rollout for a deployment, daemonset, or statefulset. Parameters: resource_type (string), name (string), namespace (string, optional)
Resume a rollout for a deployment, daemonset, or statefulset. Parameters: resource_type (string), name (string), namespace (string, optional)
Scale a resource. Parameters: resource_type (string), name (string), replicas (integer), namespace (string, optional)
Autoscale a deployment, replica set, stateful set, or replication controller. Parameters: resource_type (string), name (string), min (integer), max (integer), namespace (string, optional), cpu_percent (integer, optional)
Mark a node as unschedulable. Parameters: node_name (string)
Mark a node as schedulable. Parameters: node_name (string)
Drain a node in preparation for maintenance. Parameters: node_name (string), force (boolean, optional), ignore_daemonsets (boolean, optional), delete_local_data (boolean, optional), timeout (integer, optional)
Update the taints on one or more nodes. Parameters: node_name (string), key (string), value (string, optional), effect (string)
Remove the taints from a node. Parameters: node_name (string), key (string), effect (string, optional)
Execute a command in a container. Parameters: pod_name (string), command (string), container (string, optional), namespace (string, optional), stdin (boolean, optional), tty (boolean, optional), timeout (integer, optional)
Forward one or more local ports to a pod. Parameters: resource_type (string), name (string), ports (array), namespace (string, optional), address (string, optional)
Copy files and directories to and from containers. Parameters: src_path (string), dst_path (string), container (string, optional), namespace (string, optional)
Update fields of a resource. Parameters: resource_type (string), name (string), patch (object), namespace (string, optional)
Update the labels on a resource. Parameters: resource_type (string), name (string), labels (object), namespace (string, optional), overwrite (boolean, optional)