
kubernetes mcp server
An MCP server for debugging and managing Kubernetes using Natural Language
Repository Info
About This Server
An MCP server for debugging and managing Kubernetes using Natural Language
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
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.
Quick Start
Clone the repository
git clone https://github.com/ehiaig/kubernetes-mcp-serverInstall dependencies
cd kubernetes-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.