MCP K8s MCP Server

1. Create [kube-config](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/) for accessing kubernetes cluster. 2.

Local serverstdio

What is the MCP K8s MCP server?

Mcp k8s mcp server connects MCP K8s to AI assistants that speak the Model Context Protocol. 1. Create kube-config for accessing kubernetes cluster. 2. Build a docker image using Dockerfile. docker build . -t mcp:0.0.1.

What MCP K8s does

  1. Create kube-config for accessing kubernetes cluster. 2. Build a docker image using Dockerfile. docker build . -t mcp:0.0.1

Installing the mcp k8s mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Where it fits

Cloud and DevOps servers put infrastructure on speaking terms with your assistant, so "why is this broken?" is answered from real state rather than a generic checklist. MCP K8s sits in that group. Worth comparing against the other cloud devops servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by mrjbtc.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mcp k8s mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

How to install the MCP K8s MCP server

{
  "mcpServers": {
    "k8s-mcp": {
       "command": "docker",
        "args": [
          "run",
          "--rm",
          "-i",
          "mcp:0.0.1",
          "uv",
          "run",
          "src/main.py"
        ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Frequently asked questions

It connects MCP K8s to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with MCP K8s directly.