Kubernetes MCP Server
未认领Model Context Protocol (MCP) server for Kubernetes and OpenShift
01 / 选择客户端
03 / 添加配置
claude mcp add --transport stdio 'kubernetes-mcp-server' -- 'npx' '-y' 'kubernetes-mcp-server@latest' '--help'04 / 在客户端中确认
打开客户端的 MCP 设置,确认服务器已连接并列出工具。复制配置不代表连接成功。
更多AI & ML服务器
浏览完整目录安全概况
已认领和已认证的服务器每周接受一次静态扫描,显示代码能触及的范围(外部服务、环境变量、shell 命令、代理配置目录)以及带有已知公告的依赖。认领此列表即可获得。 安全概况的工作原理
40 个工具中显示 40 个
文档中列出的工具 (40)
内容来自项目文档。服务器握手不会验证每个工具的说明或行为。
apiVersion
(string) (required) - apiVersion of the resources (examples of valid apiVersion are: v1, apps/v1, networking.k8s.io/v1)
configuration_contexts_list
List all available context names and associated server urls from the kubeconfig file
configuration_view
Get the current Kubernetes configuration content as a kubeconfig YAML
events_list
List Kubernetes events (warnings, errors, state changes) for debugging and troubleshooting in the current cluster from all namespaces
gracePeriodSeconds
(integer) - Optional duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used
helm_install
Install (deploy) a Helm chart to create a release in the current or provided namespace
helm_list
List all the Helm releases in the current or provided namespace (or in all namespaces if specified)
helm_uninstall
Uninstall a Helm release in the current or provided namespace
kcp_workspace_describe
Get detailed information about a specific kcp workspace
kcp_workspaces_list
List all available kcp workspaces in the current cluster
kiali_get_mesh_status
Retrieves the high-level health, topology, and environment details of the Istio service mesh. Returns multi-cluster control plane status (istiod), data plane namespace health (including ambient mesh status), observability stack health (Prometheus, Grafana...), and component connectivity. Use this to
kiali_get_mesh_traffic_graph
Returns service-to-service traffic topology, dependencies, and network metrics (throughput, response time, mTLS) for the specified namespaces. Use this to diagnose routing issues, latency, or find upstream/downstream dependencies.
kiali_get_pod_performance
Returns a human-readable text summary with current Pod CPU/memory usage (from Prometheus) compared to Kubernetes requests/limits (from the Pod spec). Useful to answer questions like 'Is this workload using too much memory?'
kiali_get_resource_details
Fetches a list of resources OR retrieves detailed data for a specific resource. If 'resourceName' is omitted, it returns a list. If 'resourceName' is provided, it returns details for that specific resource.
kiali_get_trace_details
Fetches a single distributed trace by traceid and returns its call hierarchy (service tree with duration, status, and nested calls). Use this after listtraces to drill into a specific trace.
kiali_list_mesh_clusters
Returns the list of Istio mesh clusters that Kiali can access. Each entry includes its name and whether it is the home cluster (where Kiali is deployed). Call this tool before using meshCluster on other Kiali tools when the target cluster is unknown.
kiali_list_traces
Lists distributed traces for a service in a namespace. Returns a summary (namespace, service, totalfound, avgdurationms) and a list of traces with id, durationms, spanscount, rootop, slowestservice, haserrors. Use gettracedetails with a trace id to get full hierarchy.
kiali_manage_istio_config
Create, patch, or delete Istio, Gateway API, and Inference API config. Supports Istio resources (networking.istio.io, security.istio.io), Gateway API resources (gateway.networking.k8s.io), and Inference API resources (inference.networking.k8s.io) when installed on the cluster. For list and get (read
kiali_manage_istio_config_read
Read Istio, Gateway API, and Inference API config. 'list' groups by namespace→'group/version/kind'→{valid:[...],invalid:[...]} where valid/invalid arrays contain resource names; omit group/kind to retrieve ALL config types in a single call. Supports Istio (networking.istio.io, security.istio.io), Ga
kind
(string) (required) - kind of the resources (examples of valid kind are: Pod, Service, Deployment, Ingress)
namespaces_list
List all the Kubernetes namespaces in the current cluster
nodes_log
Get logs from a Kubernetes node (kubelet, kube-proxy, or other system logs). This accesses node logs through the Kubernetes API proxy to the kubelet
nodes_stats_summary
Get detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API. Provides comprehensive metrics including CPU, memory, filesystem, and network usage at the node, pod, and container levels. On systems with cgroup v2 and kernel 4.20+, also includes PSI (Pressure Stall Infor
nodes_top
List the resource consumption (CPU and memory) as recorded by the Kubernetes Metrics Server for the specified Kubernetes Nodes or all nodes in the cluster
pods_delete
Delete a Kubernetes Pod in the current or provided namespace with the provided name
pods_exec
Execute a command in a Kubernetes Pod (shell access, run commands in container) in the current or provided namespace with the provided name and command
pods_get
Get a Kubernetes Pod in the current or provided namespace with the provided name
pods_list
List all the Kubernetes pods in the current cluster from all namespaces
pods_list_in_namespace
List all the Kubernetes pods in the specified namespace in the current cluster
pods_log
Get the logs of a Kubernetes Pod in the current or provided namespace with the provided name
pods_run
Run a Kubernetes Pod in the current or provided namespace with the provided container image and optional name
pods_top
List the resource consumption (CPU and memory) as recorded by the Kubernetes Metrics Server for the specified Kubernetes Pods in the all namespaces, the provided namespace, or the current namespace
projects_list
List all the OpenShift projects in the current cluster
resource
(string) (required) - Complete YAML or JSON representation of the Kubernetes resource (full desired state, not a partial patch). Include apiVersion, kind, metadata, and the full spec.
resources_create_or_update
Create or update a Kubernetes resource via Server-Side Apply. The manifest is the complete desired state: any field this tool previously set and the new manifest omits is removed. To edit an existing resource, fetch it with resourcesget, modify it, then re-apply the full resource.
resources_delete
Delete a Kubernetes resource in the current cluster by providing its apiVersion, kind, optionally the namespace, and its name
resources_get
Get a Kubernetes resource in the current cluster by providing its apiVersion, kind, optionally the namespace, and its name
resources_list
List Kubernetes resources and objects in the current cluster by providing their apiVersion and kind and optionally the namespace and label selector
resources_scale
Get or update the scale of a Kubernetes resource in the current cluster by providing its apiVersion, kind, name, and optionally the namespace. If the scale is set in the tool call, the scale will be updated to that value. Always returns the current scale of the resource
targets_list
List all available targets