Lens MCP Server#
Lens premium subscription feature. See details on Lens Pricing.
Lens MCP Server connects your AI assistants to Lens K8S IDE, so you investigate and troubleshoot Kubernetes clusters in natural language. It implements the Model Context Protocol (MCP), an open standard by Anthropic donated to the Agentic AI Foundation (AAIF).
Describe what you need, and the server runs read-only kubectl and PromQL commands on your behalf. Your AI tool also works in Lens itself, and prepares changes for you to apply.
Key capabilities#
- List and manage cluster connections from AWS EKS, Azure AKS, local kubeconfig, and Lens Teamwork Spaces
- Run read-only kubectl commands (
get,describe,logs,top, and more) across connected clusters - Query Prometheus: list metrics, view alerts, get targets, execute instant and range queries
- Work in Lens: open resources, logs, and terminals, manage Helm releases, port forwards, and costs, and drive Lens
- Works with any MCP-compatible client: Claude Desktop, Claude Code, Cursor, Windsurf, ChatGPT, and others
-
Enable the MCP Server and connect your first AI assistant in under 5 minutes.
-
List clusters, connect to them, and run read-only kubectl commands.
-
Query metrics, view alerts, inspect targets, and execute PromQL queries.
-
Navigation, dock, Helm, port forwards, costs, extensions, and driving Lens.
Requirements#
- You have a Plus, Pro, or Enterprise subscription plan. For details, see Lens Pricing
- A Lens K8S IDE version that includes the MCP Server. If the Enable Lens MCP Server toggle is missing from Preferences > Integrations > AI & Intelligence Integrations, update Lens to the latest release. If the section shows Lens MCP Server is disabled instead, your organization turned the MCP Server off in Lens Cloud.
- The Lens CLI is bundled with Lens K8S IDE and used automatically by the MCP Server. No separate installation is required.
- An MCP-compatible AI assistant (Claude Desktop, Claude Code, Cursor, Windsurf, or other MCP client)
Limitations#
- Your AI tool prepares changes to your cluster in Lens editors and dialogs, and you decide whether to apply them. See What the server can change.
- Lens K8S IDE must be running for the MCP server to work
Related topics#
-
Video: set up the AWS EKS integration, so the MCP Server reaches your EKS clusters.
-
Configure Azure AKS integration
Video: set up the Azure AKS integration, so the MCP Server reaches your AKS clusters.
-
Share your Kubernetes clusters with other Lens K8S IDE users.