Mcp Kubernetes Ro MCP Server

mcp-kubernetes-ro is a Model Context Protocol (MCP) server providing read-only access to Kubernetes clusters for AI assistants. It enables AI models to list resources, get resource details, retrieve pod logs, discover…

Local server

What is the Mcp Kubernetes Ro MCP Server?

Mcp Kubernetes Ro source profile. From the maintainer documentation: “mcp-kubernetes-ro is a Model Context Protocol (MCP) server providing read-only access to Kubernetes clusters for AI assistants. It enables AI models to list resources, get resource details, retrieve pod logs, discover API resources, and perform base64 encoding/decoding operations - all while maintaining security through read-only access.”

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
MCP_KUBERNETES_RO_DISABLED_TOOLSEnvironment variable for disabled tools (merged with flag values, fallback: DISABLED_TOOLS)
MCP_KUBERNETES_RO_DISABLED_RESOURCESEnvironment variable for disabled resources (merged with flag values)
resource_typerequired): The type of resource to get
api_versionoptional): API version for the resource (e.g., 'v1', 'apps/v1')
namespacerequired): Pod namespace
contextoptional): Kubernetes context to use (defaults to current context from kubeconfig)
label_selectoroptional): Label selector to filter resources (e.g., 'app=nginx,version=1.0')
field_selectoroptional): Field selector to filter resources (e.g., 'status.phase=Running')
limitoptional): Maximum number of pod metrics to return. If not provided, returns all available metrics.
continueoptional): Continue token for pagination (from previous response).
containeroptional): Container name (required for multi-container pods)
max_linesoptional): Maximum number of lines to retrieve
grep_includeoptional): Include only lines matching these patterns (comma-separated). Works like grep - includes lines containing any of these patterns
grep_excludeoptional): Exclude lines matching these patterns (comma-separated). Works like grep -v - excludes lines containing any of these patterns
use_regexoptional): Whether to treat grep patterns as regular expressions instead of literal strings
sinceoptional): Return logs newer than this time. Supports durations like "5m", "1h", "2h30m", "1d" or absolute times like "2023-01-01T10:00:00Z"
previousoptional): Return logs from the previous terminated container instance (like kubectl logs --previous)
node_nameoptional): Specific node name to get metrics for. If not provided, returns metrics for all nodes.
pod_nameoptional): Specific pod name to get metrics for. Requires namespace if specified.
Clientside pagination is implemented for consistent ordering and filtering
datarequired): Base64 data to decode
podrequired): Pod name
portsrequired): Array of port mappings, each with:
pod_portrequired): Port on the pod to forward to (1-65535)
local_portoptional): Local port to listen on (0 or omit for auto-assign)
idrequired): Port forward session ID (e.g., "pf-1")