mcp-k8s-manager

by crtdaniele

4 stars
319 downloads
Not rated
GitHub

About

Un MCP server per la gestione di cluster Kubernetes su AKS (Azure Kubernetes Service), utilizzabile da Claude Desktop. Offre strumenti per eseguire comandi `kubectl` e `kubectx` direttamente da un'interfaccia conversazionale.

Details

Author
crtdaniele
GitHub stars
4
Downloads
319
Categories
Cloud Service

- Execute kubectl commands interactively via Claude Desktop.
- Switch Kubernetes context using kubectx.
- Supports AKS clusters on Azure.
- Easy installation with MCP CLI.
- Hot reload in development mode.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name mcp-k8s-manager
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies (Python ≥ 3.10, kubectl, kubectx, Azure CLI, Claude Desktop), clone the repository, create a virtual environment, and install requirements. Then run the server with mcp dev main.py for development mode or mcp run main.py for normal mode. Install on Claude Desktop via mcp install main.py or by configuring the settings.json file manually.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp-k8s-manager": {
            "mcp-k8s-manager": {
                "command": "python",
                "args": [
                    "-m",
                    "venv",
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-k8s-manager": {
        "command": "python",
        "args": [
            "-m",
            "venv",
            "venv"
        ]
    }
}

mcp-k8s-manager

Un MCP server per la gestione di cluster Kubernetes su AKS (Azure Kubernetes Service), utilizzabile da Claude Desktop. Offre strumenti per eseguire comandi kubectl e kubectx direttamente da un'interfaccia conversazionale.

---

Requisiti

Assicurati di avere installato:

- Python ≥ 3.10
- kubectl
- kubectx
- Azure CLI
- Claude Desktop

---

Installazione locale

1. Clona il repository:

git clone https://github.com/crtdaniele/mcp-k8s-manager
cd mcp-k8s-manager

2. Crea e attiva un ambiente virtuale:

python -m venv venv
source venv/bin/activate

3. Installa le dipendenze:

pip install -r requirements.txt

4. (Facoltativo) Aggiorna il file requirements.txt dopo aver aggiunto nuove librerie:

pip freeze > requirements.txt

Avvio del server MCP

Per eseguire il server MCP in modalità sviluppo con hot reload:

mcp dev main.py

Per eseguire il server in modalità normale:

mcp run main.py

Tool

Tool disponibili:

- run_kubectx:

Cambia contesto Kubernetes usando kubectx.

- run_kubectl:

Esegue comandi kubectl. È possibile cambiare contesto prima con kubectx.

Installazione su Claude Desktop

mcp install main.py

Oppure configura manualmente il file settings.json (Claude Desktop > Settings > Advanced):

{
  "mcpServers": {
    "mcp-k8s-manager": {
      "command": "/opt/homebrew/bin/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "your-local-path/main.py"
      ]
    }
  }
}

Licenza

MIT License.
© 2025 Daniele Carta

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.