Skip to main content

A Model Context Protocol server that fetches Kubernetes troubleshooting runbooks

Project description

Kubernetes Runbooks MCP Server

A Model Context Protocol (MCP) server that provides access to Kubernetes troubleshooting runbooks from Container Solutions' Runbooks.

Features

  • 🔍 Search & Discovery: Find relevant runbooks by keyword or browse all available topics
  • 📖 Content Access: Fetch detailed troubleshooting guides for specific Kubernetes issues
  • 🤖 AI Integration: Designed for seamless integration with AI assistants via MCP
  • ⚡ Performance: Intelligent caching to minimize network requests
  • 🛡️ Reliability: Robust error handling and graceful degradation

Available Runbooks

The server provides access to comprehensive troubleshooting guides for:

  • Node Issues: Resource constraints, node availability problems
  • Pod Problems: CrashLoopBackOff, ImagePullBackOff, pending states
  • Container Errors: CreateContainerError, sandbox creation failures
  • Network Issues: Service connectivity, DNS resolution problems
  • Resource Management: OutOfPods states, resource allocation issues

Installation

Using uvx (Recommended)

Install and run directly with uvx:

uvx kubernetes-runbooks-mcp-server

Using uv

uv tool install kubernetes-runbooks-mcp-server
kubernetes-runbooks-server

Using pip

pip install kubernetes-runbooks-mcp-server
kubernetes-runbooks-server

Usage

With Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "kubernetes-runbooks": {
      "command": "uvx",
      "args": ["kubernetes-runbooks-mcp-server"]
    }
  }
}

Available Tools

  • list-topics: List all available runbook topics
  • search-runbooks: Search runbooks by keyword
  • fetch-runbook: Get specific runbook content by topic slug

Available Resources

Access runbooks directly via URI:

  • runbook://kubernetes/create-container-error
  • runbook://kubernetes/crashloopbackoff
  • runbook://kubernetes/dns-failures

Available Prompts

  • troubleshoot-k8s: Interactive troubleshooting guidance
  • runbook-summary: Summarize key points from runbooks

Example Usage

# List all available topics
{"name": "list-topics", "arguments": {}}

# Search for pod-related issues
{"name": "search-runbooks", "arguments": {"query": "pod"}}

# Fetch specific runbook
{"name": "fetch-runbook", "arguments": {"topic": "crashloopbackoff"}}

Development

Setup

git clone <repository-url>
cd kubernetes-runbooks-mcp-server
uv sync --dev

Running

uv run kubernetes-runbooks-server

Testing

uv run pytest

Architecture

  • RunbookScraper: Handles web scraping from the runbooks website
  • Caching System: In-memory cache for runbook metadata and content
  • MCP Server: Implements the Model Context Protocol with resources, tools, and prompts

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Acknowledgments

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kubernetes_runbooks_mcp_server-0.1.0.tar.gz (52.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kubernetes_runbooks_mcp_server-0.1.0-py3-none-any.whl (62.4 kB view details)

Uploaded Python 3

File details

Details for the file kubernetes_runbooks_mcp_server-0.1.0.tar.gz.

File metadata

File hashes

Hashes for kubernetes_runbooks_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 145744928836e2e25edfc7f1b42301bc2b0eea086b6d4c62525850ba76038151
MD5 338033155f0ffcf04c2a25da2a93ed3d
BLAKE2b-256 51e4cc560296e42fb59d446e308672777ad9de2eee20e322b872d9a888361bb0

See more details on using hashes here.

File details

Details for the file kubernetes_runbooks_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kubernetes_runbooks_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32b8af6c35cf770f5390d25dd6fcf78c650da7d7656fc2ed337a1b3ed0e8a685
MD5 c6e24eb189c78c29d085e592ed5947b1
BLAKE2b-256 2928a00ba3e2ee18f942fdcb3608d2692da409ddda3370d2ee9960a1ed00c6a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page