mcp-k8s-go

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.

299
16

Here is a summary of the README content:

MCP K8S Go

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.

Repository

ST
strowk

strowk/mcp-k8s-go

Created

December 1, 2024

Updated

March 28, 2025

Language

Go

Category

System Tools