Is the server truly read‑only?
Yes – all tools are restricted to `get`, `describe`, `logs`, and `top` operations. If a mutating action is needed, the server prints the equivalent `kubectl` command for manual execution.
@your-ko
K8s read-only MCP server
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"k8s": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-v",
"${HOME}/.kube:/root/.kube:ro",
"ghcr.io/your-ko/mcp-k8s-ro:latest"
]
}
}
}List any resource type by name — pods, deployments, CRDs, etc. Accepts optional namespace filter. Returns name, status, readiness, restarts, node, IP, and more depending on resource kind.
Return the full YAML of a single resource. Secret data is masked.
List all available resource types via the discovery API. Accepts optional API group filter.
Fetch pod logs. Supports container selector, tail lines, and `--previous` for crashed containers.
List Kubernetes events for a namespace or the whole cluster, sorted by most recent.
CPU and memory usage per pod, with per-container breakdown. Requires metrics-server.
CPU and memory usage per node, with percentage of allocatable capacity. Requires metrics-server.
A read-only MCP server that gives Claude access to Kubernetes clusters. Built in Go, it communicates over stdio using the MCP protocol and is designed for safe, production‑grade debugging.
Build the binary with make build or pull the Docker image from ghcr.io/your-ko/mcp-k8s-ro. Add it as a stdio MCP server in your Claude Desktop or CLI configuration, pointing to a kubeconfig file via the KUBECONFIG environment variable.
get, describe, logs, top only – no mutations.--previous.Yes – all tools are restricted to `get`, `describe`, `logs`, and `top` operations. If a mutating action is needed, the server prints the equivalent `kubectl` command for manual execution.
Secret values (`data`, `stringData`) are masked before being sent to the model, preventing leaks from misconfiguration or prompt injection.
No – the server locks to the active kubeconfig context at startup. To target a different cluster, stop the server, switch context, and restart.
Register a separate server instance per cluster in your MCP configuration. Each instance sees only its own cluster and Claude addresses them by name.
A valid kubeconfig file (default `~/.kube/config`). The `k8s_top_pods` and `k8s_top_nodes` tools additionally require the metrics‑server to be installed in the cluster.

Web hosting for websites built with AI. Connect your HostingFor.AI account and your AI assistant can publish and maintain your site directly: upload files, manage DNS records for custom domains, run SQL against your MySQ

HostTracker is a website and infrastructure monitoring service that has run external checks since 2004 for more than 500,000 websites. Its official MCP server lets an AI assistant operate a HostTracker account directly i
Deploy and manage SnapDeploy apps (Docker containers on AWS) from Claude Code, Cursor, Codex or Gemini CLI: builds, logs, env vars, add-ons, domains.
Find, price and rent GPUs on Lium from Claude, ChatGPT, Codex or any MCP client. Search live GPU availability and prices (H100, H200, B200, RTX 4090 and more), estimate provider earnings, and with Sign in with Lium or a
Development environments for coding agents. Enable multiple agents to work safely and independently with your preferred stack.
评论