k8s-doc-mcp

A Kubernetes documentation assistant built with the MCP (Model Context Protocol) Python SDK.

GitHub Stars

0

User Rating

Not Rated

Favorites

0

Views

3

Forks

0

Issues

0

README
Kubernetes Documentation MCP Server

A Kubernetes documentation assistant built with the MCP (Model Context Protocol) Python SDK.

Features
  • Fetch and convert Kubernetes documentation to Markdown format
  • Get related/recommended documentation pages
Installation
  1. Install the uv package manager:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. Initialize the project and install dependencies:

    uv init .
    uv add "mcp[cli]" requests beautifulsoup4 markdown
    
  3. Install the MCP server:

    uv run mcp install main.py
    
Usage

Start the MCP server:

uv run python main.py

This will add json definition to Claude Desktop (to MPC Host/Client) like this and run server in background.

{
  "mcpServers": {
    "k8s-doc": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/<path-to>/k8s-doc-mcp/main.py"
      ]
    }
  }
}
Available Tools
  • read_documentation(url): Fetch and convert a Kubernetes documentation page to Markdown format
  • recommend(url): Get recommended Kubernetes documentation pages related to a specified URL
Examples
  1. read_documentation
    Access and understand the content of specific Kubernetes documentation pages.

How to https://kubernetes.io/docs/tasks/tls/certificate-issue-client-csr/?
How to https://kubernetes.io/docs/tasks/administer-cluster/cluster-upgrade/?

  1. recommend
    Find other pages related to a topic, typically starting from a page you've just read or are interested in.

"Can you recommend other pages related to this URL: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/?"
"What other documentation pages are related to the one about Deployments (https://kubernetes.io/docs/concepts/workloads/controllers/deployment/)?"
"Based on the information about Services, what other pages might be relevant? (Page: https://kubernetes.io/docs/concepts/services-networking/service/)"
"Explore related topics starting from the documentation on Pods (https://kubernetes.io/docs/concepts/workloads/pods/)."

Resources
Author Information
Ante Mijaljevic
Zadar, Croatia

2

Followers

19

Repositories

0

Gists

0

Total Contributions

Related MCPs
k8s-multicluster-mcp logo

An MCP (Model Context Protocol) server application for Kubernetes operations, providing a standardized API to interact with multiple Kubernetes clusters simultaneously using multiple kubeconfig files.

Python
DockerMcpServer logo

A Docker MCP Server built using the ModelContextProtocol NuGet package

C#
mcp-server-12306 logo

12306 MCP Server​​ 是一个基于 ​​Model Context Protocol (MCP)​​ 的高性能火车票查询后端系统。它通过标准化接口提供官方 12306 的实时数据服务,包括余票查询、车站信息、列车经停站、中转换乘方案等核心功能。

Python