Overview
MCP Server that connects to a Kubernetes cluster to manage it effectively.
To use mcp-server-kubernetes, ensure you have kubectl installed and configured. Run the command npx mcp-server-kubernetes to connect to your Kubernetes cluster.
- Connect to a Kubernetes cluster - List all pods, services, and deployments - Create and delete pods - List all namespaces - Support for Helm to install charts
- Managing Kubernetes resources directly from the command line.
- Automating deployment processes in a Kubernetes environment.
- Debugging applications by accessing pod logs.
Add to your AI client
Use these steps to connect mcp-server-kubernetes in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"flux159-mcp-server-kubernetes-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flux159-mcp-server-kubernetes-mcp-mirror"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"flux159-mcp-server-kubernetes-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flux159-mcp-server-kubernetes-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"flux159-mcp-server-kubernetes-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flux159-mcp-server-kubernetes-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"flux159-mcp-server-kubernetes-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flux159-mcp-server-kubernetes-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"flux159-mcp-server-kubernetes-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flux159-mcp-server-kubernetes-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"flux159-mcp-server-kubernetes-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flux159-mcp-server-kubernetes-mcp-mirror"
]
}
}
}FAQ
What do I need to run mcp-server-kubernetes?
You need kubectl installed, a valid kubeconfig file, and access to a Kubernetes cluster.
Can I use mcp-server-kubernetes with any Kubernetes setup?
Yes, it works with various setups like minikube, Rancher Desktop, and GKE.
Is there support for authentication?
Currently, authentication features are not planned.