Kai 是一个通过像 Claude 和 Ollama 这样的大型语言模型客户端管理 Kubernetes 集群的 Model Context Protocol (MCP) 服务器。
Kai MCP 服务器在大型语言模型(LLMs)客户端与您的 Kubernetes 集群之间提供了一个桥梁,使用户能够通过自然语言与其 Kubernetes 资源进行交互。该服务器提供了一整套工具来管理集群、命名空间、Pod、部署、服务和其他 Kubernetes 资源。
服务器默认连接到您当前的上下文。确保您有:
对配置了 kubectl 的 Kubernetes 集群的访问权限(例如 minikube、Rancher Desktop、EKS、GKE 等)
要安装 Kubernetes MCP 服务器,请运行:
go install github.com/basebandit/kai/cmd/kai
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
通过编辑 claude_desktop_config.json 将服务器添加到您的 Claude for Desktop 配置中:
{
"mcpServers": {
"kubernetes": {
"command": "/path/to/kai binary"
}
}
}
