Back to Home
strowk icon

mcp-k8s-go

Verified Safe

by strowk

Overview

An MCP server enabling AI assistants and users to interact with and manage Kubernetes clusters by listing, getting, applying, and executing commands on Kubernetes resources.

Installation

Run Command
npx @strowk/mcp-k8s

Environment Variables

  • KUBECONFIG

Security Notes

The server provides powerful tools like 'apply-k8s-resource' for applying arbitrary YAML manifests and 'k8s-pod-exec' for executing commands in pods, which inherently carry significant security risks if exposed to untrusted users or contexts. Additionally, the 'get-k8s-resource' tool allows executing user-provided Go templates, introducing a potential template injection vulnerability. However, the `--allowed-contexts` and `--readonly` command-line flags offer crucial mechanisms to restrict access and modify capabilities, mitigating these risks when properly configured. The `--mask-secrets` flag is enabled by default to protect sensitive data.

Similar Servers

Stats

Interest Score71
Security Score7
Cost ClassMedium
Avg Tokens1000
Stars365
Forks50
Last Update2025-11-24

Tags

KubernetesMCPGolangCLIAutomation