MCP K8s Go MCP Server

<h4 align="center">Golang-based MCP server connecting to Kubernetes</h4>

Local serverstdioGo

What is the MCP K8s Go MCP server?

Mcp k8s go mcp server connects MCP K8s Go to AI assistants that speak the Model Context Protocol. Golang-based MCP server connecting to Kubernetes.

What MCP K8s Go does

Key capabilities

  • 🗂️🤖 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

Tools it exposes

Once connected, the assistant can call these 2 tools directly:

  • KUBECONFIG — Path to your Kubernetes configuration file (optional, defaults to ~/.kube/config)
  • Prerequisite — Node.js

Installing the mcp k8s go mcp server

The server is distributed via npm as @modelcontextprotocol/inspector, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Where it fits

Cloud and DevOps servers put infrastructure on speaking terms with your assistant, so "why is this broken?" is answered from real state rather than a generic checklist. MCP K8s Go sits in that group, and the shape of its toolset — KUBECONFIG, Prerequisite — tells you what it is really for. Worth comparing against the other cloud devops servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by strowk, written in Go.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mcp k8s go mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
KUBECONFIGPath to your Kubernetes configuration file (optional, defaults to ~/.kube/config)
PrerequisiteNode.js

How to install the MCP K8s Go MCP server

{
  "mcpServers": {
    "mcp_k8s": {
      "command": "npx",
      "args": [
        "@strowk/mcp-k8s"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use MCP K8s Go to KUBECONFIG.
  • Use MCP K8s Go to Prerequisite.

Frequently asked questions

It connects MCP K8s Go to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (KUBECONFIG, Prerequisite) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP K8s Go directly.