Loading...

A Kubernetes MCP server providing a standardized interface for interacting with Kubernetes clusters, offering resource management, monitoring, and control capabilities.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
A Kubernetes MCP server providing a standardized interface for interacting with Kubernetes clusters, offering resource management, monitoring, and control capabilities.
The server's safety depends heavily on its configuration. Read-only mode and proper RBAC significantly reduce risk. However, the ability to create, update, and delete resources, combined with potential misconfigurations, introduces moderate risk.
Performance is primarily limited by the Kubernetes API server's responsiveness and network latency. Listing large numbers of resources can be slow.
Cost is primarily related to Kubernetes API call volume and the resources consumed by the server itself. Monitoring metrics can add to cloud provider costs.
{
"mcp.mcpServers": {
"k8s-mcp-server": {
"command": "k8s-mcp-server",
"args": ["--mode", "stdio"],
"env": {
"KUBECONFIG": "${env:HOME}/.kube/config"
}
}
}
}SERVER_PORTgetAPIResourcesRetrieves all available API resources in the Kubernetes cluster.
Read-only operation with no side effects.
listResourcesLists resources of a specified type, with optional filtering by namespace and labels.
Read-only operation; only lists existing resources.
getResourceRetrieves detailed information about a specific Kubernetes resource.
Read-only operation; retrieves existing resource data.
describeResourceProvides a comprehensive description of a Kubernetes resource.
Read-only operation; provides information about a resource.
getPodsLogsRetrieves logs from a specified pod, optionally from a specific container.
Read-only operation; retrieves log data.
getNodeMetricsRetrieves resource usage metrics for a specific node.
Read-only operation; retrieves metrics data.
getPodMetricsRetrieves CPU and memory metrics for a specific pod.
Read-only operation; retrieves metrics data.
getEventsLists events within a namespace or related to a specific resource.
Read-only operation; lists existing events.
createResourceCreates or updates Kubernetes resources from a YAML or JSON manifest.
Can modify cluster state; requires careful validation of input.
deleteResourceDeletes a resource in the Kubernetes cluster based on the provided namespace and kind.
Destructive operation; can lead to data loss or service disruption.
Environment Variable
hybrid
The server's safety depends heavily on its configuration. Read-only mode and proper RBAC significantly reduce risk. However, the ability to create, update, and delete resources, combined with potential misconfigurations, introduces moderate risk.
Autonomy is highly dependent on RBAC configuration and whether read-only mode is enabled. Without these safeguards, the server has full access to the cluster.
Production Tip
Always run the server in read-only mode in production environments unless write access is explicitly required.
Kubeconfig file, KUBECONFIG_DATA environment variable, API server URL and token, and in-cluster service account.
Use the `--read-only` flag when starting the server.
The server defaults to SSE mode on port 8080.
Mount your `~/.kube/config` file to `/home/appuser/.kube/config` inside the container.
Yes, use the `--no-k8s` or `--no-helm` flags.
The server requires `get`, `list`, `watch`, `create`, `update`, `patch`, and `delete` permissions on the resources it needs to manage.
Use the `--port` flag or the `SERVER_PORT` environment variable.