
连接Kubernetes的MCP服务器
概览
基于 Golang 的 MCP 服务器连接 Kubernetes 功能 ⚙ 与检查员⚙一起浏览,Claude ⚙ ⚙ ↗ 贡献关于 MCP ↗ - 🗂️🤖 列出 Kubernetes 上下文 - 💬🤖 列出 Kubernetes 命名空间 - 🤖 列出、获取、创建和修改任何 Kubernetes 资源 - 包含 pod、服务、部署等资源的自定义映射 - 🤖 列出 Kubernetes 节点 - 💬 List Kubernetes pod - 🤖 获取 Kubernetes 事件 - 🤖 获取 Kubernetes 播客日志 - 🤖 在 Kubernetes Pod 中运行命令 要使用最新发布版本配合Inspector,可以运行以下操作: 与 Claude Desktop 的聊天演示了当选择特定上下文作为资源后,并被要求检查 pod 日志中 kube 系统命名空间的错误时,它的表现: 要在Claude Desktop(或其他客户端)使用这个MCP服务器,可能需要选择安装方式。 要通过Smithery自动安装MCP K8S Go for Claude Desktop: 要通过mcp-get自动安装MCP K8S Go for Claude Desktop:
概述(AI 翻译)
基于 Golang 的 MCP 服务器连接 Kubernetes
MCP K8S Go
特色 ⚙ 与检查员⚙一起浏览 与 Claude ⚙ 的使用 贡献 ↗ ⚙ 关于MCP ↗
特色
MCP 💬 提示🗂️资源🤖工具
- 🗂️🤖 列表 Kubernetes 上下文
- 💬🤖 列表 Kubernetes 命名空间
- 🤖 列出、获取、创建和修改任何Kubernetes资源
- 包含为pod、服务、部署等资源提供自定义映射
- 🤖 列表 Kubernetes 节点
- 💬 列表 Kubernetes 播客
- 🤖 获取Kubernetes事件
- 🤖 获取Kubernetes播客日志
- 🤖 Kubernetes Pod 中的运行命令
与督察一起浏览
要使用最新发布版本配合Inspector,可以运行以下操作:
与克劳德一起使用
演示使用
与 Claude Desktop 的聊天演示了当选择特定上下文作为资源后,并被要求检查 pod 日志中 kube 系统命名空间的错误时,它的表现:
要在Claude Desktop(或其他客户端)使用这个MCP服务器,可能需要选择安装方式。
你有多种选择:
| |史密瑟里 |MCP-get |预构建的 NPM |预构建于 Github |源代码 |使用 Docker |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Golang-based MCP server connecting to Kubernetes
MCP K8S Go
Features ⚙ Browse With Inspector ⚙ Use With Claude ⚙ Contributing ↗ ⚙ About MCP ↗
Features
MCP 💬 prompt 🗂️ resource 🤖 tool
- 🗂️🤖 List Kubernetes contexts
- 💬🤖 List Kubernetes namespaces
- 🤖 List, get, create and modify any Kubernetes resources
- includes custom mappings for resources like pods, services, deployments
- 🤖 List Kubernetes nodes
- 💬 List Kubernetes pods
- 🤖 Get Kubernetes events
- 🤖 Get Kubernetes pod logs
- 🤖 Run command in Kubernetes pod
Browse With Inspector
To use latest published version with Inspector you can run this:
npx @modelcontextprotocol/inspector npx @strowk/mcp-k8s
Use With Claude
To use this MCP server with Claude Desktop (or any other client) you might need to choose which way of installation to use.
You have multiple options:
安装
npx @strowk/mcp-k8s配置
{
"mcpServers": {
"mcp_k8s": {
"command": "mcp-k8s",
"args": []
}
}
}