K8s MCP Server 7b982782

MCP运维云端

提供方 briankscheong

运维云端 SSE · 服务端推送 无需鉴权 社区 / 第三方 Claude DesktopClaudeCline

Kubernetes MCP服务器是一个基于模型上下文协议(MCP)的服务,提供与Kubernetes API的无缝集成,支持开发者、操作员和AI工具进行高级自动化和交互操作。

一句话选型结论

按资料字段整理

K8s MCP Server 7b982782 属于运维云端类 MCP 服务器,SSE · 服务端推送,无需鉴权,可直接接入 Claude Desktop、Claude、Cline,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类运维云端 传输方式SSE · 服务端推送 鉴权无需鉴权 部署方式远程部署
GitHub 星标 3 仓库热度,无公开仓库时显示未标注
工具数 13 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

运维云端
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量13暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

KubernetesGo本地部署自动化工具AI集成集群管理开发者工具

安装与配置

SSE · 服务端推送 无需鉴权
早期远程传输方式,正在被 HTTP 取代
  1. 1
    准备运行环境

    确认你的客户端支持远程端点,并拿到服务地址。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 13 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
云资源查询

查实例、存储、账单等云上资源状态。

部署与发布

把部署、重启、回滚这类操作接进对话。

监控与告警

拉取监控指标,异常时让模型帮你判断。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 13 个工具,覆盖面较广,能满足多种调用。
  • 已适配 Claude Desktop、Claude、Cline,换客户端不用重新研究配置。
  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • 远程端点依赖网络与服务方可用性,注意密钥与调用额度。
  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
K8s MCP Server 7b982782当前 13 SSE · 服务端推送 远程部署 无 2026-05-17
lobehub 未标注 stdio · 本地进程 本地部署 有 2026-04-11
TrendRadar 未标注 stdio · 本地进程 本地部署 有 2026-04-13
Ui Tars Desktop 8a825770 未标注 stdio · 本地进程 本地部署 有 2026-05-17
ruflo 未标注 stdio · 本地进程 本地部署 有 2026-04-13
FastGPT 未标注 stdio · 本地进程 本地部署 有 2026-04-11

服务器档案

运维云端
字段来自项目仓库与公开索引,中文说明由本站标注
提供方briankscheong上游标注的维护方 briankscheong
分类运维云端本站按上游分类展示
连接方式SSE · 服务端推送早期远程传输方式,正在被 HTTP 取代
鉴权方式无需鉴权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型远程部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

9.7 KB
来自项目仓库与上游目录的原文,未做删改

Kubernetes MCP Server 🚀

The Kubernetes MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Kubernetes APIs, enabling advanced automation and interaction capabilities for developers, operators, and AI tools.

Table of Contents

  • Kubernetes MCP Server 🚀
  • Table of Contents
  • Overview 📊
  • Prerequisites ✅
  • Installation 💻
    • Usage with Claude Desktop
    • Usage with VS Code
    • Usage with Cline
    • Build from source
  • Command Line Options ⌨️
  • Server Transport Options 🔄
    • stdio
    • SSE
  • Access Control 🔒
  • Tools 🧰
    • Resource Operations 📦
    • Management Operations ⚙️
  • Future Enhancements 🔮
  • Contributing 👥
  • License ⚖️

Overview 📊

This MCP server enables AI tools to interact with Kubernetes clusters using natural language, providing capabilities to:

  • 🔍 Retrieve and analyze cluster resources
  • 📈 Monitor deployments, pods, and services
  • 🛠️ Execute common kubectl operations through AI interfaces
  • 🔧 Troubleshoot cluster issues with AI assistance

Prerequisites ✅

  1. A Kubernetes cluster with API access
  2. Valid kubeconfig file or service account credentials
  3. Appropriate RBAC permissions for desired operations

Installation 💻

Usage with Claude Desktop

