home / mcp / mcp kubernetes server
This is an MCP kubernetes Server.
Configuration
View docs{
"mcpServers": {
"abhijeetka-mcp-k8s-server": {
"command": "uv",
"args": [
"--directory",
"~/mcp/mcp-k8s-server",
"run",
"kubernetes.py"
]
}
}
}You can manage Kubernetes clusters from conversations with language models. This MCP server bridges typical Kubernetes operations to an LLM-enabled workflow, letting you perform common actions safely and with context management through the Model Context Protocol.
You interact with Kubernetes resources by describing what you want to achieve in natural language. The MCP server translates your request into safe, structured actions that wrap around Kubernetes operations. You can create deployments, scale resources, fetch resource lists (pods, namespaces, nodes, services, deployments, jobs, cronjobs, statefulsets, daemonsets), view logs and events, annotate or label resources, expose services, and perform port-forwarding or deletions. The interface maintains context across steps so you can build multi-step workflows like creating a deployment, then updating its image, and finally verifying the rollout status.
Ensure you have proper access controls for your Kubernetes cluster. Run the MCP server in a secure environment and use proper authentication and authorization for API access. When communicating with language models, validate inputs and maintain least-privilege access for all operations.