Mcp K8s Go
@strowk
About Mcp K8s Go
MCP server connecting to Kubernetes
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-k8s-go": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"npx",
"@strowk/mcp-k8s"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Mcp K8s Go?
Mcp K8s Go is a Golang-based MCP (Model Context Protocol) server that connects to Kubernetes clusters. It enables AI assistants like Claude to list, get, create, and modify Kubernetes resources, as well as run commands in pods and fetch logs.
How to use Mcp K8s Go?
Mcp K8s Go can be installed via Smithery, mcp-get, npm (@strowk/mcp-k8s), pre-built binaries from GitHub releases, building from source with Golang, or using Docker. Configure it in Claude Desktop by adding an entry to claude_desktop_config.json with the appropriate command and arguments. Environment variable KUBECONFIG sets the path to your Kubernetes config (default ~/.kube/config). Command-line options include --allowed-contexts to restrict contexts, --readonly to disable write tools, and --mask-secrets (default true).
Key features of Mcp K8s Go
- List Kubernetes contexts and namespaces
- List, get, create, and modify Kubernetes resources (pods, services, deployments, etc.)
- List Kubernetes nodes and get events
- Get pod logs and run commands inside pods
- Mask secrets in output by default
Use cases of Mcp K8s Go
- AI-assisted Kubernetes resource management (create, update, delete)
- Debugging by inspecting pod logs and running commands
- Monitoring cluster events and node status
- Controlled read‑only access for audit or security scenarios
FAQ from Mcp K8s Go
What does Mcp K8s Go do?
It is an MCP server that provides tools and resources for interacting with Kubernetes clusters, enabling AI assistants to manage resources, fetch logs, and run commands.
How can I install Mcp K8s Go?
Install via Smithery (npx -y @smithery/cli install @strowk/mcp-k8s), mcp-get, npm (npm install -g @strowk/mcp-k8s), download a pre‑built binary from GitHub releases, build from source with Go, or use Docker (docker run ... mcpk8s/server:latest).
What environment variables and options does Mcp K8s Go support?
Supports KUBECONFIG for kubeconfig path, --allowed-contexts to restrict contexts, --readonly to disable write tools, --mask-secrets (default true) to mask secrets, --help, and --version.
Does Mcp K8s Go support running in read‑only mode?
Yes. Use the --readonly flag to disable any tool that can write changes to the cluster.
What are the prerequisites for running Mcp K8s Go?
A valid Kubernetes configuration (kubeconfig) is required. For installation, you need Node.js (for npm/Smithery/mcp-get), Golang (if building from source), or Docker (if using the container image).
Frequently asked questions
What does Mcp K8s Go do?
It is an MCP server that provides tools and resources for interacting with Kubernetes clusters, enabling AI assistants to manage resources, fetch logs, and run commands.
How can I install Mcp K8s Go?
Install via Smithery (`npx -y @smithery/cli install @strowk/mcp-k8s`), mcp-get, npm (`npm install -g @strowk/mcp-k8s`), download a pre‑built binary from GitHub releases, build from source with Go, or use Docker (`docker run ... mcpk8s/server:latest`).
What environment variables and options does Mcp K8s Go support?
Supports `KUBECONFIG` for kubeconfig path, `--allowed-contexts` to restrict contexts, `--readonly` to disable write tools, `--mask-secrets` (default true) to mask secrets, `--help`, and `--version`.
Does Mcp K8s Go support running in read‑only mode?
Yes. Use the `--readonly` flag to disable any tool that can write changes to the cluster.
What are the prerequisites for running Mcp K8s Go?
A valid Kubernetes configuration (kubeconfig) is required. For installation, you need Node.js (for npm/Smithery/mcp-get), Golang (if building from source), or Docker (if using the container image).
Basic information
More Cloud & Infrastructure MCP servers
🐋 Docker MCP server
ckreilingMCP server for Docker
🐳 docker-mcp
QuantGeekDevA docker MCP Server (modelcontextprotocol)
container-use
daggerDevelopment environments for coding agents. Enable multiple agents to work safely and independently with your preferred stack.
AWS Model Context Protocol (MCP) Server
alexei-ledA lightweight service that enables AI assistants to execute AWS CLI commands (in safe containerized environment) through the Model Context Protocol (MCP). Bridges Claude, Cursor, and other MCP-aware AI tools with AWS CLI for enhanced cloud infrastructure management.
Azure DevOps MCP Server
Tiberriver256An MCP server for Azure DevOps
Comments