mcp/kubectl-mcp-server允许AI助手通过kubectl操作与Kubernetes集群交互的MCP服务器。
什么是MCP服务器?
| 属性 | 详情 |
|---|---|
| Docker镜像 | mcp/kubectl-mcp-server |
| 作者 | rohitg00 |
| 仓库 | [***] |
| 属性 | 详情 |
|---|---|
| Dockerfile | [***] |
| Docker镜像构建者 | Docker Inc. |
| Docker Scout健康评分 | !Docker Scout Health Score |
| 验证签名 | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/kubectl-mcp-server --key [***] |
| 许可证 | MIT License |
| 服务器提供的工具 | 简短描述 |
|---|---|
check_pod_health | 检查Pod的健康状态。 |
create_deployment | 创建新的Deployment。 |
delete_resource | 删除Kubernetes资源。 |
get_api_resources | 列出Kubernetes API资源。 |
get_cluster_roles | 获取所有集群范围的RBAC角色。 |
get_configmaps | 获取指定命名空间中的所有ConfigMap。 |
get_current_context | 获取当前kubeconfig上下文。 |
get_deployments | 获取指定命名空间中的所有Deployment。 |
get_events | 获取指定命名空间中的所有事件。 |
get_logs | 获取Pod的日志。 |
get_namespaces | 获取所有Kubernetes命名空间。 |
get_nodes | 获取集群中的所有节点。 |
get_pod_events | 获取特定Pod的事件。 |
get_pods | 获取指定命名空间中的所有Pod。 |
get_rbac_roles | 获取指定命名空间中的所有RBAC角色。 |
get_resource_usage | 通过kubectl top获取资源使用统计信息。 |
get_secrets | 获取指定命名空间中的所有Secret。 |
get_services | 获取指定命名空间中的所有Service。 |
health_check | 通过ping API服务器检查集群健康状态。 |
install_helm_chart | 安装Helm chart。 |
kubectl_explain | 使用kubectl explain解释Kubernetes资源。 |
port_forward | 将本地端口转发到Pod端口。 |
scale_deployment | 扩缩容Deployment。 |
switch_context | 切换当前kubeconfig上下文。 |
uninstall_helm_chart | 卸载Helm发布。 |
upgrade_helm_chart | 升级Helm发布。 |
check_pod_health检查Pod的健康状态。
| 参数 | 类型 | 描述 |
|---|---|---|
pod_name | string | |
namespace | string 可选 |
create_deployment创建新的Deployment。
| 参数 | 类型 | 描述 |
|---|---|---|
image | string | |
name | string | |
replicas | integer | |
namespace | string 可选 |
delete_resource删除Kubernetes资源。
| 参数 | 类型 | 描述 |
|---|---|---|
name | string | |
resource_type | string | |
namespace | string 可选 |
get_api_resources列出Kubernetes API资源。
get_cluster_roles获取所有集群范围的RBAC角色。
get_configmaps获取指定命名空间中的所有ConfigMap。
| 参数 | 类型 | 描述 |
|---|---|---|
namespace | string 可选 |
get_current_context获取当前kubeconfig上下文。
get_deployments获取指定命名空间中的所有Deployment。
| 参数 | 类型 | 描述 |
|---|---|---|
namespace | string 可选 |
get_events获取指定命名空间中的所有事件。
| 参数 | 类型 | 描述 |
|---|---|---|
namespace | string 可选 |
get_logs获取Pod的日志。
| 参数 | 类型 | 描述 |
|---|---|---|
pod_name | string | |
container | string 可选 | |
namespace | string 可选 | |
tail | string 可选 |
get_namespaces获取所有Kubernetes命名空间。
get_nodes获取集群中的所有节点。
get_pod_events获取特定Pod的事件。
| 参数 | 类型 | 描述 |
|---|---|---|
pod_name | string | |
namespace | string 可选 |
get_pods获取指定命名空间中的所有Pod。
| 参数 | 类型 | 描述 |
|---|---|---|
namespace | string 可选 |
get_rbac_roles获取指定命名空间中的所有RBAC角色。
| 参数 | 类型 | 描述 |
|---|---|---|
namespace | string 可选 |
get_resource_usage通过kubectl top获取资源使用统计信息。
| 参数 | 类型 | 描述 |
|---|---|---|
namespace | string 可选 |
get_secrets获取指定命名空间中的所有Secret。
| 参数 | 类型 | 描述 |
|---|---|---|
namespace | string 可选 |
get_services获取指定命名空间中的所有Service。
| 参数 | 类型 | 描述 |
|---|---|---|
namespace | string 可选 |
health_check通过ping API服务器检查集群健康状态。
install_helm_chart安装Helm chart。
| 参数 | 类型 | 描述 |
|---|---|---|
chart | string | |
name | string | |
namespace | string | |
repo | string 可选 | |
values | string 可选 |
kubectl_explain使用kubectl explain解释Kubernetes资源。
| 参数 | 类型 | 描述 |
|---|---|---|
resource | string |
port_forward将本地端口转发到Pod端口。
| 参数 | 类型 | 描述 |
|---|---|---|
local_port | integer | |
pod_name | string | |
pod_port | integer | |
namespace | string 可选 |
scale_deployment扩缩容Deployment。
| 参数 | 类型 | 描述 |
|---|---|---|
name | string | |
replicas | integer | |
namespace | string 可选 |
switch_context切换当前kubeconfig上下文。
| 参数 | 类型 | 描述 |
|---|---|---|
context_name | string |
uninstall_helm_chart卸载Helm发布。
| 参数 | 类型 | 描述 |
|---|---|---|
name | string | |
namespace | string |
upgrade_helm_chart升级Helm发布。
| 参数 | 类型 | 描述 |
|---|---|---|
chart | string | |
name | string | |
namespace | string | |
repo | string 可选 | |
values | string 可选 |
json{ "mcpServers": { "kubectl-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "-v", "/local-directory:/local-directory", "mcp/kubectl-mcp-server" ] } } }
为什么使用Docker运行MCP服务器更安全?



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务