Submit

Kubernetes MCP Server

@reza-gholizade

Manage Your Kubernetes Cluster with k8s mcp-server
Overview

What is Kubernetes MCP Server?

Kubernetes MCP Server is a Model Control Plane (MCP) server that provides tools for interacting with Kubernetes clusters through a standardized interface.

How to use Kubernetes MCP Server?

To use the Kubernetes MCP Server, clone the repository, install dependencies, build the server, and run it to listen for MCP protocol messages.

Key features of Kubernetes MCP Server?

  • API Resource Discovery: Get all available API resources in your Kubernetes cluster.
  • Resource Listing: List resources of any type with optional namespace and label filtering.
  • Resource Details: Get detailed information about specific Kubernetes resources.
  • Resource Description: Get comprehensive descriptions of Kubernetes resources.
  • Standardized Interface: Uses the MCP protocol for consistent tool interaction.
  • Flexible Configuration: Supports different Kubernetes contexts and resource scopes.

Use cases of Kubernetes MCP Server?

  1. Discovering available API resources in a Kubernetes cluster.
  2. Listing and filtering Kubernetes resources based on specific criteria.
  3. Retrieving detailed information and descriptions of Kubernetes resources.
  4. Accessing logs of specific pods in the cluster.

FAQ from Kubernetes MCP Server?

  • What are the prerequisites for using the Kubernetes MCP Server?

You need Go 1.20 or later, access to a Kubernetes cluster, and kubectl configured with appropriate cluster access.

  • How do I start the server?

Run the command ./k8s-mcp-server after building the server to start listening for MCP protocol messages.

  • Can I add new tools to the server?

Yes! You can add new tools by creating a new tool definition function and implementing the handler in the project.

Server Config

{
  "mcpServers": {
    "k8s-tools": {
      "command": "/PATH_TO_MCP_SERVER/k8s-mcp-server",
      "args": []
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.