k8s-ai
If you are the rightful owner of k8s-ai and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcpreview.com.
AI-Powered Kubernetes Management (MCP + Agent)
🎯 Kubernetes AI Management System
AI-Powered Kubernetes Management (MCP + Agent)
⎈ K8s AI Management
├── 🤖 MCP Server
├── 🔍 K8s Tools
└── 🚀 Agent mode with Rest API
✨ Overview
This project combines the power of AI with Kubernetes management. Users can perform real-time diagnostics, resource monitoring, and smart log analysis. It simplifies Kubernetes management through conversational AI, providing a modern alternative.
💡 Just ask questions naturally - no need to memorize commands!
🏗️ Project Structure
The project is organized into the following modules:
- agent: Agent mode backed by Rest API to analyze the cluster using natural language
- mcp-server: MCP server backed by tools which can be integrated with MCP host (like Claude desktop) to provide a full experience
- tools: Kubernetes tools for cluster analysis/management (used by both agent and mcp-server)
🎁 Features
This AI-powered system understands natural language queries about your Kubernetes cluster. Here are some of the capabilities provided by the system which can be queried using natural language:
🏥 Cluster Health and Diagnostics
- "What's the status of my cluster?"
- "Show me all pods in the default namespace"
- "Are there any failing pods? in default namespace"
- "What's using the most resources in my cluster?"
- "Give me a complete health check of the cluster"
- "Are there any nodes not in Ready state?"
- "Show me pods in default namespace that have been running for more than 7 days"
- "Identify any pods running in default namespace with high restart counts"
🌐 Network Analysis
- "Show me the logs for the payment service"
- "List all ingresses in the cluster"
- "Show me all services and their endpoints"
- "Check if my service 'api-gateway' has any endpoints"
- "Show me all exposed services with external IPs"
💾 Storage Management
- "List all persistent volumes in the cluster"
- "Show me storage claims that are unbound"
- "What storage classes are available in the cluster?"
- "Which pods are using persistent storage?"
- "Are there any storage volumes nearing capacity?"
⏱️ Job and CronJob Analysis
- "List all running jobs in the batch namespace"
- "Show me failed jobs from the last 24 hours"
- "What CronJobs are scheduled to run in the next hour?"
- "Show me the execution history of the 'backup' job"
⎈ Helm Release Management
- "List all Helm releases"
- "Upgrade the MongoDB chart to version 12.1.0"
- "What values are configured for my Prometheus release?"
- "Rollback the failed Elasticsearch release"
- "Show me the revision history for my Prometheus release"
- "Compare values between different Helm releases"
- "Check for outdated Helm charts in my cluster"
- "What are the dependencies for my Elasticsearch chart?"
Note: The system uses AI to analyze patterns in logs, events, and resource usage to provide intelligent diagnostics and recommendations.
🛠️ Prerequisites
Requirement | Version |
---|---|
☕ JDK | 17 or later |
🧰 Maven | 3.8 or later |
⎈ Minikube/Any Kubernetes cluster | Configured ~/.kube/config |
Note: The system uses the kubeconfig file from
~/.kube/config
, so make sure it is properly configured.
🏗️ 1. Project Build
# Build all modules
mvn clean package
# Run the MCP server
java -jar mcp-server/target/mcp-server-1.0-SNAPSHOT.jar
# Alternatively, run the agent directly
java -jar agent/target/agent-*-fat.jar
🛠️ 2. Minikube setup
Install minikube and create a nginx deployment:
# Install minikube
brew install minikube
# Start minikube
minikube start
# Make sure kubeconfig is set
kubectl config use-context minikube
# Deploy nginx
kubectl create deployment nginx --image=nginx:latest
# Check whether nginx is running
kubectl get pods
Note: You should see
nginx
pod in the output
🛠️ 3. Testing project
🤝 3.1 MCP Server integration with Claude Desktop
Refer to for instructions on how to integrate with Claude Desktop
3.2. Agent Mode with Rest API
Refer to for instructions on how to run the agent
📄 License
This project is licensed under the MIT License - see the file for details.
Related MCP Servers
View all developer_tools servers →context7
by upstash
Context7 MCP provides up-to-date, version-specific documentation and code examples directly into your prompt, enhancing the capabilities of LLMs by ensuring they use the latest information.
git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Sequential Thinking
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
github-mcp-server
by github
The GitHub MCP Server is a Model Context Protocol server that integrates with GitHub APIs for automation and interaction.
claude-task-master
by eyaltoledano
Task Master is a task management system for AI-driven development with Claude, designed to work seamlessly with Cursor AI.
deepwiki-mcp
by regenrek
This is an unofficial Deepwiki MCP Server that processes Deepwiki URLs, crawls pages, converts them to Markdown, and returns documents or lists by page.
terraform-mcp-server
by hashicorp
The Terraform MCP Server is a Model Context Protocol server that integrates with Terraform Registry APIs for advanced automation in Infrastructure as Code development.
Everything MCP Server
by modelcontextprotocol
The Everything MCP Server is a comprehensive test server designed to demonstrate the full capabilities of the Model Context Protocol (MCP). It is not intended for production use but serves as a valuable tool for developers building MCP clients.