Kubernetes (Go)
FreeGo 语言实现的 Kubernetes 服务器,用于浏览 Pods、日志、事件、命名空间等。
FreeFree tier
About Kubernetes (Go)
mcp-k8s-go is a Go-based MCP (Model Context Protocol) server that connects to Kubernetes clusters, enabling AI assistants like Claude Desktop to browse and interact with cluster resources. It offers a comprehensive set of tools, resources, and prompts for listing contexts, namespaces, pods, nodes, and custom resources, retrieving events and pod logs, and running commands inside pods. The server supports multiple installation methods including Smithery, mcp-get, npm, prebuilt binaries from GitHub releases, building from source with Golang, and Docker. It is open source and free to use.
Key Features
List Kubernetes contexts as resources and tools
List and get Kubernetes namespaces, pods, nodes
Retrieve Kubernetes events and pod logs
Run commands inside Kubernetes pods
List, get, create, and modify any Kubernetes resources with custom mappings for pods, services, deployments
Supports MCP prompts, resources, and tools
Multiple installation methods: npm, GitHub releases, Docker, Smithery, mcp-get, building from source
Pros & Cons
Pros
- Free and open source under MIT license
- Multiple installation options including Docker and prebuilt binaries
- Supports both MCP resources and tools for flexibility
- Custom resource mappings for common Kubernetes resources
Cons
- Requires access to a running Kubernetes cluster and valid kubeconfig
- Some installation methods depend on Node.js (e.g., npm, npx)
- No built-in authentication or RBAC management; relies on existing kubeconfig
Best For
Managing Kubernetes clusters via MCP-compatible AI clients like Claude DesktopDebugging pods by viewing logs and eventsAutomating Kubernetes operations through prompt and tool interactions
FAQ
How do I install mcp-k8s-go with Smithery?
Run 'npx -y @smithery/cli install @strowk/mcp-k8s --client claude' to install automatically for Claude Desktop.
Can I use Docker to run this MCP server?
Yes, since version 0.3.1-beta.2, the server is published to Docker Hub with multi-arch images for linux/amd64 and linux/arm64.
How do I use this MCP server with Claude Desktop?
You can install via npm, Smithery, or prebuilt binaries and then add the corresponding configuration to claude_desktop_config.json.