← Back to browse

About

MCP server for natural-language Kubernetes operations across single or multi-cluster environments.

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsKUBECONFIG OTEL_EXPORTER_OTLP_ENDPOINT
Claude Code
claude mcp add --env KUBECONFIG= --env OTEL_EXPORTER_OTLP_ENDPOINT= k8s-lens-mcp -- uvx k8s-lens-mcp
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"k8s-lens-mcp","command":"uvx","args":["k8s-lens-mcp"],"env":{"KUBECONFIG":"","OTEL_EXPORTER_OTLP_ENDPOINT":""}}'
JSON
{
  "mcpServers": {
    "k8s-lens-mcp": {
      "command": "uvx",
      "args": [
        "k8s-lens-mcp"
      ],
      "env": {
        "KUBECONFIG": "",
        "OTEL_EXPORTER_OTLP_ENDPOINT": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.