containers/kubernetes-mcp-server

Model Context Protocol (MCP) server for Kubernetes and OpenShift

What it solves

This project provides a way for AI agents (like Claude Desktop, Cursor, or GitHub Copilot) to interact directly with Kubernetes and OpenShift clusters. It eliminates the need for the AI to rely on wrapping command-line tools like kubectl or helm, providing a native, high-performance interface for cluster management and troubleshooting.

How it works

It is a Go-based native implementation of the Model Context Protocol (MCP) server. Instead of executing shell commands, it interacts directly with the Kubernetes API server. It can be distributed as a native binary, an npm package, or a Python package, and can be configured via CLI arguments or TOML files to control access and functionality.

Who it’s for

DevOps engineers, platform engineers, and developers who use AI-powered IDEs or agents to manage, diagnose, and deploy applications on Kubernetes or OpenShift.

Highlights

  • Native API Interaction: Directly communicates with the Kubernetes API, avoiding the overhead of external CLI tools.
  • Comprehensive Resource Management: Supports CRUD operations on any Kubernetes resource, as well as specialized tools for Pods, Namespaces, and Events.
  • Ecosystem Integration: Includes dedicated toolsets for Helm, Tekton, KubeVirt, Kiali, and NetObserv.
  • Multi-Cluster Support: Ability to interact with multiple clusters simultaneously via kubeconfig files.
  • Security Controls: Offers a read-only mode and the ability to deny access to sensitive resources (e.g., Secrets).
  • Cross-Platform: Available as a native binary for Linux, macOS, and Windows.

Related

  • Project
  • Project
  • Project
  • Project
  • Project