Sitemap

๐Ÿš€ ๐Œ๐š๐ฌ๐ญ๐ž๐ซ๐ข๐ง๐  ๐Œ๐‚๐: ๐‚๐จ๐ง๐ง๐ž๐œ๐ญ๐ข๐ง๐  ๐Š๐ฎ๐›๐ž๐ซ๐ง๐ž๐ญ๐ž๐ฌ ๐ฐ๐ข๐ญ๐ก ๐‚๐ฅ๐š๐ฎ๐๐ž ๐€๐ˆ ๐ƒ๐ž๐ฌ๐ค๐ญ๐จ๐ฉ ๐Ÿ“Œ

6 min readOct 28, 2025

--

In todayโ€™s cloud-native world, managing Kubernetes clusters efficiently is crucial for developers and DevOps teams alike. Enter MCP, a powerful tool designed to simplify the way we interact with Kubernetes. If youโ€™ve been curious about how MCP works and how it integrates with AI tools like Claude AI Desktop, this article is for you.

Press enter or click to view image in full size

What is MCP?

MCP, short for Modern Cluster Protocol, provides a seamless interface to manage Kubernetes clusters. Unlike traditional kubectl commands, MCP abstracts much of the complexity, allowing developers to focus on deploying and monitoring applications rather than getting lost in YAML files and CLI intricacies.

Press enter or click to view image in full size

MCP Server and Client in Claude Desktop

Traditionally, MCP operates on a server-client model:

  • MCP Server: Acts as the central brain of operations. It manages cluster connections, handles requests from clients, and ensures commands reach the correct cluster.
  • MCP Client: Your interface, either a CLI or an IDE/desktop plugin , that communicates with the server to execute tasks.

But hereโ€™s the good news:

When using Claude Desktop, you donโ€™t need to install an MCP server manually. The desktop app includes an embedded MCP server that handles all communication with your Kubernetes cluster using your existing kubeconfig.

This means you can start managing your Kubernetes resources immediately, deploying applications, monitoring cluster status, and even receiving AI-assisted recommendations, without worrying about setting up servers.

MCP Server: No Extra Installation Needed

One of the best parts about using Claude Desktop with Kubernetes is that you donโ€™t need to manually install an MCP server. The desktop app includes an embedded MCP server that handles all communication with your cluster using your existing kubeconfig.

Connecting Claude AI Desktop to Kubernetes via the Kubernetes Connector

Press enter or click to view image in full size

Claude Desktop simplifies cluster management with its Kubernetes connector. Hereโ€™s the step-by-step workflow:

  1. Install Claude AI Desktop

Ensure you have the latest version with Kubernetes integration.

https://www.claude.com/download

Press enter or click to view image in full size

2. After logging in to the Claude Desktop, connect the Kubernetes MCP

  • Manage Connectors
Press enter or click to view image in full size
  • Desktop Extensions find the Kubernetes MCP
Press enter or click to view image in full size
  • Kubernetes MCP Extension permission and Details
Press enter or click to view image in full size

2. Verify the Embedded MCP Server

  • The server runs automatically inside Claude Desktop.

โ€œMCP Server Running - Managed by Extensionโ€.

Press enter or click to view image in full size

3. Command Execution: Commands issued from the client are sent to the server, which then interacts with the Kubernetes API to perform the requested operations.

4. Response Handling: The server returns cluster state, logs, or operation results back to the client in a user-friendly format.

Get Janushanth Sivaratnamโ€™s stories inย yourย inbox

Join Medium for free to get updates fromย thisย writer.

This architecture allows multiple clients to connect simultaneously, making MCP ideal for team environments.

Letโ€™s Get Our Hands Dirty: Managing Kubernetes with Claude AI Desktop

Once your Kubernetes connector is set up and the embedded MCP server is running, itโ€™s time to see it in action. Claude Desktop allows you to interact with your cluster directly through chat, making it incredibly intuitive to:

  • Query Cluster Status: Ask Claude to list nodes, pods, or services.
  • Deploy Applications: Use natural language to trigger deployments.
  • Monitor Resources: Get AI-assisted recommendations for optimizing CPU, memory, and other resources.
  • Debug & Inspect: Quickly inspect logs or check service health through chat commands.

๐Ÿ‘‰ Check out Claude Desktop AI connected to a local Kubernetes cluster. Iโ€™m using Docker Desktop as my Kubernetes environment, but you can also use k3s, Minikube, MicroK8s, or any other Kubernetes cluster (Cloud Azure AKS, Amazon EKS).

1st Query: Hi Claude, can you check my local Kubernetes cluster connectivity?

Press enter or click to view image in full size

๐Ÿ‘‰ Docker Desktop is available in my local environment

Press enter or click to view image in full size

๐Ÿ‘‰ 2nd Query: โ€œCan you list all the namespaces in my Kubernetes cluster?โ€

Press enter or click to view image in full size

Here, you can choose โ€œAlways Allowโ€ or โ€œAllow Once.โ€ I tend to be a bit security-consciousโ€ฆ and a strict parent ๐Ÿ˜„

Press enter or click to view image in full size

๐Ÿ‘‰Query 3: โ€œCan you create a new application named janushanth-devops in the namespace ai-world, with 2 replicas using the Nginx image, expose it on port 5050, and set the website content to say Hello Claude AI MCP Server โ€“ Janushanth DevOpsโ€

Press enter or click to view image in full size
Press enter or click to view image in full size

I couldnโ€™t access the site because Iโ€™m using Docker Desktop, and the request needs to be made through the localhost URL.

Letโ€™s verify whether the Pods were created in the Docker cluster.

Press enter or click to view image in full size

๐Ÿ‘‰Query 3: โ€œI am using Docker Desktop, need to access through the localhost URLโ€

Press enter or click to view image in full size

Access the site through localhost. ๐Ÿ‘ˆ๐Ÿ˜Ž

Press enter or click to view image in full size

Success! The site is now up and running ๐ŸŽ‰

Press enter or click to view image in full size

This integration bridges the gap between AI and DevOps, allowing you to supercharge Kubernetes management with intelligent automation and insights.

Why This Matters

Press enter or click to view image in full size

Managing Kubernetes doesnโ€™t have to be complex. MCP simplifies access, while Claude AI Desktop brings AI assistance into the mix. Together, they create a workflow thatโ€™s faster, smarter, and more efficient. Developers and DevOps engineers can:

  • Reduce the time spent on repetitive cluster tasks
  • Visualize cluster state and performance with AI insights
  • Collaborate across teams with a centralized MCP server

Conclusion

MCP is redefining how we interact with Kubernetes by making cluster management more accessible and efficient. Pairing it with Claude AI Desktop adds a layer of AI intelligence, helping teams make informed decisions faster. Whether youโ€™re a developer, DevOps engineer, or cloud enthusiast, exploring MCP and Claude AI integration is a step toward the future of smart cloud-native workflows.

--

--

Janushanth Sivaratnam
Janushanth Sivaratnam

Written by Janushanth Sivaratnam

Expertise in DevOps and IT Support