MCP Kubernetes Server
@MCP-Mirror
Mirror of
Overview
What is MCP Kubernetes Server?
MCP Kubernetes Server is an MCP (Model Context Protocol) server that provides control over Kubernetes clusters through interactions with LLMs. It wraps kubectl commands to offer a simple interface for managing Kubernetes resources, enabling seamless interaction between language models and Kubernetes operations.
How to use MCP Kubernetes Server?
Install via Smithery or configure the MCP server in your Claude Desktop config (e.g., using uv to run kubernetes.py). The server exposes tools that LLMs can call using natural language prompts such as "Create a new nginx deployment with 3 replicas."
Key features of MCP Kubernetes Server
- Wraps kubectl commands for common Kubernetes operations.
- Supports create, scale, update, delete, and inspect resources.
- Includes port-forward, expose, label, and annotation management.
- Provides context switching and namespace-aware operations.
- Designed for natural language interaction through LLMs.
Use cases of MCP Kubernetes Server
- Manage deployments, pods, services, and other resources via conversational prompts.
- Automate cluster operations without memorizing kubectl syntax.
- Enable LLMs to maintain context across multi-step Kubernetes tasks.
- Validate and execute resource changes with reduced command complexity.
FAQ from MCP Kubernetes Server
What do I need to run the server?
You need Python 3.x, the MCP framework, and Kubernetes cluster access configured via kubectl.
How does the server interact with LLMs?
Each tool function is decorated with @mcp.tool(), making them accessible to LLMs through the Model Context Protocol.
Can I use it with Claude Desktop?
Yes. Add a JSON entry to your Claude Desktop config with the appropriate command (e.g., uv run kubernetes.py).
What if I want to install it automatically?
Run npx -y @smithery/cli install @abhijeetka/mcp-k8s-server --client claude via Smithery.
Are there any security considerations?
Yes. Ensure proper access controls on your cluster, run the MCP server in a secure environment, and authenticate/authorize API access.