mcp-k8s-go (strowk) Stale

Go MCP server for Kubernetes with context allow-listing and secret masking.

By defaultCan delete
With our presetRead-only
Flagssecrets

Labels are provisional (from the project README/docs, checked Nov 3, 2026). Not yet tested in our sandbox.

Read-only switch

--readonly disables tools that write to the cluster. --allowed-contexts limits which kube contexts are reachable; --mask-secrets defaults to true.

Preset

Read-onlyRead-only switch from the project's docs. Not sandbox-tested yet.
What the preset changes
  • Added --readonly

Claude Code

.mcp.json
{
  "mcpServers": {
    "k8s-go": {
      "command": "npx",
Removed:       "args": ["@strowk/mcp-k8s"]
      "args": ["@strowk/mcp-k8s", "--readonly"]
    }
  }
}

Optional third layer: add "deny": ["mcp__k8s-go__<write tool>"] under permissions in .claude/settings.json.

Codex

~/.codex/config.toml
# Generated by redpresets.dev on 2026-11-03. Unverified preset. Also use a read-only credential. Not a security guarantee.

[mcp_servers.k8s-go]
command = "npx"
Removed: args = ["@strowk/mcp-k8s"]
args = ["@strowk/mcp-k8s", "--readonly"]
default_tools_approval_mode = "writes"

default_tools_approval_mode = "writes" asks before any tool the server does not mark read-only.

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "k8s-go": {
      "type": "stdio",
      "command": "npx",
Removed:       "args": ["@strowk/mcp-k8s"]
      "args": ["@strowk/mcp-k8s", "--readonly"]
    }
  }
}

Don't add write tools to mcpAllowlist in .cursor/permissions.json. Leave them on approval. Cursor's docs say the allowlist is not a security boundary.

Lines marked + are what we added to the vendor's install command. Struck-through lines marked − are what they replaced; Copy leaves those out.

Credential layer

Bind the kubeconfig/service account the agent uses to a read-only ClusterRole (e.g. the built-in view role). view excludes Secrets; do not grant get secrets to agents.

Gotchas

  • No push since 2025-12-22 (GitHub, fetched Oct 27), so it may be unmaintained. Check before you rely on it.

Facts

Vendor
strowk (community)
Source
strowk/mcp-k8s-go
License
MIT
GitHub stars
382
Latest release
v0.6.1 (Nov 15, 2025)
Last push
Dec 22, 2025
Status
Stale
Last checked
Nov 3, 2026

Sources

Spotted something wrong? Labels change when vendors change. Suggest a correction

Read-only alternatives in Kubernetes