kubernetes-mcp-server

Level ALocal

Model Context Protocol (MCP) server for Kubernetes and OpenShift

Overview

An MCP server for Kubernetes and OpenShift, implemented natively in Go and talking directly to the Kubernetes API without wrapping kubectl or helm. It supports CRUD on any resource, pod logs and exec, namespaces and events, Helm install/uninstall, Tekton pipelines, and multiple clusters at once. Distributed as native binaries for Linux, macOS, and Windows, plus npm, Python, and container images.

⭐ 2.3kDevOps & DeploymentGoRepo ↗Updated 2026-11-20

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "kubernetes-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "kubernetes-mcp-server@latest"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/containers/kubernetes-mcp-server

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "kubernetes-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "kubernetes-mcp-server@latest"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers