{"slug": "kubernetes-mcp-server-for-all-your-clusters-inside-lens", "title": "Kubernetes MCP Server for All Your Clusters, Inside Lens", "summary": "Lens K8S IDE 2026.11.1 adds a Lens MCP Server that gives MCP clients such as Claude Code, Cursor and GitHub Copilot access to every cluster connected to Lens — kubeconfig, AWS EKS, Azure AKS, Google GKE and Lens Teamwork Spaces — through more than 80 tools, up from the Kubernetes and Prometheus tools the server shipped with in March 2026. The server runs inside Lens with existing credentials, requires no separate deployment or logins, and lets agents draft changes, including Helm installs and rollbacks, that reach a cluster only after the user applies them. In a demo run on a laptop with 13 clusters, the agent reported 12 healthy and one GKE cluster that did not answer.", "body_md": "**TL;DR:**\n\n- MCP (Model Context Protocol) is an open standard that lets AI agents use external tools. An MCP server is the program that gives an agent those tools.\n- **Every cluster at once:** the Lens MCP Server gives your agent every cluster connected to Lens: kubeconfig, AWS EKS, Azure AKS, Google GKE and Lens Teamwork Spaces. Ask once, with no switching between clusters.\n- **Your IDE is the MCP server:** your agent opens what it finds in Lens, and when you turn it on, it drives Lens while you watch.\n- **You stay in control:** your agent drafts every change, including Helm in the Lens Helm screens, and nothing reaches your cluster until you apply it.\n- **One server, nothing to deploy, no extra logins:** kubectl, Prometheus, costs and CVEs, with the access Lens already has. More than 80 tools in Lens K8S IDE 2026.11.1, and more with extensions.\n\nYour AI agent is only as useful as what it can reach. Most of the time that means one cluster, one context, one set of credentials at a time.\n\nThe Lens MCP Server changes that. Turn it on in Lens K8S IDE, and Claude Code, Cursor, GitHub Copilot or any other MCP client gets every cluster connected to Lens, from the cloud to your laptop. Your agent investigates across all of them, opens what it finds in Lens, and leaves every change to you.\n\nThe Lens MCP Server [first shipped in March 2026](https://lenshq.io/blog/lens-mcp-server/) with Kubernetes and Prometheus tools. [Lens K8S IDE 2026.11.1](https://lenshq.io/blog/lens-release-2026-11/) adds the Lens tools that Ask AI uses, for more than 80 tools in all.\n\n## What you get because the server is Lens\n\nBecause the MCP server is Lens itself, your agent gets more than kubectl:\n\nReach every cluster connected to Lens at once\n\nKubeconfig, EKS, AKS, GKE and Teamwork Spaces. Ask once; your agent checks them all. No switching or separate logins.\n\nYour IDE is the MCP server\n\nYour agent opens what it finds right in Lens: the resource, its logs, a terminal.\n\nYour agent can drive Lens\n\nOff until you turn it on. Then it clicks and types in Lens while you watch, and you can stop it at any time.\n\nYou are in control of every change\n\nYour agent drafts the change; nothing reaches your cluster until you apply it.\n\nHelm with a real UI\n\nInstalls, upgrades and rollbacks open in the Lens Helm screens, with the chart, version and values in front of you.\n\nKubernetes, metrics, costs and security in one server\n\nkubectl, Prometheus, costs and CVEs in one place.\n\nNothing to deploy, no extra credentials or logins\n\nRuns in Lens with the access you already have.\n\nMore tools with every extension\n\nLens extensions can add tools for your agent, where your organization allows extensions.\n\n## See it in action\n\nFrom a real run on a laptop with 13 clusters in Lens, cluster names left out:\n\n```\nYou:    How are all my clusters?\n\nAgent:  list-clusters\n        13 clusters: kubeconfig, Azure AKS, Google GKE and more\n        kubectl get nodes, on each cluster\n        (Lens connects the clusters that weren't connected)\n\n        12 clusters are healthy: every node is Ready.\n        1 GKE cluster didn't answer.\n```\n\nOne question, every cluster, no switching. Try these prompts too:\n\n- \"Which pods are restarting in the `production` namespace, and why?\"\n- \"Show me the firing Prometheus alerts on all my clusters.\"\n- \"Which namespace costs the most on this cluster?\"\n- \"Roll back the `checkout` release to its previous revision.\" Lens opens the rollback dialog, and you confirm it.\n\n## What you need\n\n- Lens K8S IDE 2026.11.1 or later, on a Plus, Pro or Enterprise plan or a free trial.\n- An MCP client, such as Claude Code, Cursor or GitHub Copilot.\n- For cloud clusters, the Lens AWS, Azure or Google Cloud integration, signed in.\n- For metrics, Prometheus in the cluster. For costs, Cost Monitoring set up. For CVEs, the Trivy Operator.\n\n## Connect your AI agent in just two steps\n\n### Step 1: Turn on the Lens MCP Server and copy its configuration\n\n1. In Lens, open **Preferences** >**Integrations** .\n2. Under **AI & Intelligence Integrations** , turn on**Enable Lens MCP Server** .\n3. Expand **Configure your MCP client** and copy the configuration with the copy icon.\n\n### Step 2: Paste it into your AI agent\n\n1. Paste the configuration into the MCP configuration of your AI agent. It contains paths on your machine, so use your user-level configuration, or don't commit it to a shared repository.\n2. Restart your AI agent so it loads the Lens MCP Server.\n\nIn Claude Code, run `/mcp` to check it: the `lens` server shows as connected.\n\nThat's it. You're ready to work with all your clusters from your AI agent.\n\n## Learn more\n\n- [Manage all your K8s clusters from any AI assistant with the Lens MCP Server](https://lenshq.io/blog/lens-mcp-server/)\n- [What's new in Lens K8S IDE 2026.11.1](https://lenshq.io/blog/lens-release-2026-11/)\n- [Cost Monitor & Optimization in Lens K8S IDE](https://lenshq.io/blog/lens-release-september26-cost/)\n- Connect your cloud clusters: [AWS EKS](https://lenshq.io/blog/aws-eks/) ,[Azure AKS](https://lenshq.io/blog/lens-aks-integration/) ,[Google GKE](https://lenshq.io/blog/lens-gke-integration/)\n\nTry your AI agent with the Lens MCP Server for Kubernetes, free.", "url": "https://wpnews.pro/news/kubernetes-mcp-server-for-all-your-clusters-inside-lens", "canonical_source": "https://lenshq.io/blog/kubernetes-mcp-server/", "published_at": "2026-11-20 00:00:00+00:00", "updated_at": "2026-11-20 20:12:12.891604+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools", "ai-infrastructure"], "entities": ["Lens", "Lens K8S IDE 2026.11.1", "Model Context Protocol", "Claude Code", "Cursor", "GitHub Copilot", "Amazon EKS", "Azure AKS"], "also_reported_by": [], "takeaway": "Enabling the Lens MCP Server in Lens K8S IDE 2026.11.1 exposes over 80 tools across all Lens-connected clusters — kubectl, Prometheus, cost and CVE data — to any MCP client, with agent changes applied only after user confirmation.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/kubernetes-mcp-server-for-all-your-clusters-inside-lens", "markdown": "https://wpnews.pro/news/kubernetes-mcp-server-for-all-your-clusters-inside-lens.md", "text": "https://wpnews.pro/news/kubernetes-mcp-server-for-all-your-clusters-inside-lens.txt", "jsonld": "https://wpnews.pro/news/kubernetes-mcp-server-for-all-your-clusters-inside-lens.jsonld"}}