Add the following to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):```json
{
"mcpServers": {
"kubernetes": {
"command": "path/to/k8smcp",
"args": [
"stdio",
"--kubeconfig=/path/to/your/kubeconfig"
]
}
}
}


### Usage with VS Code

Add the following to your VS Code User Settings (JSON) file or `.vscode/mcp.json` in your workspace:```json
{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "kubeconfig_path",
        "description": "Path to kubeconfig file",
        "default": "${env:HOME}/.kube/config"
      }
    ],
    "servers": {
      "kubernetes": {
        "command": "path/to/k8smcp",
        "args": [
          "stdio",
          "--kubeconfig=/path/to/your/kubeconfig"
        ]
      }
    }
  }
}

Usage with Cline

Add the following to your Cline configuration file (path/to/cline_mcp_settings.json after selecting "Configure MCP Servers"):```json
{
"mcpServers": {
"kubernetes": {
"disabled": false,
"timeout": 60,
"command": "path/to/k8smcp",
"args": [
"stdio",
"--read-only=false"
"--kubeconfig=/path/to/your/kubeconfig"
],
"env": {
"K8S_MCP_TOOLSETS": "all"
},
"transportType": "stdio"
}
}
}


Make sure to update the `command` value with the path to your k8smcp executable. You can set the server configurations either using `args` or `env`.

### Build from source

Clone the repository and build the binary:```bash
git clone https://github.com/briankscheong/k8s-mcp-server.git
cd k8s-mcp-server
make build

Or install directly with Go:```bash
go install github.com/briankscheong/k8s-mcp-server/cmd/k8s-mcp-server@latest


## Command Line Options ⌨️```txt
A Kubernetes MCP Server that provides tools for interacting with Kubernetes clusters.

Environment Variables:
  K8S_MCP_KUBECONFIG            Path to kubeconfig file
  K8S_MCP_NAMESPACE             Default Kubernetes namespace
  K8S_MCP_IN_CLUSTER            Use in-cluster config (true/false)
  K8S_MCP_READ_ONLY             Restrict to read-only operations (true/false)
  K8S_MCP_RESOURCE_TYPES        Comma-separated list of resource types
  K8S_MCP_TOOLSETS              Comma-separated list of toolsets to enable
  K8S_MCP_EXPORT_TRANSLATIONS   Export translations (true/false)

