轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥8起我的订单
文档
工具
提交工单页面收录
kubernetes

mcp/kubernetes

mcp(Model Context Protocol)

用于连接到Kubernetes集群并进行管理的Docker镜像

19 次收藏下载次数: 0状态:社区镜像维护者:mcp(Model Context Protocol)仓库类型:镜像最近更新:2 个月前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这段话即可:

请先阅读并遵守:https://xuanyuan.cloud/agents.md

未读文档前不要生成 pull 命令或排错方案。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

DockerHub 官方简介
轩辕镜像中文简介
下载命令
镜像标签列表与下载命令
使用轩辕镜像,把时间还给真正重要的事。
点击查看

Kubernetes MCP Server

Connect to a Kubernetes cluster and manage it.

https://www.anthropic.com/news/model-context-protocol

MCP Info

AttributeDetails
Docker Imagehttps://hub.docker.com/repository/docker/mcp/kubernetes
Authorhttps://github.com/Flux159
Repositoryhttps://github.com/Flux159/mcp-server-kubernetes

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/Flux159/mcp-server-kubernetes/blob/662a***fa79de1e4fa4f53faa25191c41481dc/Dockerfile
Commit662a19193fa79de1e4fa4f53faa25191c41481dc
Docker Image built byDocker Inc.
Docker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/kubernetes --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceMIT License

Available Tools (23)

Tools provided by this ServerShort Description
cleanupCleanup all managed resources
exec_in_podExecute a command in a Kubernetes pod or container and return the output.
explain_resourceGet documentation for a Kubernetes resource or field
install_helm_chartInstall a Helm chart with support for both standard and template-based installation
kubectl_applyApply a Kubernetes YAML manifest from a string or file
kubectl_contextManage Kubernetes contexts - list, get, or set the current context
kubectl_createCreate Kubernetes resources using various methods (from file or using subcommands)
kubectl_deleteDelete Kubernetes resources by resource type, name, labels, or from a manifest file
kubectl_describeDescribe Kubernetes resources by resource type, name, and optionally namespace
kubectl_genericExecute any kubectl command with the provided arguments and flags
kubectl_getGet or list Kubernetes resources by resource type, name, and optionally namespace
kubectl_logsGet logs from Kubernetes resources like pods, deployments, or jobs
kubectl_patchUpdate field(s) of a resource using strategic merge patch, JSON merge patch, or JSON patch
kubectl_reconnectReconnect to the Kubernetes API server by recreating all API clients.
kubectl_rolloutManage the rollout of a resource (e.g., deployment, daemonset, statefulset)
kubectl_scaleScale a Kubernetes deployment
list_api_resourcesList the API resources available in the cluster
node_managementManage Kubernetes nodes with cordon, drain, and uncordon operations
pingVerify that the counterpart is still responsive and the connection is alive.
port_forwardPort Forward
stop_port_forwardStop Port Forward
uninstall_helm_chartUninstall a Helm chart release
upgrade_helm_chartUpgrade an existing Helm chart release

Tools Details

Tool: cleanup

Cleanup all managed resources

Tool: exec_in_pod

Execute a command in a Kubernetes pod or container and return the output. Command must be an array of strings where the first element is the executable and remaining elements are arguments. This executes directly without shell interpretation for security.

ParametersTypeDescription
commandarrayCommand to execute as an array of strings (e.g. ["ls", "-la", "/app"]). First element is the executable, remaining are arguments. Shell operators like pipes, redirects, or command chaining are not supported - use explicit array format for security.
namestringName of the pod to execute the command in
containerstring optionalContainer name (required when pod has multiple containers)
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
namespacestring optionalKubernetes namespace
timeoutnumber optionalTimeout for command - 60000 milliseconds if not specified

This tool may perform destructive updates.


Tool: explain_resource

Get documentation for a Kubernetes resource or field

ParametersTypeDescription
resourcestringResource name or field path (e.g. 'pods' or 'pods.spec.containers')
apiVersionstring optionalAPI version to use (e.g. 'apps/v1')
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
outputstring optionalOutput format (plaintext or plaintext-openapiv2)
recursiveboolean optionalPrint the fields of fields recursively

This tool is read-only. It does not modify its environment.


Tool: install_helm_chart

Install a Helm chart with support for both standard and template-based installation

ParametersTypeDescription
chartstringChart name (e.g., 'nginx') or path to chart directory
namestringName of the Helm release
namespacestringKubernetes namespace
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
createNamespaceboolean optionalCreate namespace if it doesn't exist
repostring optionalHelm repository URL (optional if using local chart path)
useTemplateboolean optionalUse helm template + kubectl apply instead of helm install (bypasses auth issues)
valuesobject optionalCustom values to override chart defaults
valuesFilestring optionalPath to values file (alternative to values object)

