k8s-mcp-server

k8s-mcp-server

19

This project provides a Model Context Protocol server for Kubernetes, enabling robust interaction with clusters through a consistent API. It supports various functionalities such as resource discovery, logging, and metrics collection, making it versatile for both command-line and web-based integrations.

Kubernetes MCP Server

A Kubernetes Model Context Protocol (MCP) server offering tools to interact with Kubernetes clusters via a standardized interface.

Features

  • API Resource Discovery
  • Resource Listing and Details
  • Resource Creation/Updating
  • Pod Logs and Node Metrics
  • Supported modes: stdio and sse

Prerequisites

  • Go 1.20
  • Kubernetes cluster access
  • Configured kubectl

Usage

The server supports stdio mode for CLI interactions and SSE mode for web applications, with options for Docker and Docker Compose setups.