# MCP Server Kubernetes (MCP server)

> MCP Server Kubernetes is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP Server for kubernetes management commands. It has 1,608 GitHub stars, is released under the MIT license and runs locally with npx -y mcp-server-kubernetes.

MCP Server that can connect to a Kubernetes cluster and manage it. Supports loading kubeconfig from multiple sources in priority order.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/Flux159/mcp-server-kubernetes |
| GitHub stars | 1,608 |
| License | MIT |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: mcp-server-kubernetes |
| Remote URL | none |
| Needs API key | no |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Cloud & DevOps |
| Latest release | v4.1.9 (Oct 2, 2026) |
| Last commit | Oct 14, 2026 |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server-kubernetes": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-kubernetes"
      ],
      "env": {
        "ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS=your-value --transport stdio mcp-server-kubernetes -- npx -y mcp-server-kubernetes
```

### Cursor (.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-kubernetes": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-kubernetes"
      ],
      "env": {
        "ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-server-kubernetes": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-kubernetes"
      ],
      "env": {
        "ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS": "your-value"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS`: Shown in the README's example configuration.

## Similar MCP servers

- [TerraVision](https://appsgit.com/mcp-servers/terravision): Draw cloud architecture diagrams with official AWS, Azure and GCP icons from a prompt or Terraform. (1,662 stars, AGPL-3.0)
- [Terraform](https://appsgit.com/mcp-servers/terraform): Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise. (1,554 stars, MPL-2.0, official, needs API key)
- [Azure DevOps MCP](https://appsgit.com/mcp-servers/azure-devops-mcp): The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents. (2,068 stars, MIT, official)
- [Superlog](https://appsgit.com/mcp-servers/superlog): Open-source agent that observes and fixes your application. (1,471 stars, Apache-2.0, official)
- [Kubernetes MCP Server](https://appsgit.com/mcp-servers/kubernetes-mcp-server): A Model Context Protocol (MCP) server for Kubernetes and OpenShift. (2,183 stars, Apache-2.0)
- [PrismerCloud](https://appsgit.com/mcp-servers/prismercloud): The Intelligence Runtime for AI Agents Where agents evolve, collaborate, and remember. (1,364 stars, MIT, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/mcp-server-kubernetes
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
