drio
Open app

MCP Kubernetes Server

Source

This is an MCP kubernetes Server.

Catalog onlyCatalog onlySTDIO

Overview

MCP Kubernetes Server is a server that allows users to manage Kubernetes clusters through interactions with Large Language Models (LLMs) using the Model Context Protocol (MCP).

To use the MCP Kubernetes Server, ensure you have access to a Kubernetes cluster configured via kubectl, install the MCP framework, and run the server. You can then issue commands in natural language to manage your Kubernetes resources.

  • Natural language interface for Kubernetes operations - Simplified command execution through LLMs - Context-aware interactions for multiple operations - Type-safe and documented interactions with tools
  1. Creating and managing deployments in Kubernetes using conversational commands.
  2. Scaling applications and updating configurations without needing to remember kubectl syntax.
  3. Interacting with Kubernetes resources in a more intuitive way through LLMs.

Add to your AI client

Use these steps to connect MCP Kubernetes Server 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-k8s-server-abhijeetka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-k8s-server-abhijeetka"
      ]
    }
  }
}

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-k8s-server-abhijeetka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-k8s-server-abhijeetka"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-k8s-server-abhijeetka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-k8s-server-abhijeetka"
      ]
    }
  }
}

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-k8s-server-abhijeetka": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-k8s-server-abhijeetka"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-k8s-server-abhijeetka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-k8s-server-abhijeetka"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-k8s-server-abhijeetka": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-k8s-server-abhijeetka"
      ]
    }
  }
}

FAQ

What is the Model Context Protocol (MCP)?

MCP is a framework that enables structured interactions between language models and external tools, providing context management and tool discovery.

Do I need to know `kubectl` commands to use this server?

No, you can manage your Kubernetes resources using natural language commands.

Is there any security concern when using LLMs with Kubernetes?

Yes, ensure proper access controls and secure environments are in place when using the MCP server with LLMs.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2992,"uuid":"8b73497c-5350-497f-b577-72d1b48faffb","name":"mcp-k8s-server","title":"MCP Kubernetes Server","description":"This is an MCP kubernetes Server.","avatar_url":"https://avatars.githubusercontent.com/u/6872339?v=4","created_at":"2025-03-16T11:48:57.859Z","updated_at":"2025-03-16T12:44:27.664Z","status":"created","author_name":"abhijeetka","author_avatar_url":"https://avatars.githubusercontent.com/u/6872339?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/abhijeetka/mcp-k8s-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/e36ffd91d8e6eaf39b1cf1d2ba210c6bb4022a772471bb077f28764e2a6da723/68747470733a2f2f62616467652e6d6370782e6465763f747970653d736572766572","type":null,"metadata":"{\"star\":\"3\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-31 12:01:55\"}","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"}]]}]

MCP Kubernetes Server — MCP Registry