Kubernetes MCP Server logo

Kubernetes MCP Server

by endo-sys

The Kubernetes MCP Server provides comprehensive Kubernetes functionality through the MCP Python SDK. It allows you to interact with your Kubernetes cluster using natural language through an MCP client.

View on GitHub

Last updated: N/A

What is Kubernetes MCP Server?

A Model Context Protocol (MCP) server that provides a natural language interface to interact with a Kubernetes cluster using the MCP Python SDK.

How to use Kubernetes MCP Server?

  1. Clone the repository. 2. Install dependencies using pip install -r requirements.txt. 3. Run the server using one of the provided methods (development mode, Claude Desktop installation, or direct execution). 4. Connect to the server through an MCP client and use natural language commands to manage your Kubernetes cluster.

Key features of Kubernetes MCP Server

  • Pod Operations (get, describe, logs, execute, metrics)

  • Deployment Operations (get, describe, scale, rollouts, metrics)

  • Service Operations (get, describe, expose, port forward)

  • Namespace Operations (get, describe, create, delete, resource quotas)

  • Cluster Operations (get info, get/describe nodes, manage node scheduling, drain nodes, get metrics)

Use cases of Kubernetes MCP Server

  • Managing Kubernetes resources using natural language commands.

  • Automating Kubernetes tasks through an MCP client.

  • Simplifying Kubernetes operations for users without extensive CLI knowledge.

  • Integrating Kubernetes management into a natural language-based workflow.

FAQ from Kubernetes MCP Server

What is MCP?

Model Context Protocol (MCP) is a protocol for interacting with services using natural language.

What prerequisites are required to run this server?

Python 3.7+, kubectl installed and configured, access to a Kubernetes cluster, and an MCP client.

How do I install the server?

Clone the repository and install dependencies using pip install -r requirements.txt.

How do I connect to the server?

Connect to the server through an MCP client like Claude Desktop.

Where can I find the license for this project?

The project is licensed under the MIT License, see the LICENSE file for details.