MCP Server Kubernetes
MCP Server for kubernetes management commands
Overview
mcp-server-kubernetes is a management server that connects to a Kubernetes cluster, enabling users to execute various management commands related to the cluster.
To use mcp-server-kubernetes, you need to install kubectl and have a valid kubeconfig file. Launch the server with the command 'npx mcp-server-kubernetes', and it will connect to your current kubectl context. Verify the connection by listing your pods or creating a test deployment.
- Connects to a Kubernetes cluster seamlessly - Lists all pods, services, and deployments - Enables creating and deleting pods - Supports namespace management and Helm chart installations
- Managing deployments in a Kubernetes cluster
- Troubleshooting applications by retrieving pod logs
- Setting up testing environments using minikube or GKE
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": {
"mcp-server-kubernetes-flux159": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-kubernetes-flux159"
]
}
}
}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": {
"mcp-server-kubernetes-flux159": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-kubernetes-flux159"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-kubernetes-flux159": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-kubernetes-flux159"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-kubernetes-flux159": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-kubernetes-flux159"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-kubernetes-flux159": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-kubernetes-flux159"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-kubernetes-flux159": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-kubernetes-flux159"
]
}
}
}FAQ
What do I need to use mcp-server-kubernetes?
You need kubectl installed, a valid kubeconfig file, and access to a Kubernetes cluster.
Can I manage multiple clusters?
Not currently planned, as authentication and adding clusters to kubectx is not implemented yet.
What should I do if I encounter connection issues?
Check your kubectl setup by running 'kubectl get pods' in your terminal to ensure no credential issues exist.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":158,"uuid":"2758b702-ac27-4707-8a81-8f232af3ca6e","name":"mcp-server-kubernetes","title":"MCP Server Kubernetes","description":"MCP Server for kubernetes management commands","avatar_url":"https://avatars.githubusercontent.com/u/904070?v=4","created_at":"2024-12-13T09:02:40.023Z","updated_at":"2024-12-13T12:28:12.674Z","status":"created","author_name":"Flux159","author_avatar_url":"https://avatars.githubusercontent.com/u/904070?v=4","tags":"kubernetes,infrastructure,server,mcp","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/Flux159/mcp-server-kubernetes","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/Flux159/mcp-server-kubernetes/actions/workflows/ci.yml/badge.svg","type":null,"metadata":"{\"star\":\"723\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-06-05 16:55:03\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]