k8scortex-mcp

v1.1.3
io.github.apatilgtn/k8scortex-mcp Checked 10 hours ago Published 1 month ago

Kubernetes MCP server: 75 tools for GKE, AKS, EKS, RBAC, audit logging, GitOps, multi-cluster.

Values you need

VariableWhat it is
KUBECONFIGoptional Path to your kubeconfig file. Each context becomes a cluster. Defaults to ~/.kube/config.
CLUSTERS_CONFIGoptional Optional path to a cluster registry JSON file mixing kubeconfig, EKS, GKE and Key Vault clusters.
K8SCORTEX_STDIO_ROLESoptional Roles for the session, e.g. developer for read-only tools. Defaults to platform-engineer.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add k8scortex-mcp -- npx -y k8scortex-mcp@1.1.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "k8scortex-mcp": {
      "args": [
        "-y",
        "k8scortex-mcp@1.1.3"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "k8scortex-mcp": {
      "args": [
        "-y",
        "k8scortex-mcp@1.1.3"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "k8scortex-mcp": {
      "args": [
        "-y",
        "k8scortex-mcp@1.1.3"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.k8scortex-mcp]
command = "npx"
args = ["-y", "k8scortex-mcp@1.1.3"]

Docker

Requires Docker

Run in a terminal
claude mcp add k8scortex-mcp -- docker run -i --rm ghcr.io/apatilgtn/k8scortex-mcp:1.1.3 node dist/stdio.js
Add to claude_desktop_config.json
{
  "mcpServers": {
    "k8scortex-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/apatilgtn/k8scortex-mcp:1.1.3",
        "node",
        "dist/stdio.js"
      ],
      "command": "docker"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "k8scortex-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/apatilgtn/k8scortex-mcp:1.1.3",
        "node",
        "dist/stdio.js"
      ],
      "command": "docker"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "k8scortex-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/apatilgtn/k8scortex-mcp:1.1.3",
        "node",
        "dist/stdio.js"
      ],
      "command": "docker",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.k8scortex-mcp]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/apatilgtn/k8scortex-mcp:1.1.3", "node", "dist/stdio.js"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_pods, get_pod_logs, describe_pod, describe_deployment, list_nodes, list_statefulsets, describe_statefulset, list_daemonsets, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json