Complete AI Training

MCP server · Developer tools

Kubernetes MCP server (MKP)

by StacklokLabs

Let your AI look at and change things in your Kubernetes cluster, like pods, deployments and services.

Flow diagram: you ask your AI “Which pods are running in my cluster?”, the Kubernetes MCP server (MKP) connects it to Kubernetes cluster, and you get back cluster info in your chat.

MKP is a helper that connects your AI assistant to a Kubernetes cluster. Kubernetes is the system many companies use to run their apps in the cloud, and it keeps track of things like pods, deployments and services. If you work with a cluster and want to ask your AI questions about it, or have it make small changes, this is for you.

What is an MCP server? The 30-second version

On its own, your AI can only chat with you. It cannot see your cluster or touch anything in it. An MCP server is a small helper program that gives your AI a new skill or a connection to another system. This one connects your AI to Kubernetes, so it can look up what is running there and, if you allow it, make changes when you ask.

What this MCP server does

You ask your AI something about your cluster, like which pods are running or what a deployment looks like. Your AI sends that request to MKP, which talks directly to the Kubernetes API server for you. MKP fetches the answer, such as a list of resources, the details of one resource, or the logs from a pod. If write mode is turned on, it can also create or update resources, or run a command inside a pod. Then the result comes back into your chat in plain form.

Flow diagram: you ask your AI “Which pods are running in my cluster?”, the Kubernetes MCP server (MKP) connects it to Kubernetes cluster, and you get back cluster info in your chat. Click to zoom

What you can do with it

  • List the resources in your cluster, like pods, deployments and services
  • Get the details or status of one specific resource
  • Read the logs from a pod, including from a chosen container
  • Create or update a resource from a manifest you provide
  • Run a command inside a pod and see the output
  • Filter lists by label or by which annotations to include
  • Look up clustered resources like nodes

What it gives back to you

You get answers in your chat: lists of resources with their names and basic details, the full details of a single resource, or log lines from a pod. When it runs a command in a pod, you see the standard output and any error text. If it creates or updates something, it tells you what it applied.

Before you start

What you need

  • A Kubernetes cluster you can reach
  • A kubeconfig file, which is the small file that holds your cluster login details
  • Go 1.24 or later and the Task tool if you build it yourself from the source code

Good to know

If you turn on write mode, this server can create, change or delete things in your live cluster and run commands inside your pods, so be careful and check before you let it make changes.

Install it with your AI

Add Kubernetes MCP server (MKP) to your AI, no technical skills needed

You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.

Sign in to get the install prompt

Members get a ready-made prompt that lets the Claude desktop app check Kubernetes MCP server (MKP), install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 4,066 MCP servers here for you.

Sign in Become a member

Who it's for

People who work with Kubernetes clusters, like developers, DevOps engineers and platform teams, who want to ask their AI about the cluster instead of typing commands by hand.