mcp k8s server
A server that enables LLMs to manage Kubernetes clusters through natural language commands, wrapping kubectl operations to provide a simplified interface for common Kubernetes tasks.
A server that enables LLMs to manage Kubernetes clusters through natural language commands, wrapping kubectl operations to provide a simplified interface for common Kubernetes tasks.
This is an MCP (Model Context Protocol) server for Kubernetes that provides control over Kubernetes clusters through interactions with LLMs.
This client allows you to perform common Kubernetes operations through MCP tools. It wraps kubectl
commands to provide a simple interface for managing Kubernetes resources. The Model Context Protocol (MCP) enables seamless interaction between language models and Kubernetes operations.
Model Context Protocol (MCP) is a framework that enables Language Models to interact with external tools and services in a structured way. It provides: - A standardized way to expose functionality to language models - Context management for operations - Tool discovery and documentation - Type-safe interactions between models and tools
This MCP client is designed to work seamlessly with Large Language Models (LLMs). The functions are decorated with @mcp.tool()
, making them accessible to LLMs through the Model Context Protocol framework.
LLMs can interact with your Kubernetes cluster using natural language. Here are some example prompts:
The LLM will interpret these natural language requests and call the appropriate MCP functions with the correct parameters.
kubectl
When using this client with LLMs, ensure that: - Proper access controls are in place for your Kubernetes cluster - The MCP server is running in a secure environment - API access is properly authenticated and authorized
{
"mcpServers": {
"Kubernetes": {
"command": "uv",
"args": [
"--directory",
"~/mcp/mcp-k8s-server",
"run",
"kubernetes.py"
]
}
}
}
We welcome contributions to the MCP Kubernetes Server! If you'd like to contribute:
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)For major changes, please open an issue first to discuss what you would like to change.
To install Kubernetes Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @abhijeetka/mcp-k8s-server --client claude