mcp-k8s-manager

by crtdaniele

4 319 downloads Not rated yet MIT
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

License
MIT

Explore

- 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

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
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"
      ]
    }
  }
}

Tool disponibili:

- run_kubectx:

Cambia contesto Kubernetes usando kubectx.

- run_kubectl:

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

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"
        ]
    }
}

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.