Kubernetes MCP 服务器

Kubernetes MCP 服务器

一个使用自然语言调试和管理 Kubernetes 的 MCP 服务器。

快速入门

  1. 安装 Claude Desktop。
  2. 安装此 MCP 服务器:
    • 使用 uv:运行 uv pip install git+https://github.com/ehiaig/kubernetes-mcp-server
    • 或克隆仓库:git clone https://github.com/ehiaig/kubernetes-mcp-server.git
  3. 配置 Claude Desktop 的 JSON 文件:
    • MacOS 路径:~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows 路径:%APPDATA%/Claude/claude_desktop_config.json
    • 添加以下内容到配置文件(根据实际情况修改路径):
      {
        "kubernetes-mcp-server": {
          "command": "/path/to/your/.local/bin/uv",
          "args": [
            "--directory",
            "/path/to/this/repo/kubernetes-mcp-server/src/k8s_manager",
            "run",
            "-m",
            "k8s_manager"
          ]
        }
      }
      
  4. 启动服务,开始调试或管理 Kubernetes 集群。