This tool may perform destructive updates.


Tool: kubectl_apply

Apply a Kubernetes YAML manifest from a string or file

ParametersTypeDescription
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
dryRunboolean optionalIf true, only validate the resource, don't actually execute the operation
filenamestring optionalPath to a YAML file to apply (optional - use either manifest or filename)
forceboolean optionalIf true, immediately remove resources from API and bypass graceful deletion
manifeststring optionalYAML manifest to apply
namespacestring optionalKubernetes namespace

This tool may perform destructive updates.


Tool: kubectl_context

Manage Kubernetes contexts - list, get, or set the current context

ParametersTypeDescription
operationstringOperation to perform: list contexts, get current context, or set current context
detailedboolean optionalInclude detailed information about the context
namestring optionalName of the context to set as current (required for set operation)
outputstring optionalOutput format
showCurrentboolean optionalWhen listing contexts, highlight which one is currently active

This tool is read-only. It does not modify its environment.


Tool: kubectl_create

Create Kubernetes resources using various methods (from file or using subcommands)

ParametersTypeDescription
annotationsarray optionalAnnotations to apply to the resource (e.g. ["key1=value1", "key2=value2"])
commandarray optionalCommand to run in the container
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
dryRunboolean optionalIf true, only validate the resource, don't actually execute the operation
filenamestring optionalPath to a YAML file to create resources from
fromFilearray optionalPath to file for creating configmap (e.g. ["key1=/path/to/file1", "key2=/path/to/file2"])
fromLiteralarray optionalKey-value pair for creating configmap (e.g. ["key1=value1", "key2=value2"])
imagestring optionalImage to use for the containers in the deployment
labelsarray optionalLabels to apply to the resource (e.g. ["key1=value1", "key2=value2"])
manifeststring optionalYAML manifest to create resources from
namestring optionalName of the resource to create
namespacestring optionalKubernetes namespace
outputstring optionalOutput format. One of: json
portnumber optionalPort that the container exposes
replicasnumber optionalNumber of replicas to create for the deployment
resourceTypestring optionalType of resource to create (namespace, configmap, deployment, service, etc.)
schedulestring optionalCron schedule expression for the CronJob (e.g. "*/5 * * * *")
secretTypestring optionalType of secret to create (generic, docker-registry, tls)
serviceTypestring optionalType of service to create (clusterip, nodeport, load***, externalname)
suspendboolean optionalWhether to suspend the CronJob
tcpPortarray optionalPort pairs for tcp service (e.g. ["80:8080", "443:8443"])
validateboolean optionalIf true, validate resource schema against server schema

Tool: kubectl_delete

Delete Kubernetes resources by resource type, name, labels, or from a manifest file

ParametersTypeDescription
allNamespacesboolean optionalIf true, delete resources across all namespaces
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
filenamestring optionalPath to a YAML file to delete resources from (optional)
forceboolean optionalIf true, immediately remove resources from API and bypass graceful deletion
gracePeriodSecondsnumber optionalPeriod of time in seconds given to the resource to terminate gracefully
labelSelectorstring optionalDelete resources matching this label selector (e.g. 'app=nginx')
manifeststring optionalYAML manifest defining resources to delete (optional)
namestring optionalName of the resource to delete
namespacestring optionalKubernetes namespace
resourceTypestring optionalType of resource to delete (e.g., pods, deployments, services, etc.)

This tool may perform destructive updates.


Tool: kubectl_describe

Describe Kubernetes resources by resource type, name, and optionally namespace

ParametersTypeDescription
namestringName of the resource to describe
resourceTypestringType of resource to describe (e.g., pods, deployments, services, etc.)
allNamespacesboolean optionalIf true, describe resources across all namespaces
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
namespacestring optionalKubernetes namespace

This tool is read-only. It does not modify its environment.


Tool: kubectl_generic

Execute any kubectl command with the provided arguments and flags

ParametersTypeDescription
commandstringThe kubectl command to execute (e.g. patch, rollout, top)
allNamespacesboolean optionalIf true, run the command across all namespaces
argsarray optionalAdditional command arguments
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
flagsobject optionalCommand flags as key-value pairs
namestring optionalResource name
namespacestring optionalKubernetes namespace
outputFormatstring optionalOutput format (e.g. json, yaml, wide)
resourceTypestring optionalResource type (e.g. pod, deployment)
subCommandstring optionalSubcommand if applicable (e.g. 'history' for rollout)

