mcp-kubernetes-server MCP Server

The mcp-kubernetes-server is a server implementing the Model Context Protocol (MCP) to enable AI assistants (such as Claude, Cursor, and GitHub Copilot) to interact with Kubernetes clusters. It acts…

Local serverstdio

What is the mcp-kubernetes-server MCP Server?

mcp-kubernetes-server is an MCP project maintained in the feiskyer/mcp-kubernetes-server repository. The maintainer describes its purpose as “The mcp-kubernetes-server is a server implementing the Model Context Protocol (MCP) to enable AI assistants (such as Claude, Cursor, and GitHub Copilot) to interact with…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using docker. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
kubectlRun any kubectl command and return the output
helmRun any helm command and return the output
k8s_getFetch any Kubernetes object (or list) as JSON string
k8s_describeShow detailed information about a specific resource or group of resources
k8s_logsPrint the logs for a container in a pod
k8s_eventsList events in the cluster
k8s_apisList all available APIs in the Kubernetes cluster
k8s_crdsList all Custom Resource Definitions (CRDs) in the Kubernetes cluster
k8s_top_nodesDisplay resource usage (CPU/memory) of nodes
k8s_top_podsDisplay resource usage (CPU/memory) of pods
k8s_rollout_statusGet the status of a rollout for a deployment, daemonset, or statefulset
k8s_rollout_historyGet the rollout history for a deployment, daemonset, or statefulset
k8s_auth_can_iCheck whether an action is allowed
k8s_auth_whoamiShow the subject that you are currently authenticated as
k8s_createCreate a Kubernetes resource from YAML/JSON content
k8s_applyApply a configuration to a resource by filename or stdin
k8s_exposeExpose a resource as a new Kubernetes service
k8s_runCreate and run a particular image in a pod
k8s_set_resourcesSet resource limits and requests for containers
k8s_set_imageSet the image for a container
k8s_set_envSet environment variables for a container
k8s_rollout_undoUndo a rollout for a deployment, daemonset, or statefulset
k8s_rollout_restartRestart a rollout for a deployment, daemonset, or statefulset
k8s_rollout_pausePause a rollout for a deployment, daemonset, or statefulset
k8s_rollout_resumeResume a rollout for a deployment, daemonset, or statefulset
k8s_scaleScale a resource
k8s_autoscaleAutoscale a deployment, replica set, stateful set, or replication controller
k8s_cordonMark a node as unschedulable
k8s_uncordonMark a node as schedulable
k8s_drainDrain a node in preparation for maintenance
k8s_taintUpdate the taints on one or more nodes
k8s_untaintRemove the taints from a node
k8s_exec_commandExecute a command in a container
k8s_port_forwardForward one or more local ports to a pod
k8s_cpCopy files and directories to and from containers
k8s_patchUpdate fields of a resource
k8s_labelUpdate the labels on a resource
k8s_annotateUpdate the annotations on a resource
k8s_deleteDelete resources by name, label selector, or all resources in a namespace

How to install the mcp-kubernetes-server MCP Server

{
  "mcpServers": {
    "kubernetes": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--mount",
        "type=bind,src=/home/username/.kube/config,dst=/home/mcp/.kube/config",
        "ghcr.io/feiskyer/mcp-kubernetes-server"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.