MCP K8s Ro
Read-only Kubernetes access for Claude: resources, logs, events and metrics
MCP K8s Ro is a free MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Free
- Platforms
- CLI, Self-hosted, macOS
- Runs
- Locally
- Version
- 1.2.2
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-k8s-ro -- docker run -i --rm ghcr.io/your-ko/mcp-k8s-ro:1.2.2Add --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-k8s-ro": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.2"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-k8s-ro": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.2"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-k8s-ro": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.2"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mcp-k8s-ro": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.2"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mcp-k8s-ro -- docker run -i --rm ghcr.io/your-ko/mcp-k8s-ro:1.2.2Or add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-k8s-ro]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/your-ko/mcp-k8s-ro:1.2.2"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-k8s-ro": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.2"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcp-k8s-ro": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/your-ko/mcp-k8s-ro:1.2.2" ] } } }Or run: gemini mcp add -s user mcp-k8s-ro docker -- run -i --rm ghcr.io/your-ko/mcp-k8s-ro:1.2.2
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcp-k8s-ro": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/your-ko/mcp-k8s-ro:1.2.2" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "mcp-k8s-ro": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/your-ko/mcp-k8s-ro:1.2.2" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "mcp-k8s-ro": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/your-ko/mcp-k8s-ro:1.2.2" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "mcp-k8s-ro": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/your-ko/mcp-k8s-ro:1.2.2" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-k8s-ro": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/your-ko/mcp-k8s-ro:1.2.2" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcp-k8s-ro": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/your-ko/mcp-k8s-ro:1.2.2" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcp-k8s-ro": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/your-ko/mcp-k8s-ro:1.2.2" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
KUBECONFIGPath to the kubeconfig file. Defaults to ~/.kube/config.
About MCP K8s Ro
mcp-k8s-ro is a Go server that talks to a cluster through the active kubeconfig context and exposes only get, describe, logs and top style operations. The README stresses that nothing can be created, updated or deleted; when a change is needed, the server prints the equivalent kubectl command for the user to run. Secret values are masked before they reach the model, along with large certificate blobs and managedFields that would waste tokens.
Responses are trimmed to relevant fields such as name, status and restarts, and each one states the active context and cluster name. The server pins to the context active at startup, so switching contexts in another terminal does nothing to a running instance, and it offers no tool to change clusters. For several clusters, the README suggests registering one server instance per cluster, which limits the damage from a prompt injection in one cluster's resources.
It runs over stdio as a local binary or a Docker container, with KUBECONFIG pointing to the config file. The README warns that the macOS binary is not code-signed and needs the quarantine flag removed. The top tools need metrics-server in the cluster.
Tools this server provides (7)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 5 of 7 tools read data; 2 names don't say.
From the server's own tool labels and tool names; not verified by us.
- k8s_list_resourcesName suggests: reads
- Lists any resource type, with optional namespace filter, returning status, readiness, restarts, node and IP depending on kind.
- k8s_describe_resourceName suggests: reads
- Returns the full YAML of one resource with secret data masked.
- k8s_list_resource_typesName suggests: reads
- Lists resource types via the discovery API, with an optional API group filter.
- k8s_get_logsName suggests: reads
- Fetches pod logs with container selector, tail lines and previous-container support.
- k8s_get_eventsName suggests: reads
- Lists events for a namespace or the whole cluster, most recent first.
- k8s_top_pods
- Shows CPU and memory per pod with per-container breakdown; needs metrics-server.
- k8s_top_nodes
- Shows CPU and memory per node as a share of allocatable capacity; needs metrics-server.
What it does
- Read-only by design
- Only get, describe, logs and top operations; mutations are printed as kubectl commands.
- Secret masking
- Secret data and large certificate blobs are removed before reaching the model.
- Token-lean output
- Responses include only relevant fields instead of raw API objects.
- Pinned context
- The server locks to the kubeconfig context active at startup.
- Cluster named in replies
- Every response states the context and cluster queried.
Good for
- Investigate a crashing pod by reading its previous logs
- Review recent cluster events while on call
- Check CPU and memory use per pod or node
- List custom resources and their status in a namespace
Pricing
Free
Free to run locally or in Docker
MCP K8s Ro FAQ
Can MCP K8s Ro change my cluster?
No. It never creates, updates or deletes; it prints the kubectl command instead.
Are secrets exposed to the model?
Secret data and stringData are masked before being sent.
Can MCP K8s Ro work with several clusters?
Register one server instance per cluster; a single instance has no tool for switching.
How do I run MCP K8s Ro?
As a Docker container or a downloaded binary over stdio, with KUBECONFIG set if the file is not at ~/.kube/config.
Do the top tools always work?
They require metrics-server in the cluster.
Is MCP K8s Ro free?
Yes. MCP K8s Ro is free to use.
How do I add MCP K8s Ro to Claude Code?
Run this command in your terminal: claude mcp add mcp-k8s-ro -- docker run -i --rm ghcr.io/your-ko/mcp-k8s-ro:1.2.2
What are the best alternatives to MCP K8s Ro?
The closest alternatives to MCP K8s Ro are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