This tool may perform destructive updates.


Tool: kubectl_get

Get or list Kubernetes resources by resource type, name, and optionally namespace

ParametersTypeDescription
resourceTypestringType of resource to get (e.g., pods, deployments, services, configmaps, events, etc.)
allNamespacesboolean optionalIf true, list resources across all namespaces
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
fieldSelectorstring optionalFilter resources by field selector (e.g. 'metadata.name=my-pod')
labelSelectorstring optionalFilter resources by label selector (e.g. 'app=nginx')
namestring optionalName of the resource (optional - if not provided, lists all resources of the specified type)
namespacestring optionalKubernetes namespace
outputstring optionalOutput format
sortBystring optionalSort events by a field (default: lastTimestamp). Only applicable for events.

This tool is read-only. It does not modify its environment.


Tool: kubectl_logs

Get logs from Kubernetes resources like pods, deployments, or jobs

ParametersTypeDescription
namestringName of the resource
namespacestringKubernetes namespace
resourceTypestringType of resource to get logs from
containerstring optionalContainer name (required when pod has multiple containers)
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
followboolean optionalFollow logs output (not recommended, may cause timeouts)
labelSelectorstring optionalFilter resources by label selector
previousboolean optionalInclude logs from previously terminated containers
sincestring optionalShow logs since relative time (e.g. '5s', '2m', '3h')
sinceTimestring optionalShow logs since absolute time (RFC3339)
tailnumber optionalNumber of lines to show from end of logs
timestampsboolean optionalInclude timestamps in logs

This tool is read-only. It does not modify its environment.


Tool: kubectl_patch

Update field(s) of a resource using strategic merge patch, JSON merge patch, or JSON patch

ParametersTypeDescription
namestringName of the resource to patch
resourceTypestringType of resource to patch (e.g., pods, deployments, services)
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
dryRunboolean optionalIf true, only validate the resource, don't actually execute the operation
namespacestring optionalKubernetes namespace
patchDataobject optionalPatch data as a JSON object
patchFilestring optionalPath to a file containing the patch data (alternative to patchData)
patchTypestring optionalType of patch to apply

This tool may perform destructive updates.


Tool: kubectl_reconnect

Reconnect to the Kubernetes API server by recreating all API clients. Use this after cluster upgrades (e.g., EKS control plane upgrades that rotate ENIs/IPs) to force fresh DNS resolution and new TCP connections.

Tool: kubectl_rollout

Manage the rollout of a resource (e.g., deployment, daemonset, statefulset)

ParametersTypeDescription
namestringName of the resource
namespacestringKubernetes namespace
resourceTypestringType of resource to manage rollout for
subCommandstringRollout subcommand to execute
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
revisionnumber optionalRevision to rollback to (for undo subcommand)
timeoutstring optionalThe length of time to wait before giving up (e.g., '30s', '1m', '2m30s')
toRevisionnumber optionalRevision to roll back to (for history subcommand)
watchboolean optionalWatch the rollout status in real-time until completion

This tool may perform destructive updates.


Tool: kubectl_scale

Scale a Kubernetes deployment

ParametersTypeDescription
namestringName of the deployment to scale
replicasnumberNumber of replicas to scale to
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
namespacestring optionalKubernetes namespace
resourceTypestring optionalResource type to scale (deployment, replicaset, statefulset)

This tool may perform destructive updates.


Tool: list_api_resources

List the API resources available in the cluster

ParametersTypeDescription
apiGroupstring optionalAPI group to filter by
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
namespacedboolean optionalIf true, only show namespaced resources
outputstring optionalOutput format (wide, name, or no-headers)
verbsarray optionalList of verbs to filter by

This tool is read-only. It does not modify its environment.


Tool: node_management

Manage Kubernetes nodes with cordon, drain, and uncordon operations

ParametersTypeDescription
operationstringNode operation to perform
confirmDrainboolean optionalExplicit confirmation to drain the node (required for drain operation)
deleteLocalDataboolean optionalDelete local data even if emptyDir volumes are used (for drain operation)
dryRunboolean optionalShow what would be done without actually doing it (for drain operation)
forceboolean optionalForce the operation even if there are pods not managed by a ReplicationController, ReplicaSet, Job, DaemonSet or StatefulSet (for drain operation)
gracePeriodnumber optionalPeriod of time in seconds given to each pod to terminate gracefully (for drain operation). If set to -1, uses the kubectl default grace period.
ignoreDaemonsetsboolean optionalIgnore DaemonSet-managed pods (for drain operation)
nodeNamestring optionalName of the node to operate on (required for cordon, drain, uncordon)
timeoutstring optionalThe length of time to wait before giving up (for drain operation, e.g., '5m', '1h')

