K8s Go

Cloud and DevOps

MCP server connecting to Kubernetes.

Your AI app calls the K8s Go MCP server, which does the cloud and DevOps work and sends the result back to the chat.

About K8s Go

K8s Go is a community MCP server from strowk, filed in our directory under cloud and devops. MCP server connecting to Kubernetes.

At a glance

Publisher
strowk (community)
Runs
See the README for setup
Written in
Go
License
MIT
GitHub stars
383

How to set up K8s Go

  1. Follow the install steps in the K8s Go README; it is written in Go, so have that toolchain ready.
  2. Check the K8s Go README for keys or settings; the registry lists none that K8s Go requires.
  3. Add K8s Go to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the K8s Go tools to confirm the connection.
  5. Run one read-only task with K8s Go first, and keep your app asking before each tool call until the results look right.

K8s Go compared with similar servers

  • Proxy For AWS by aws has fewer GitHub stars than K8s Go (381 against 383); Proxy For AWS is official while K8s Go is a community server, and both run locally.
  • Azure Devops (Tiberriver256) by Tiberriver256 has more GitHub stars than K8s Go (406 against 383); both are community servers, and both run locally.
  • Tfmcp by nwiizo has fewer GitHub stars than K8s Go (373 against 383); both are community servers, and both run locally.

Before you connect K8s Go

  • Give K8s Go its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each K8s Go tool call until you trust what it does with them.
  • Treat text that K8s Go fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for K8s Go on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for K8s Go

How marketing and sales teams put K8s Go to work, by company size. Pick the size closest to yours and start K8s Go on one use case.

Small business

  • A small business can ask K8s Go why the site is slow or down and get the likely cause in plain words.
  • Owners can use K8s Go to check hosting costs and spot services they pay for but no longer use.
  • K8s Go runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Web teams can connect K8s Go to watch deploys during a launch and roll back fast if a campaign page breaks.
  • Marketing engineering can use K8s Go to spin up preview environments for every landing page review.
  • Start K8s Go on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should give K8s Go read access first, with changes gated by the same approvals as any infrastructure change.
  • Large orgs can use K8s Go to answer cost and reliability questions across accounts, so marketing launches are planned with real capacity.
  • K8s Go is a community server, so have security review the code and pin a version before K8s Go touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

K8s Go README

From strowk/mcp-k8s-go on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Golang-based MCP server connecting to Kubernetes


MCP K8S Go

Features ⚙ Browse With Inspector ⚙ Use With Claude ⚙ Contributing ↗ ⚙ About MCP ↗


Features

MCP 💬 prompt 🗂️ resource 🤖 tool

  • 🗂️🤖 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
  • 🤖 Run command in Kubernetes pod

Tested Kubernetes Versions

Integration tests run against these Kubernetes versions:

  • v1.34.13
  • v1.35.10
  • v1.36.6
  • v1.37.2

Browse With Inspector

To use latest published version with Inspector you can run this:

npx @modelcontextprotocol/inspector npx @strowk/mcp-k8s

Use With Claude

Demo Usage

Following chat with Claude Desktop demonstrates how it looks when selected particular context as a resource and then asked to check pod logs for errors in kube-system namespace:

To use this MCP server with Claude Desktop (or any other client) you might need to choose which way of installation to use.

You have multiple options:

Pre-built NPM Pre-built in Github From sources Using Docker
Prerequisite Node.js None Golang Docker
Manually with prebuilt binaries
Prebuilt from npm

Use this if you have npm installed and want to use pre-built binaries:

npm install -g @strowk/mcp-k8s

Then check version by running mcp-k8s --version and if this printed installed version, you can proceed to add configuration to claude_desktop_config.json file:

{
  "mcpServers": {
    "mcp_k8s": {
      "command": "mcp-k8s",
      "args": []
    }
  }
}

, or using npx with any client:

npx @strowk/mcp-k8s

For example for Claude:

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

Head to GitHub releases and download the latest release for your platform.

Unpack the archive, which would contain binary named mcp-k8s-go, put that binary somewhere in your PATH and then add the following configuration to the claude_desktop_config.json file:

{
  "mcpServers": {
    "mcp_k8s": {
      "command": "mcp-k8s-go",
      "args": []
    }
  }
}
Building from source

You would need Golang installed to build this project:

go get github.com/strowk/mcp-k8s-go
go install github.com/strowk/mcp-k8s-go

, and then add the following configuration to the claude_desktop_config.json file:

{
  "mcpServers": {
    "mcp_k8s_go": {
      "command": "mcp-k8s-go",
      "args": []
    }
  }
}
Using Docker

This server is built and published to Docker Hub since 0.3.1-beta.2 release with multi-arch images available for linux/amd64 and linux/arm64 architectures.

You can use latest tag f.e like this:

docker run -i -v ~/.kube/config:/home/nonroot/.kube/config --rm mcpk8s/server:latest

Windows users might need to replace ~/.kube/config with //c/Users/<username>/.kube/config at least in Git Bash.

For Claude:

{
  "mcpServers": {
    "mcp_k8s_go": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-v",
        "~/.kube/config:/home/nonroot/.kube/config",
        "--rm",
        "mcpk8s/server:latest"
      ]
    }
  }
}
Environment Variables and Command-line Options

The following environment variables are used by the MCP server:

  • KUBECONFIG: Path to your Kubernetes configuration file (optional, defaults to ~/.kube/config)

The following command-line options are supported:

  • --allowed-contexts=<ctx1,ctx2,...>: Comma-separated list of allowed Kubernetes contexts that users can access. If not specified, all contexts are allowed.
  • --readonly: Disables any tool which can write changes to the cluster
  • --help: Display help information
  • --version: Display version information
  • --mask-secrets: Mask secrets in the output (default: true). Use --mask-secrets=false to disable masking

For example if you are configuring Claude Desktop, you can add the following configuration to claude_desktop_config.json file:

{
    "mcpServers": {
        "mcp_k8s": {
            "command": "mcp-k8s",
            "args": [
                "--allowed-contexts=dev,prod",
                "--readonly"
            ]
        }
    }
}

, which would allow only dev and prod contexts to be used and would disable any tool which can write changes to the cluster.

Questions about K8s Go

What is the K8s Go MCP server?

MCP server connecting to Kubernetes. K8s Go is maintained by strowk on GitHub at strowk/mcp-k8s-go, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the K8s Go MCP server?

K8s Go doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (strowk/mcp-k8s-go). Like most servers, K8s Go ends with a command or URL you paste into your AI app's MCP config.

Does K8s Go need an API key?

The registry lists no required keys for K8s Go. Check the K8s Go README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is K8s Go an official MCP server?

No. K8s Go is a community server maintained by strowk. Community servers can be excellent; read the code and the open issues before you give K8s Go access to company data.

What license is K8s Go under?

K8s Go is released under the MIT license, according to its GitHub repository. The license covers the code of K8s Go; the service it connects to has its own terms.