K8s Lens
MCP server for natural-language Kubernetes operations across single or multi-cluster environments.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
k8s-lens-mcpclaude mcp add k8s-lens -e 'KUBECONFIG=<KUBECONFIG>' -e 'OTEL_EXPORTER_OTLP_ENDPOINT=<OTEL_EXPORTER_OTLP_ENDPOINT>' -- uvx k8s-lens-mcp==0.1.0
{
"mcpServers": {
"k8s-lens": {
"command": "uvx",
"args": [
"k8s-lens-mcp==0.1.0"
],
"env": {
"KUBECONFIG": "<KUBECONFIG>",
"OTEL_EXPORTER_OTLP_ENDPOINT": "<OTEL_EXPORTER_OTLP_ENDPOINT>"
}
}
}
}
Environment variables
KUBECONFIGPath to kubeconfig file (defaults to ~/.kube/config)OTEL_EXPORTER_OTLP_ENDPOINTOpenTelemetry OTLP endpoint for tracing (optional)
Frequently asked questions
What is K8s Lens?
MCP server for natural-language Kubernetes operations across single or multi-cluster environments.
How do I install K8s Lens?
It runs on your machine. In Claude Code: claude mcp add k8s-lens -e 'KUBECONFIG=<KUBECONFIG>' -e 'OTEL_EXPORTER_OTLP_ENDPOINT=<OTEL_EXPORTER_OTLP_ENDPOINT>' -- uvx k8s-lens-mcp==0.1.0. For other clients, paste the JSON configuration from this page into their MCP settings.
Does K8s Lens need an API key?
Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.
Is K8s Lens open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains K8s Lens?
It is published by firas-mcp-servers. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.