This tool may perform destructive updates.


Tool: ping

Verify that the counterpart is still responsive and the connection is alive.

Tool: port_forward

Forward a local port to a port on a Kubernetes resource

ParametersTypeDescription
localPortnumber
resourceNamestring
resourceTypestring
targetPortnumber
namespacestring optional

Tool: stop_port_forward

Stop a port-forward process

ParametersTypeDescription
idstring

Tool: uninstall_helm_chart

Uninstall a Helm chart release

ParametersTypeDescription
namestringName of the Helm release to uninstall
namespacestringKubernetes namespace
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)

This tool may perform destructive updates.


Tool: upgrade_helm_chart

Upgrade an existing Helm chart release

ParametersTypeDescription
chartstringChart name or path to chart directory
namestringName of the Helm release to upgrade
namespacestringKubernetes namespace
contextstring optionalKubeconfig Context to use for the command (optional - defaults to null)
repostring optionalHelm repository URL (optional if using local chart path)
valuesobject optionalCustom values to override chart defaults
valuesFilestring optionalPath to values file (alternative to values object)

This tool may perform destructive updates.


Use this MCP Server

json
{
  "mcpServers": {
    "kubernetes": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/local-directory:/local-directory",
        "mcp/kubernetes"
      ]
    }
  }
}

https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 kubernetes 镜像标签

docker pull docker.xuanyuan.run/mcp/kubernetes:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull mcp/kubernetes:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

爱快 4.0 · iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

专属域名用法

专属域名 · 开启停用 · 多仓库

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

docker.sock / daemon

账号

失败是否计费

manifest · blob · 计费

申请开票(企业 / 个人)

开票 · 发票 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
mcp(Model Context Protocol)
...
mcp/kubernetes
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥8/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多相关 Docker 镜像与资源

以下是 mcp/kubernetes 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

  • labring/kubernetes Docker 镜像说明(Kubernetes 容器镜像,适合 labring 维护的 Kubernetes 工作负载部署)
  • openeuler/kubernetes Docker 镜像说明(Kubernetes 容器镜像,适合 openeuler 维护的 Kubernetes 工作负载部署)
  • rancher/k8s Docker 镜像说明(Kubernetes 容器编排平台,Rancher 版本)
  • alpine/k8s Docker 镜像说明(Alpine 精简 Kubernetes 客户端/工具镜像,适合 CI 与集群运维脚本)
  • bitnamicharts/cert-manager Docker 镜像说明(Cert Manager 容器镜像,适合 bitnamicharts 维护的 Cert Manager 工作负载部署)

更多 kubernetes 镜像推荐

rancher/kubernetes logo

rancher/kubernetes

rancher
暂无描述
2 次收藏1万+ 次下载
6 年前更新
openeuler/kubernetes logo

openeuler/kubernetes

openeuler
官方Kubernetes Docker镜像,由openEuler CloudNative SIG维护,支持amd64和arm64多架构,适用于在openEuler系统上部署Kubernetes集群,提供控制平面和工作节点组件。
5.2千+ 次下载
2 个月前更新
kubernetes/pause logo

kubernetes/pause

kubernetes
用于从备份恢复kubernetes/pause镜像,保障Kubernetes集群中作为Pod网络命名空间基础容器的pause镜像可恢复性。
17 次收藏1000万+ 次下载
7 年前更新
jelastic/kubernetes logo

jelastic/kubernetes

jelastic
由Jelastic PaaS维护的Kubernetes服务器镜像,具备基于负载的预配置资源优化、定期更新及安全补丁,专为高级Kubernetes Cluster包设计,用于创建可靠且自动扩展的容器化工作负载和服务管理平台。
500万+ 次下载
2 个月前更新
baselibrary/kubernetes logo

baselibrary/kubernetes

baselibrary
ThoughtWorks提供的Kubernetes Docker镜像,包含1.1.2版本,用于在Docker环境中部署和运行Kubernetes相关组件。
8 次收藏10万+ 次下载
9 年前更新
radhikagupta5/kubernetes logo

radhikagupta5/kubernetes

radhikagupta5
Testing Kubernetes with AzureStack changes.
1 次收藏10万+ 次下载
8 年前更新

查看更多 kubernetes 相关镜像