Usage:
  k8smcp [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  sse         Start sse server
  stdio       Start stdio server

Flags:
      --export-translations      Save translations to a JSON file
  -h, --help                     help for k8smcp
      --in-cluster               Use in-cluster config instead of kubeconfig file
      --kubeconfig string        Path to the kubeconfig file (default "/Users/briancheong/.kube/config")
      --namespace string         Default Kubernetes namespace to target (default "default")
      --read-only                Restrict operations to read-only (no create, update, delete) (default true)
      --resource-types strings   Comma separated list of Kubernetes resource types to enable (pods,deployments,services,configmaps,namespaces,nodes) (default [all])
      --toolsets strings         Comma separated list of tools to enable (default [all])
  -v, --version                  version for k8smcp

Use "k8smcp [command] --help" for more information about a command.

Server Transport Options 🔄

stdio

The stdio transport is the default and recommended option for most users for local integration:```bash
k8smcp stdio --kubeconfig=/path/to/your/kubeconfig


### SSE

The `sse` transport provides support for HTTP-based JSON-RPC message transport. This can be helpful when deploying the server in a Kubernetes cluster that needs to expose a port for client connection.```bash
k8smcp sse --in-cluster=true

> [!NOTE]
> The --in-cluster=true flag needs to be set if the server is deployed in a Kubernetes cluster.

Access Control 🔒

By default, the server applies the permissions of the provided kubeconfig or service account. For enhanced security, you can:

  1. Create a dedicated service account with restricted RBAC permissions
  2. Set namespace limits to prevent cross-namespace operations
  3. Enable read-only mode to prevent mutations to cluster state

Tools 🧰

The Kubernetes MCP Server provides a comprehensive set of tools for interacting with your Kubernetes cluster.

Resource Operations 📦

  • get_pod - Get detailed information about a specific pod
  • namespace: Pod namespace (string, optional, defaults to current namespace)
  • name: Pod name (string, required)

  • list_pods - List pods in a namespace

  • namespace: Namespace to list pods from (string, optional, defaults to current namespace)
  • label_selector: Filter pods by label selector (string, optional)
  • field_selector: Filter pods by field selector (string, optional)

  • get_pod_logs - Get logs from a pod

  • namespace: Pod namespace (string, optional, defaults to current namespace)
  • name: Pod name (string, required)
  • container: Container name (string, optional, defaults to first container)
  • tail_lines: Number of lines to retrieve from the end (number, optional)
  • previous: Get logs from previous container instance (boolean, optional)

  • get_deployment - Get information about a specific deployment

  • namespace: Deployment namespace (string, optional, defaults to current namespace)
  • name: Deployment name (string, required)

  • list_deployments - List deployments in a namespace

  • namespace: Namespace to list deployments from (string, optional, defaults to current namespace)
  • label_selector: Filter deployments by label selector (string, optional)

  • get_service - Get information about a specific service

  • namespace: Service namespace (string, optional, defaults to current namespace)
  • name: Service name (string, required)

  • list_services - List services in a namespace

  • namespace: Namespace to list services from (string, optional, defaults to current namespace)
  • label_selector: Filter services by label selector (string, optional)

  • get_configmap - Get information about a specific ConfigMap

  • namespace: ConfigMap namespace (string, optional, defaults to current namespace)
  • name: ConfigMap name (string, required)

  • list_configmaps - List ConfigMaps in a namespace

  • namespace: Namespace to list ConfigMaps from (string, optional, defaults to current namespace)
  • label_selector: Filter ConfigMaps by label selector (string, optional)

  • list_namespaces - List all namespaces in the cluster

  • No parameters required

  • list_nodes - List all nodes in the cluster

  • No parameters required

Management Operations ⚙️

  • delete_pod - Delete a pod from a namespace
  • namespace: Pod namespace (string, optional, defaults to current namespace)
  • name: Pod name (string, required)
  • grace_period_seconds: Grace period before deletion (number, optional)

  • scale_deployment - Scale a deployment to a specific number of replicas

  • namespace: Deployment namespace (string, optional, defaults to current namespace)
  • name: Deployment name (string, required)
  • replicas: Number of replicas (number, required)

> [!IMPORTANT]
> By default, tools that involve modification of resources in the cluster are disabled. To enable them, you have to set the --read-only=false flag or the K8S_MCP_READ_ONLY=false environment variable.

Future Enhancements 🔮

  • Enhanced RBAC integration for fine-grained access control
  • Support for more kubernetes resources
  • Support for custom resource definitions (CRDs)
  • Helm chart management capabilities for deployment
  • Cluster monitoring and alerting integration
  • Support for multiple concurrent cluster connections

Contributing 👥

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License ⚖️

This project is licensed under the MIT License - see the LICENSE file for details.


Built with ❤️ for the Kubernetes and AI communities.

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
K8s MCP Server 7b982782 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

K8s MCP Server 7b982782 怎么在 Claude Desktop、Claude、Cline 里配置?

它的传输方式是SSE · 服务端推送,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

K8s MCP Server 7b982782 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

K8s MCP Server 7b982782 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

K8s MCP Server 7b982782 支持哪些客户端?

资料标注支持 Claude Desktop、Claude、Cline;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

K8s MCP Server 7b982782 能提供哪些能力?

资料显示约 13 个工具;能力标签包括 集群管理、开发工具、Kubernetes、Claude、自动化。具体工具清单以官方文档为准。

K8s MCP Server 7b982782 需要什么运行环境?

属于远程端点,不需要在本地装运行时。

K8s MCP Server 7b982782 是本地还是远程?

它是远程端点,连服务地址即可。传输方式为SSE · 服务端推送。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。