# 使用 Homebrew 安装 mcp-server-kubernetes

查看 mcp-server-kubernetes 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mcp-server-kubernetes
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mcp-server-kubernetes
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:mcp-server-kubernetes
- **软件包管理器:** Homebrew
- **版本:** 4.1.2
- **来源摘要:** MCP Server for kubernetes management commands
- **主页:** <https://github.com/Flux159/mcp-server-kubernetes>
- **最后更新:** 2026-07-30T03:55:56Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mcp-server-kubernetes (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.1.2
## 项目历史与用法

mcp-server-kubernetes is an MCP server that exposes Kubernetes and Helm management operations to MCP clients. It wraps familiar cluster workflows such as get, describe, logs, apply, scale, rollout, port-forward, and Helm operations behind protocol tools.

### 项目历史

The repository was created in December 2024, during the first large wave of MCP servers that mapped existing command-line administration domains into agent-callable tools. Its README describes a server that connects to a Kubernetes cluster and loads kubeconfig from multiple sources.

The project expanded beyond basic kubectl commands into advanced operations, prompts, observability, secrets masking, and safety modes. The advanced README documents authentication priority order, custom kubeconfig paths, environment-based cluster credentials, read-only mode, and non-destructive mode.

### 采用历史

The server is packaged for use through `npx mcp-server-kubernetes`, Homebrew, and client-specific integrations such as Claude Code, Claude Desktop, VS Code, Cursor, Gemini CLI extensions, and mcpb packages. This broad installation documentation reflects the package's role as infrastructure glue rather than a single-client demo.

GitHub metadata showed more than a thousand stars and hundreds of forks by July 2026, and release metadata showed continued 3.x releases in 2026. The project also links to ecosystem badges and MCP catalog listings, reinforcing that it is a packaged server intended for discovery and reuse.

### 使用方式

Users must have `kubectl`, a valid kubeconfig, cluster access, and optionally Helm v3 in PATH. By default, the server loads credentials from `~/.kube/config`, while advanced options allow full kubeconfig YAML or JSON, server/token environment variables, in-cluster config, `KUBECONFIG_PATH`, or the standard `KUBECONFIG` variable.

Typical client usage is a stdio command such as `npx mcp-server-kubernetes`. Operators can enable read-only or non-destructive modes through environment variables when connecting production or shared clusters.

### 为什么软件包爱好者会关心

mcp-server-kubernetes is notable because it packages a high-stakes existing CLI domain rather than a toy MCP demo. The value for package users is in reusing the local Kubernetes credential model and command-line tools while exposing them through MCP.

It also illustrates why package metadata matters for MCP servers: a cluster-management server needs clear docs around credentials, safety modes, dependencies, and client configuration so users understand what a one-line `npx` or Homebrew install is allowed to do.

### 时间线

- 2024: GitHub repository created for Flux159/mcp-server-kubernetes.
- 2025: README documents kubectl, Helm, client configuration, and advanced cluster operations.
- 2025: Advanced README documents authentication priority order and safety modes.
- 2026: 3.x releases continue, including v3.9.2 in June 2026.

### Related projects

- Kubernetes and kubectl provide the underlying cluster-management model.
- Helm is used for optional chart operations.
- Flux159/mcp-chat is documented as a CLI chat client that can interact with the server.

### 来源

- <https://api.github.com/repos/Flux159/mcp-server-kubernetes>
- <https://api.github.com/repos/Flux159/mcp-server-kubernetes/releases>
- <https://github.com/Flux159/mcp-server-kubernetes>
- <https://github.com/Flux159/mcp-server-kubernetes#readme>
- <https://github.com/Flux159/mcp-server-kubernetes/blob/main/ADVANCED_README.md>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.kube/config

## Credential files

- Unix: ~/.kube/config

## Combined YAML source

View the package source record on GitHub. [combined/mcp-server-kubernetes.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mcp-server-kubernetes.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
