k8s-mcp MCP Server

A Python-based, read-only Model Context Protocol (MCP) server for Kubernetes clusters that exposes a comprehensive API to retrieve cluster information and diagnose issues.

Local serverstdio

What is the k8s-mcp Server?

k8s-mcp is an MCP project maintained in the vlttnv/k8s-mcp repository. The maintainer describes its purpose as “A Python-based, read-only Model Context Protocol (MCP) server for Kubernetes clusters that exposes a comprehensive API to retrieve cluster information and diagnose issues”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using uv. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the k8s-mcp Server

{
  "mcpServers": {
    "k8s-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/k8s-mcp",
        "run",
        "server.py"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.