MCP K8S Go logo

MCP K8S Go

by strowk

MCP K8S Go is a Golang-based MCP (Model Context Protocol) server that connects to Kubernetes. It allows users to interact with Kubernetes resources through a standardized protocol, enabling integration with tools like Claude and Inspector.

View on GitHub

Last updated: N/A

What is MCP K8S Go?

MCP K8S Go is a Golang-based server implementing the Model Context Protocol (MCP) to interact with Kubernetes clusters. It provides a standardized interface for listing, getting, and manipulating Kubernetes resources.

How to use MCP K8S Go?

The server can be used with tools like Inspector and Claude. It can be installed using various methods including Smithery, mcp-get, pre-built binaries from npm or GitHub releases, building from source, or using Docker. Configuration often involves specifying the server command and arguments in a client's configuration file (e.g., claude_desktop_config.json).

Key features of MCP K8S Go

  • List Kubernetes contexts and namespaces

  • List and get any Kubernetes resources (with custom mappings)

  • List Kubernetes nodes

  • Get Kubernetes events and pod logs

  • Run commands in Kubernetes pods

  • Integration with Inspector and Claude

  • Multiple installation methods (Smithery, mcp-get, npm, GitHub releases, source, Docker)

Use cases of MCP K8S Go

  • Interacting with Kubernetes clusters through a standardized protocol

  • Integrating Kubernetes resource management with AI tools like Claude

  • Browsing and inspecting Kubernetes resources using Inspector

  • Automating Kubernetes tasks through a programmatic interface

  • Troubleshooting Kubernetes deployments by accessing logs and events

FAQ from MCP K8S Go

How do I install MCP K8S Go for Claude?

You can use Smithery or mcp-get for automatic installation, or manually install using pre-built binaries (npm or GitHub releases), building from source, or using Docker.

What is Smithery?

Smithery is a tool that automates the installation of MCP servers for Claude Desktop.

How do I configure MCP K8S Go with Claude?

You need to add a configuration entry to the claude_desktop_config.json file, specifying the command and arguments to run the MCP server.

Can I use MCP K8S Go with other clients besides Claude?

Yes, you can use it with any client that supports the Model Context Protocol (MCP).

What environment variables are supported?

The KUBECONFIG environment variable can be used to specify the path to your Kubernetes configuration file.