K8s Lens
v0.1.0MCP server for natural-language Kubernetes operations across single or multi-cluster environments.
Values you need
| Variable | What it is | |
|---|---|---|
KUBECONFIG | optional | Path to kubeconfig file (defaults to ~/.kube/config) |
OTEL_EXPORTER_OTLP_ENDPOINT | optional | OpenTelemetry OTLP endpoint for tracing (optional) |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add k8s-lens-mcp -- uvx k8s-lens-mcp==0.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"k8s-lens-mcp": {
"args": [
"k8s-lens-mcp==0.1.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"k8s-lens-mcp": {
"args": [
"k8s-lens-mcp==0.1.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"k8s-lens-mcp": {
"args": [
"k8s-lens-mcp==0.1.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.k8s-lens-mcp]
command = "uvx"
args = ["k8s-lens-mcp==0.1.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: health, get_resources, analyze_pod, compare_deployments, generate_manifest, compare_helm_releases, advise_resources.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json