
How to add MCP K8S Go to Claude Desktop
Golang-based MCP server connecting to Kubernetes — list, get, create and modify resources, read logs, run commands. Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.
Last updated June 14, 2026 · 382★ · stdio · no auth
Claude Desktop config for MCP K8S Go
npm install -g @strowk/mcp-k8s{
"mcpServers": {
"mcp-k8s-go": {
"command": "npx",
"args": [
"@strowk/mcp-k8s"
]
}
}
}Setup steps
- 1Open Claude Desktop → Settings → Developer → Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
- 2Paste the MCP K8S Go config below under the top-level "mcpServers" key.
- 3Fill in any placeholder secrets (API keys, paths) in the snippet.
- 4Save the file, then fully quit and reopen Claude Desktop.
- 5Open a chat and confirm MCP K8S Go's tools appear under the 🔌 tools menu.
Before you start
- Access to a Kubernetes cluster with a kubeconfig (KUBECONFIG, defaults to ~/.kube/config)
- One of: Node.js (for Smithery / mcp-get / npm / npx), Golang (to build from source), or Docker (to run the published image)
What MCP K8S Go can do in Claude Desktop
List Kubernetes contextsList the Kubernetes contexts available (also exposed as a resource).
List Kubernetes namespacesList namespaces in the cluster (also exposed as a prompt).
List, get, create and modify Kubernetes resourcesList, get, create and modify any Kubernetes resources, including custom mappings for resources like pods, services and deployments.
List Kubernetes nodesList the nodes in the cluster.
List Kubernetes podsList pods (exposed as a prompt).
Get Kubernetes eventsRetrieve Kubernetes events.
Get Kubernetes pod logsGet logs from a Kubernetes pod.
Run command in Kubernetes podExecute a command inside a Kubernetes pod.
Security
Connects to clusters using your local kubeconfig (KUBECONFIG, defaults to ~/.kube/config), so it inherits whatever permissions that credential grants. Use --readonly to disable any tool that can write changes to the cluster, --allowed-contexts=<ctx1,ctx2,...> to restrict which contexts can be accessed, and --mask-secrets (on by default) to mask secret values in output.
MCP K8S Go + Claude Desktop FAQ
Where is the Claude Desktop config file?
Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the MCP K8S Go config there under the "mcpServers" key and restart the client.
Is MCP K8S Go safe to use with Claude Desktop?
Connects to clusters using your local kubeconfig (KUBECONFIG, defaults to ~/.kube/config), so it inherits whatever permissions that credential grants. Use --readonly to disable any tool that can write changes to the cluster, --allowed-contexts=<ctx1,ctx2,...> to restrict which contexts can be accessed, and --mask-secrets (on by default) to mask secret values in output.
How do I try it without installing anything?
Run it through the MCP Inspector with: npx @modelcontextprotocol/inspector npx @strowk/mcp-k8s
How do I prevent it from making changes to my cluster?
Pass the --readonly command-line option, which disables any tool that can write changes to the cluster.
Can I limit which clusters/contexts it can touch?
Yes. Use --allowed-contexts=<ctx1,ctx2,...> to allow only specific contexts; if not specified, all contexts are allowed.