Connections & Capabilities
Connects To
Capabilities
Quickstart
Install
npx @modelcontextprotocol/inspectorConfig
{
"mcpServers": {
"mcp_k8s": {
"command": "mcp-k8s",
"args": []
}
}
}Exposed MCP Tools (8)
List Kubernetes contextsLists available Kubernetes contexts.
Read-only operation, no side effects.
List Kubernetes namespacesLists available Kubernetes namespaces.
Read-only operation, no side effects.
List, get, create and modify any Kubernetes resourcesLists, retrieves, creates, and modifies Kubernetes resources.
Can modify cluster state, potentially causing disruption.
List Kubernetes nodesLists available Kubernetes nodes.
Read-only operation, no side effects.
List Kubernetes podsLists available Kubernetes pods.
Read-only operation, no side effects.
Get Kubernetes eventsRetrieves Kubernetes events.
Read-only operation, no side effects.
Get Kubernetes pod logsRetrieves logs from Kubernetes pods.
Read-only operation, no side effects.
Run command in Kubernetes podExecutes a command inside a Kubernetes pod.
Can execute arbitrary commands with the pod's privileges.
Safety Assessment
This MCP server offers configurable safety through read-only mode and context restrictions. However, improper configuration or running in write mode without proper RBAC controls can pose security risks. Exercise caution when granting access to modify resources or execute commands.
- Supports read-only mode to prevent accidental modifications.
- Allows specifying allowed Kubernetes contexts to limit access.
- Secrets masking is enabled by default.
- Can be run in a Docker container for isolation.
- Can perform write operations on Kubernetes resources if not in read-only mode.
- Requires access to the Kubernetes configuration file.
- If not configured correctly, could expose Kubernetes resources to unauthorized access.
- Execution of commands inside pods can be risky if not properly controlled.
