mcp-k8s-ro MCP
A read-only MCP server built in Go that allows agents to inspect Kubernetes resources, logs, events, and metrics without mutating the cluster. It masks secret values, uses token-efficient responses, and locks to the active kubeconfig context at startup to ensure safety and context awareness.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- List resources by name with optional namespace filters
- Fetch pod logs with container selector and tail lines
- Get CPU and memory usage per pod or node
- List Kubernetes events sorted by recency
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
ghcr.io/your-ko/mcp-k8s-ro:1.2.2
{
"transport": "stdio",
"identifier": "ghcr.io/your-ko/mcp-k8s-ro:1.2.2",
"registryType": "oci",
"environmentVariables": [
{
"name": "KUBECONFIG",
"format": "string",
"description": "Path to the kubeconfig file. Defaults to ~/.kube/config."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"mcp-k8s-ro-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"KUBECONFIG=<YOUR_KUBECONFIG>",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.2"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}Cline
{
"mcpServers": {
"mcp-k8s-ro-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"KUBECONFIG=<YOUR_KUBECONFIG>",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.2"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}VS Code
{
"servers": {
"mcp-k8s-ro-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"KUBECONFIG=<YOUR_KUBECONFIG>",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.2"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-k8s-ro-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"KUBECONFIG=<YOUR_KUBECONFIG>",
"ghcr.io/your-ko/mcp-k8s-ro:1.2.2"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}Let your agent find its tools
Find servers like mcp-k8s-ro MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.