1. Conduid
  2. Cloud
  3. strowk/mcp-k8s-go
MCP server · Cloud

strowk/mcp-k8s-go

MCP server connecting to Kubernetes

Unclaimed MIT last commit 10 months ago cloud
74Good

Scored 7 days ago · breakdown

About strowk/mcp-k8s-go

strowk/mcp-k8s-go is an MCP server published by strowk in the Cloud category: mCP server connecting to Kubernetes.

The repository has 382 stars and 57 forks, with the last commit 10 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/strowk/mcp-k8s-go

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about strowk/mcp-k8s-go

Powered by Claude · Grounded in docs

I know everything about strowk/mcp-k8s-go. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.6.1v0.6.1 · 15 Nov 2025Changelog de9239b2d21b98be90ffbf4e031c457811c910fd added: limitBytes input when reading logs f878e1a2543a3aa78e55398914a6e67de6ac5d75 added: query pod logs by specifying container name by @otischan
v0.6.0v0.6.0 · 9 Nov 2025Changelog 2d9263c2a52e255c3d4d73b54940e2c580cdb800 added: masking secrets by @bakito (#70) 46fed1eadbcff9ea904472fec51acc8b10e306e2 build(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0…
v0.5.0v0.5.0 · 20 Jul 2025Changelog 6125dc788c662147faf821ca4d92cbfc4b18cbcb added: apply-k8s-resource tool by @julioc-p
v0.4.0v0.4.0 · 26 Jun 2025Changelog f64d4a9f4e68953c2047540bbe46485307d65d32 Feat: Add --readonly and register tools in two separate locations by @Baarsgaard
v0.3.6v0.3.6 · 25 Jun 2025Changelog 2956ee63e3355a15390026e57d36949226c9c906 build(deps): bump go.uber.org/fx from 1.23.0 to 1.24.0 1c66599c80d0d069724f433dd4f57259cd806668 build(deps): bump go.uber.org/mock from 0.5.1 to 0.5.2…

README

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

Browse With Inspector

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

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

Use With Claude

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:

Claude Desktop

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:

Smithery mcp-get Pre-built NPM Pre-built in Github From sources Using Docker
Claude Setup Auto Auto Manual Manual Manual Manual
Prerequisite Node.js Node.js Node.js None Golang Docker

Using Smithery

To install MCP K8S Go for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @strowk/mcp-k8s --client claude

Using mcp-get

To install MCP K8S Go for Claude Desktop automatically via mcp-get:

npx @michaellatman/mcp-get@latest install @strowk/mcp-k8s

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.

README fetched from the repository yesterday. The original is authoritative.

Questions

About strowk/mcp-k8s-go

How do I install strowk/mcp-k8s-go?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is strowk/mcp-k8s-go safe to use with an AI agent?

Its trust score is 74 out of 100 (good). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is strowk/mcp-k8s-go still maintained?

The last commit was 10 months ago and 11 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.