# Does Kubernetes have an MCP server?

**Sort of — Community only.** Kubernetes does not maintain an official MCP server. Community-built servers exist.

## Facts

- Verdict: Community only (Sort of)
- Access: Local server — Runs on your machine over stdio, launched by your MCP client.
- Repository: [containers/kubernetes-mcp-server](https://github.com/containers/kubernetes-mcp-server) — ★ 1.9k, last push 2026-08-11, Apache-2.0
- Maintainer: Containers
- Language: Go
- Category: [Cloud Platforms](https://mcpyet.com/category/cloud-platforms/)
- Verified against vendor docs: 2026-08-10
- GitHub data refreshed: 2026-08-11 (re-checked every 6 hours)

## What it does

> Model Context Protocol (MCP) server for Kubernetes and OpenShift
> — how [containers/kubernetes-mcp-server](https://github.com/containers/kubernetes-mcp-server) describes itself

## The receipts

- **Top community server:** [containers/kubernetes-mcp-server](https://github.com/containers/kubernetes-mcp-server) — ★ 1.9k, pushed 2026-08-11, Apache-2.0 (active)

## How to connect it

Runs on your machine over stdio, launched by your MCP client.

### Claude Code

```sh
claude mcp add kubernetes -- npx -y <package-from-readme>
```

Swap in the exact package and flags from the repo README — most servers need an API key passed as an environment variable. Add `--scope user` to make it available in every project.

### Claude Desktop

Open **Settings → Developer → Edit Config** and add the server to `claude_desktop_config.json`, then restart Claude Desktop:

```json
{
  "mcpServers": {
    "kubernetes": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project:

```json
{
  "mcpServers": {
    "kubernetes": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### VS Code

Add to `.vscode/mcp.json`, then pick the server from Copilot's agent-mode tools menu:

```json
{
  "servers": {
    "kubernetes": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ]
    }
  }
}
```

### ChatGPT

ChatGPT connects to **remote servers only**, and this one runs on your machine. Either expose it through an MCP gateway that gives it a public URL, or use a client with native local support (Claude or Cursor).

## Before you connect this

A community server is unaudited third-party code that will hold your Kubernetes API credentials and see whatever data they unlock. Independent research puts SSRF vulnerabilities in roughly a third of public MCP servers, and 41% ship with no authentication at all.

- Read the source before running it — especially any network calls it makes.
- Check who maintains it and whether commits are recent (this one: last push 2026-08-11).
- Issue a scoped, revocable API key rather than an account-wide token.
- Prefer read-only credentials until you trust it with writes.

## How we know

Neither kubernetes nor kubernetes-sigs orgs ship an MCP server. Strongest community: containers/kubernetes-mcp-server (~1.9k stars, Red Hat-backed). Seed OFFICIAL verdict was wrong.

- GitHub data refreshed 2026-08-11, then every 6 hours.
- Vendor docs verified on 2026-08-10.
- Corrections: hello@mcpyet.com.

## Also in Cloud Platforms

- [Microsoft Azure](https://mcpyet.com/mcp/azure.md) — Official (Yes)
- [Vercel](https://mcpyet.com/mcp/vercel.md) — Official (Yes)
- [AWS](https://mcpyet.com/mcp/aws.md) — Official (Yes)
- [Cloudflare](https://mcpyet.com/mcp/cloudflare.md) — Official (Yes)
- [Redis](https://mcpyet.com/mcp/redis.md) — Official (Yes)
- [HashiCorp](https://mcpyet.com/mcp/hashicorp.md) — Official (Yes)

---

Source: https://mcpyet.com/mcp/kubernetes/ — data refreshed 2026-08-11
