Kubernetes MCP Server Documentation

July 21, 2026 ยท View on GitHub

Welcome to the Kubernetes MCP Server documentation! This directory contains guides to help you set up and use the Kubernetes MCP Server with your Kubernetes cluster and Claude Code CLI.

Getting Started Guides

Choose the guide that matches your needs:

GuideDescriptionBest For
Getting Started with KubernetesBase setup: Create ServiceAccount, token, and kubeconfigEveryone - start here first
Using with Claude Code CLIConfigure MCP server with Claude Code CLIClaude Code CLI users
  1. Complete the base setup: Start with Getting Started with Kubernetes to create a ServiceAccount and kubeconfig file
  2. Configure Claude Code: Then follow the Claude Code CLI guide

Configuration

  • Configuration Reference - Complete reference for TOML configuration files, including all options, drop-in configuration, and dynamic reload

Toolset Guides

  • Kiali - Tools for Kiali ServiceMesh with Istio
  • NetObserv - Network observability flows, metrics, and alerts (Helm on OpenShift)
  • KubeVirt - KubeVirt virtual machine management tools
  • Tekton - Tekton PipelineRun, TaskRun, and troubleshooting tools

Feature Specifications

Living documentation for implemented and planned features:

SpecDescriptionStatus
ValidationPre-execution validation layer (resource existence, schema, RBAC)Implemented
Structured Tool OutputConventions for tools that emit structuredContentImplemented

Advanced Topics

  • MCP Logging - Structured logging to MCP clients with automatic K8s error categorization and secret redaction
  • OpenTelemetry Observability - Distributed tracing and metrics configuration
  • MCP Prompts - Custom workflow templates for AI assistants
  • Keycloak OIDC Setup - Developer guide for local Keycloak environment and testing with MCP Inspector

Reference

  • Main README - Project overview and general information