k8s-mcp-server
The Kubernetes MCP Server is a Model Context Protocol server designed to enable automation and interaction with Kubernetes APIs. It facilitates AI-driven monitoring and management of Kubernetes resources using natural language.
Overview 📊
This MCP server enables AI tools to interact with Kubernetes clusters using natural language, providing capabilities to:
- Retrieve and analyze cluster resources
- Monitor deployments, pods, and services
- Execute common kubectl operations through AI interfaces
- Troubleshoot cluster issues with AI assistance
Prerequisites ✅
- A Kubernetes cluster with API access
- Valid kubeconfig file or service account credentials
- Appropriate RBAC permissions for desired operations
Installation 💻
Usage with Claude Desktop
Usage with VS Code
Usage with Cline
Build from source
Clone the repository and build the binary:
Or install directly with Go:
Command Line Options ⌨️
A Kubernetes MCP Server that provides tools for interacting with Kubernetes clusters.
Server Transport Options 🔄
stdio
The stdio
transport is the default and recommended option for most users for local integration:
SSE
The sse
transport provides support for HTTP-based JSON-RPC message transport.
Access Control 🔒
By default, the server applies the permissions of the provided kubeconfig or service account.
Tools 🧰
The Kubernetes MCP Server provides a comprehensive set of tools for interacting with your Kubernetes cluster.
Resource Operations 📦
- get_pod - Get detailed information about a specific pod
Management Operations ⚙️
- delete_pod - Delete a pod from a namespace
Future Enhancements 🔮
- Enhanced RBAC integration for fine-grained access control
Contributing 👥
Contributions are welcome! Please feel free to submit a Pull Request.
License ⚖️
This project is licensed under the MIT License.