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 topicssearch-runbooks: Search runbooks by keywordfetch-runbook: Get specific runbook content by topic slug
Available Resources
Access runbooks directly via URI:
runbook://kubernetes/create-container-errorrunbook://kubernetes/crashloopbackoffrunbook://kubernetes/dns-failures
Available Prompts
troubleshoot-k8s: Interactive troubleshooting guidancerunbook-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
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details.
Acknowledgments
- Container Solutions for maintaining excellent Kubernetes runbooks
- Model Context Protocol for the MCP specification
Metadata
Release files for kubernetes-runbooks-mcp-server 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kubernetes_runbooks_mcp_server-0.1.1.tar.gz | 71.4 kB | Without provenance | Details for kubernetes_runbooks_mcp_server-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kubernetes_runbooks_mcp_server-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for kubernetes_runbooks_mcp_server-0.1.1-py3-none-any.whl |
Total release size: 154.2 kB
Release files / kubernetes_runbooks_mcp_server-0.1.1.tar.gz
| Download URL | kubernetes_runbooks_mcp_server-0.1.1.tar.gz |
|---|---|
| Size | 71.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64b9b46a96281b74a642c69dfc700884f41bad853542412c84baedb04e23efe2
|
|
BLAKE2b-256 checksum How to use checksums |
ba2a7abf067aa96461b93575481ecae985c59c29770f58dd5ce98199b2cac5bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Release files / kubernetes_runbooks_mcp_server-0.1.1-py3-none-any.whl
| Download URL | kubernetes_runbooks_mcp_server-0.1.1-py3-none-any.whl |
|---|---|
| Size | 82.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a182f1cb3ddd8019180d534e38e9f21d5b67dc7ec124399ec52a7a67a806b0a4
|
|
BLAKE2b-256 checksum How to use checksums |
1495debeff65332a2d13b5fd058b2d72c7ca2ab72a722ef00bd67dee2b817348
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Security for kubernetes-runbooks-mcp-server 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.