PluginBench
MCP Server
Maintained
MIT

Kubernetes Troubleshoot MCP Server

io.github.NanaGyamfiPrempeh30/k8s-troubleshoot-mcp

What is the Kubernetes Troubleshoot MCP server?

Read-only Kubernetes diagnostics: pods, logs, events, workloads, services, PVCs and nodes.

How to install Kubernetes Troubleshoot

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • KUBECONFIG
    required

    Path to the kubeconfig inside the container. Must match the mount destination. There is no fallback to ~/.kube/config and no in-cluster config: a missing, unreadable or malformed file is a startup failure rather than a silent downgrade to an ambient credential.

  • ALLOWED_NAMESPACES
    required

    Comma-separated namespaces the server may read, e.g. staging,production. Wildcards (* and all) are rejected at startup, and kube-system and kube-public are stripped even if listed. This is defense-in-depth, not the security boundary — the boundary is the ServiceAccount's RBAC bindings.

  • LOG_LEVEL

    DEBUG, INFO, WARNING or ERROR. All logging goes to stderr; stdout carries the JSON-RPC stream exclusively.

  • API_TIMEOUT_SECONDS

    Kubernetes API request timeout. Must be a positive integer.

  • MAX_LOG_LINES

    Maximum log lines any single get_pod_logs call may return. Must be a positive integer; clamped to a hard ceiling of 1000 with a warning.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "k8s-troubleshoot-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/yawgyamfiprem32/k8s-troubleshoot-mcp:1.0.0",
        "--mount",
        "type=bind,src={kubeconfig_path},dst=/kubeconfig,readonly"
      ],
      "env": {
        "KUBECONFIG": "<YOUR_KUBECONFIG>",
        "ALLOWED_NAMESPACES": "<YOUR_ALLOWED_NAMESPACES>",
        "LOG_LEVEL": "<YOUR_LOG_LEVEL>",
        "API_TIMEOUT_SECONDS": "<YOUR_API_TIMEOUT_SECONDS>",
        "MAX_LOG_LINES": "<YOUR_MAX_LOG_LINES>"
      }
    }
  }
}

Related MCP servers

Verifiable random decisions, audit sampling, fair selection, and proof verification using QnEvt.

1
View repository →

Hierarchical markdown memory palace for AI agents — structured palace navigation via MCP tools.

0
Python
MIT
View repository →

Reference MCP server for OCL, an open standard giving AI agents scoped business meaning for Odoo.

0
Python
Apache-2.0
View repository →

Convert PDF, Word, Excel, PowerPoint, EPUB and images to Markdown locally, with no upload.

0
TypeScript
View repository →

Zero-Based Budgeting tools: budget plans, runway, net worth, savings goals, debt payoff plans.

0
TypeScript
MIT
View repository →

Fueling & recovery decision engine combining MacroFactor nutrition with Garmin training data

1
Python
MIT
View repository →