mcp-k8s logo

mcp-k8s

by silenceper

mcp-k8s is a Kubernetes MCP (Model Control Protocol) server that enables interaction with Kubernetes clusters through MCP tools. It allows querying and managing Kubernetes resources using natural language through LLMs.

View on GitHub

Last updated: N/A

What is mcp-k8s?

mcp-k8s is an stdio-based MCP server that connects to Kubernetes clusters and provides capabilities to query Kubernetes resource types (including built-in resources and CRDs) and perform CRUD operations on Kubernetes resources (with configurable write operations).

How to use mcp-k8s?

mcp-k8s supports stdio and SSE communication modes. In stdio mode, it communicates through standard input/output. In SSE mode, it exposes an HTTP endpoint. Configuration involves specifying the kubeconfig path and enabling/disabling create, update, delete, and list operations via command-line arguments. It integrates with any MCP-compatible LLM client.

Key features of mcp-k8s

  • Query supported Kubernetes resource types (built-in resources and CRDs)

  • Perform CRUD operations on Kubernetes resources

  • Configurable write operations (create/update/delete can be enabled/disabled independently)

  • Connects to Kubernetes cluster using kubeconfig

Use cases of mcp-k8s

  • Kubernetes Resource Management via LLM

  • Automated Operations Scenarios

  • Development and Testing Support

  • Education and Training Scenarios

FAQ from mcp-k8s

How do I enable resource creation?

Use the -enable-create command-line argument when running mcp-k8s.

What is the default communication mode?

The default communication mode is stdio.

How do I run mcp-k8s in SSE mode?

Use the -transport=sse command-line argument and specify the -port and -host if needed.

What is the purpose of the kubeconfig file?

The kubeconfig file is used to connect to your Kubernetes cluster.

Where can I download the mcp-k8s binary?

You can download the binary for your platform from the releases page on the GitHub repository.