MCP Catalogs
首页kubectl-mcp-server screenshot

kubectl-mcp-server

by rohitg00·888·综合分 54

一个通过自然语言管理 Kubernetes 基础设施的综合性 MCP 服务器。

ops-infradeveloper-toolssecurity
168
Forks
3
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

kubectl-mcp-server 提供 253 个强大工具,通过自然语言与 AI 助手交互来管理 Kubernetes 集群。用户无需记忆 kubectl 命令即可调试 Pod、部署应用、优化成本、审计安全、管理 Helm 图表和可视化仪表板。服务器支持 Claude、Cursor、Windsurf 和 Copilot 等多个 AI 助手,并提供 npx 和 Python 两种安装选项。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:使用自然语言解决 Pod 崩溃和网络问题
:通过简单命令部署和扩展应用
:跨命名空间审计安全配置
:支持哪些 AI 助手?
:可以在生产环境中使用吗?

什么时候选它

当您需要通过自然语言管理 Kubernetes 并且已经在使用 Claude 或 Cursor 等 AI 助手进行开发工作时,选择此工具。

什么时候不要选它

如果您需要对 kubectl 命令进行细粒度控制,或者需要超出 MCP 协议可暴露范围的功能,请避免使用。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • get_pods

    Retrieves information about pods in the Kubernetes cluster

  • get_logs

    Retrieves logs from specified pods

  • create_deployment

    Creates a new deployment in the Kubernetes cluster

  • scale_deployment

    Scales an existing deployment to a specified replica count

  • get_services

    Retrieves information about services in the cluster

  • diagnose_network_connectivity

    Diagnoses network connectivity issues between services

  • audit_rbac_permissions

    Audits RBAC permissions across the cluster

  • check_secrets_security

    Checks for insecure secrets and configurations

  • get_cluster_info

    Retrieves general information about the Kubernetes cluster

  • get_deployments

    Retrieves information about deployments in the cluster

  • get_ingress

    Retrieves information about Ingress resources in the cluster

  • exec_in_pod

    Executes commands inside a running pod

可对比工具

kube-gptkubetailkubectl-shellk9s

安装

使用 npx 快速开始(推荐)

npx -y kubectl-mcp-server

使用 Python 安装

pip install kubectl-mcp-server[ui]

Claude Desktop 配置

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "kubernetes": {
      "command": "npx",
      "args": ["-y", "kubectl-mcp-server"]
    }
  }
}

FAQ

支持哪些 AI 助手?
该服务器支持 Claude Desktop/Claude Code、Cursor、Windsurf、GitHub Copilot 和 15+ 其他兼容 MCP 的 AI 助手。
可以在生产环境中使用吗?
是的,该服务器包含 OAuth 2.1 身份验证、RBAC 验证、非破坏模式、秘密掩码功能,并可以使用 kMCP 在集群内部署。

Hacker News 讨论

开发者社区最近的相关讨论。

kubectl-mcp-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。