ehiaig/kubernetes-mcp-server
If you are the rightful owner of kubernetes-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
An MCP server for debugging and managing Kubernetes config using Natural Language.
Kubernetes MCP Server
An MCP server for debugging and managing Kubernetes config using Natural Language
This MCP Server lets you:
- Debug a kubernetes config yaml/yml file
- Debug an entire kubernetes config folder that contains yaml/yml files
- Connect and manage Kubernetes clusters
Features
- Debug and analyze a kubernetes config yaml/yml file
- Debug an entire kubernetes config folder that contains yaml/yml files
- Pod management (list, get, logs, delete)
- Deployment management (create, list, get, logs, delete)
- Service management (Create, list, get, logs, delete)
- Namespaces management (list, get, logs, delete)
- Debug and Analyze Logs, Services, Seployment, Statefulset, Demonsets, Ingress, Node, Cluster
- Portforward to a pod or service
- Helm Chart installation and management
Quickstart
-
Install Claude Desktop
-
Install this MCP server
- Using uv:
uv
Run: uv pip install git+https://github.com/ehiaig/kubernetes-mcp-server
Or
- Clone this repo:
git clone https://github.com/ehiaig/kubernetes-mcp-server.git
- Open the Claude json file
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
And then add the following to your MCP servers file:
For Local testing with Claude Desktop
{
"kubernetes-mcp-server": {
"command": "/path/to/your/.local/bin/uv", // or "uv"
"args": [
"--directory",
"/path/to/this/repo/kubernetes-mcp-server/src/k8s_manager",
"run",
"-m",
"k8s_manager"
]
}
}
Your claude_desktop_config.json
file should look similar to this:
{
"mcpServers": {
"kubernetes-mcp-server": {
"command": "/path/to/your/.local/bin/uv",
"args": [
"--directory",
"/path/to/this/repo/kubernetes-mcp-server/src/k8s_manager",
"run",
"-m",
"k8s_manager"
]
}
}
}
For Published Servers
"mcpServers": {
"kubernetes-mcp-server": {
"command": "uvx",
"args": [
"k8s_manager"
]
}
}
🚧 Disclaimers
Sensitive Data
DO NOT CONFIGURE CLUSTERS WITH SENSITIVE DATA. This includes secrets, passwords, etc.
Any sensitive data exchanged with the LLM is inherently compromised, unless the LLM is running 100% on your local machine.
If you are interested in securely passing secrets to CLUSTERS, file an issue on this repository with your use-case.