kubectl-mcp-server

MCP server for Kubernetes: the agent reads cluster state, diagnoses pod failures and runs operations through kubectl

  • 972 ★ on the repository
  • Last commit
  • MIT
MCP server

Broad access

Why this level

  • Runs real kubectl operations against the cluster, including mutating ones
  • Its scope equals the kubeconfig permissions
  • An agent mistake can affect a live cluster
All reasons and checks

rohitg00/kubectl-mcp-server

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/kubectl-mcp-server

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • Runs real kubectl operations against the cluster, including mutating ones
  • Its scope equals the kubeconfig permissions
  • An agent mistake can affect a live cluster

This is third-party code. Review the repository files before installing.

What it does

The server connects Kubernetes to an agent through your existing kubeconfig. The agent sees pods, deployments and namespaces, explains why a pod is crashing, works through network problems and creates or scales resources. It installs via npx, pip or docker and fits Claude Desktop, Cursor, Windsurf and other MCP clients. It supports the stdio transport for local use and sse to run as a networked service. The repository also ships skill sets on Kubernetes topics for agents that read them.

Who it is for. For devops engineers and developers who operate Kubernetes clusters and want to drive them from an agent.

Good fit when

  • You need to quickly find why a pod or deployment is failing
  • You want to inspect cluster state without typing kubectl by hand
  • You want to create or scale a resource from a chat with the agent

Not a fit when

  • You have no cluster access or rights in the kubeconfig
  • You do not want to give an agent write access to a live cluster
  • You need guarantees that the agent will not run a dangerous operation without confirmation

Example request

Show all pods in the kube-system namespace and explain why nginx-deployment is crashing

MCP

Transport
stdio, sse
Authentication
not required

Environment variables

KUBECONFIG
Path to a kubeconfig file when you need one other than the environment default

Limitations

It works against the cluster and permissions set in your kubeconfig, so its scope equals that context's rights. The pip install needs Python 3.9 or newer, the npx path needs Node.js. The server runs real kubectl operations, including mutating ones, so the risk of a mistake is on the user.

How to disable. Remove the kubernetes entry from your MCP client config. If installed via pip or npm, uninstall the kubectl-mcp-server package.

FAQ

How do I run it without a system install?

Run npx -y kubectl-mcp-server so nothing is installed globally. There are also pip and a docker image.

Where does it get cluster access?

From your kubeconfig. Set the KUBECONFIG variable to point at a specific config file.

Discussion

No questions or reviews yet.

Kubernetes MCP

MCP Server Kubernetes

Editors’ pick

MCP server for managing a Kubernetes cluster through kubectl and Helm, with a non-destructive mode

MCP serverBroad access1.6KRepository stars
Official

K8M MCP gives an agent conversational access to Kubernetes resources, pod logs and operations across multiple connected clusters.

MCP serverBroad access896Repository stars
Editors’ pick

A Go MCP server for Kubernetes and OpenShift: resources, pods, logs, Helm and Tekton straight through the cluster API

MCP serverBroad access2.2KRepository stars

An MCP server in Go: an agent reads pods, logs and events of a Kubernetes cluster, changes resources and runs commands in pods

MCP serverBroad access382Repository stars

A CLI and Kubernetes controller for developing, building and deploying MCP servers. For platform teams, written in Go

CLIBroad access474Repository stars

A Go MCP server for Kubernetes: read any cluster resource and pod logs, with apply and exec in write mode

MCP serverBroad access59Repository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
kubectl-mcp-server (this card)nonot required972
Unreal Engine MCP Servernonot required1,032Unreal Engine assets, actors and blueprints
Android MCPnonot required924controls an Android device through ADB
VectorCodenonot required874code RAG for LLMs

README in short

The README leads with an npx quick start, plus pip installs and docker images from Docker Hub and GHCR. It documents configs for Claude Desktop, Cursor, Windsurf and running via python -m kubectl_mcp_tool.mcp_server with KUBECONFIG. It includes example prompts for troubleshooting, deployments and networking, plus the CLI commands info, tools and call. The project is listed in the CNCF Landscape and is MIT licensed.

README badge

Report a problem