1. Conduid
  2. Cloud
  3. K8s
MCP server · Cloud

K8s

Observability focused Kubernetes MCP server

Unclaimed MIT last commit a year ago kubernetescloudobservabilitymcp-server
54Fair

Scored 5 hours ago · breakdown

About K8s

K8s is an MCP server published by krmcbride in the Cloud category: observability focused Kubernetes MCP server. It has been installed 0 times through Conduid.

Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx mcp-k8s

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about K8s

Powered by Claude · Grounded in docs

I know everything about K8s. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.0v0.1.0 · 19 Jun 2025MCP Kubernetes Server v0.1.0 This release contains the MCP (Model Context Protocol) server for Kubernetes operations. Changelog New Features 91867212d46b23f711d26aa0a904cd75f25ee021: feat: add a crd custom resource mapper (Kevin McBride…

README

mcp-k8s

A Model Context Protocol (MCP) server that provides read-only tools for safely interacting with Kubernetes clusters. This server is designed to be safe for production use, deliberately excluding any tools that could mutate cluster state or cause side effects.

Design Philosophy

This MCP server is intentionally read-only and focuses on observability and debugging. It does not include tools that could:

  • Modify or delete resources (no kubectl apply, delete, patch, etc.)
  • Execute commands in containers (no kubectl exec)
  • Scale deployments or modify replica counts
  • Create port forwards or expose services
  • Drain nodes or perform other cluster maintenance operations

This makes it safe to use for debugging production issues without risk of accidental changes.

Tools

  • list_k8s_resources - List Kubernetes resources of any type with custom formatting for common resource types (pods, deployments, services, etc.)
  • list_k8s_api_resources - List available Kubernetes API resource types (equivalent to kubectl api-resources) for discovering what resource types are available in the cluster
  • get_k8s_resource - Fetch a single Kubernetes resource with optional Go template formatting for advanced output customization
  • get_k8s_metrics - Get CPU and memory usage metrics for nodes or pods, similar to kubectl top, with optional filtering by name (CPU in millicores, memory in MiB). Optional sum parameter adds TOTAL entry to results.
  • get_k8s_pod_logs - Get logs from a Kubernetes pod, similar to kubectl logs, with options for container selection, time filtering, tail lines, and previous container logs.

Resources

  • kubeconfig://contexts - Lists available Kubernetes contexts from your kubeconfig file, showing context names, cluster names, and which context is currently active. Use this resource to resolve cluster aliases (like 'prod', 'sandbox') to actual context names instead of running kubectl commands. Returns JSON with context-to-cluster mappings.

Prompts

  • memory_pressure_analysis - Analyzes pods for memory pressure issues, including:

    • Pods with memory usage close to their configured limits (>80%)
    • Pods with memory usage significantly exceeding their requests (>120%)
    • Pods that have been OOM killed

    Arguments:

    • context (required) - The Kubernetes context to use for the analysis
    • namespace (optional) - The namespace to analyze (defaults to all namespaces)

    The prompt guides the assistant to use the get_k8s_metrics and list_k8s_resources tools to identify problematic pods and provide actionable recommendations.

  • workload_instability_analysis - Analyzes Events and pod logs for signs of workload instability, including:

    • Warning Events and failed operations (FailedMount, FailedScheduling, etc.)
    • Error patterns in pod logs (ERROR, FATAL, PANIC messages)
    • Authentication/authorization failures and network connectivity issues
    • Resource exhaustion indicators and application crashes

    Arguments:

    • context (required) - The Kubernetes context to use for the analysis
    • namespace (required) - The namespace to analyze for workload instability

    The prompt guides the assistant to systematically analyze Events and pod logs across all containers, providing a prioritized summary from critical to informational findings.

README mirrored from the source repository 5 hours ago. The original is authoritative.

Questions

About K8s

How do I install K8s?

Run npx mcp-k8s, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is K8s safe to use with an AI agent?

Its trust score is 54 out of 100 (fair). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is K8s still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.