Kubernetes MCP Server
Provides real-time observability and debugging capabilities for Kubernetes clusters, including access to pods, services, nodes, events, and deployments with built-in health monitoring and connectivity analysis tools.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Kubernetes MCP Servercheck pod status in the production namespace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Kubernetes MCP Server - Production Ready
A production-ready Model Context Protocol (MCP) server for Kubernetes observability and debugging.
π What This Provides
MCP Server: Standardized interface for Kubernetes cluster access
Real-time Data: Live access to pods, services, nodes, and events
Debugging Tools: Built-in tools for cluster health and issue analysis
Production Ready: Clean, tested code ready for production use
Related MCP server: mcp-kubernetics
π Prerequisites
Kubernetes cluster (local or remote)
kubectl configured and working
Python 3.11+
pip package manager
π οΈ Quick Setup
1. Clone the Repository
git clone https://github.com/vivekbala/mcp.git
cd mcp2. Install Dependencies
python3.11 -m pip install -r requirements.txt3. Verify Setup
python3.11 verify_setup.pyπ§ MCP Server Features
Resources Available
k8s://pods- All pods with status and detailsk8s://services- Services with endpoints and connectivity infok8s://nodes- Node health and capacity infok8s://events- Recent cluster events for troubleshootingk8s://deployments- Deployment status and replica info
Tools Available
cluster_health_check- Comprehensive health analysischeck_pod_status- Pod status and issue identificationanalyze_service_connectivity- Service endpoint analysisget_pod_logs- Log retrieval and analysis
π± Usage Examples
Basic Demo
python3.11 demo_script.pyDebugging Demo
python3.11 debug_demo.pyRun MCP Server
python3.11 mcp_server.pyπ Integration Options
Claude Desktop
{
"mcpServers": {
"kubernetes-observability": {
"command": "python3.11",
"args": ["/path/to/mcp_server.py"],
"env": {
"KUBECONFIG": "/path/to/kubeconfig"
}
}
}
}Custom Clients
Use the MCP client libraries
Build custom debugging interfaces
Integrate with existing monitoring tools
π Learning Resources
π€ Contributing
Feel free to submit issues, feature requests, or pull requests to improve this MCP server.
π License
This project is open source and available under the MIT License.
Ready to debug Kubernetes like a pro? π
Clone this repo and start debugging your cluster issues today!
This server cannot be deployed
Maintenance
Related MCP Connectors
The Google GKE MCP server is a managed Model Context Protocol server that provides AI applications with tools to manage Google Kubernetes Engine (GKE) clusters and Kubernetes resources. It exposes a structured, discoverable interface that allows AI agents to interact with GKE and Kubernetes APIs, enabling them to inspect cluster configurations, retrieve Kubernetes resource YAMLs, monitor operations like cluster upgrades, diagnose issues, and optimize costsβall without needing to parse text output or use complex kubectl commands.
- SpanlyOAuthcom.spanly
MCP observability. Query live traffic, errors, duration, and alerts from your AI agent.
Hosted MCP catalog with 30 tenant-isolated browser, RAG, AI, mail and media tools.
MCP-native AI SRE: ask what's broken in production, get a reviewed GitHub fix PR.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceProvides MCP multi-cluster Kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.887MIT
- FlicenseNot gradedqualityDmaintenanceEnables Kubernetes cluster introspection via MCP tools, such as listing pods, namespaces, nodes, and events.4-
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered Kubernetes management using natural language, supporting kubectl, Helm, diagnostics, and port forwarding via MCP protocol.MIT
- FlicenseNot gradedqualityBmaintenanceProvides read-only Kubernetes cluster operations via MCP, enabling LLMs to query nodes, pods, logs, events, and watch real-time status for troubleshooting.2-