This repository provides a Golang-based MCP server that connects to Kubernetes, offering tools to list contexts, namespaces, nodes, and resources within a specified context and namespace, including custom mappings.
Here is a summary of the README content:
This Golang-based MCP server connects to Kubernetes, enabling interaction with K8S resources through tools and prompts.
Features include listing K8S contexts, namespaces, nodes, resources, and events. It also supports retrieving specific resources and pod logs.
The server can be used with Inspector for browsing resources, either with the latest published version or built from sources.
For Claude integration, several installation methods are available: Smithery, mcp-get, pre-built NPM packages, GitHub releases, or building from source. Each method has specific prerequisites and setup instructions. Once installed, Claude can access K8S contexts, list pods and events, and read pod logs.
Environment variables like KUBECONFIG
and command-line options like --allowed-contexts
provide configuration flexibility.
Contributions are welcome; see CONTRIBUTION.md
for details.
strowk/mcp-k8s-go
December 1, 2024
March 28, 2025
Go