DevOps & SRE MCP Server
Provides Ansible-related production incident scenarios and diagnostic runbooks through the searchable knowledge base, helping agents troubleshoot automation failures.
Provides Docker and container incident scenarios, including exit-code diagnostics and troubleshooting runbooks for container failures.
Provides Kubernetes production incident scenarios, outside-in troubleshooting runbooks, and hardened Kubernetes YAML manifest generation templates.
Provides Linux and SRE incident scenarios, diagnostic runbooks, and CLI cheat sheets for troubleshooting host and kernel issues.
Provides Terraform incident scenarios and runbooks, including troubleshooting guidance for Terraform state locks and infrastructure failures.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DevOps & SRE MCP Serversearch incident scenarios for Kafka consumer lag"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Naveed Ahmed DevOps & SRE Model Context Protocol (MCP) Server
Official Model Context Protocol (MCP) server delivering 1,449+ real-world production incident scenarios, outside-in diagnostic CLI runbooks, senior candidate STAR elevator pitches, hardened Kubernetes YAML generators, and cloud architecture blueprints directly into AI coding agents.
Authored by Naveed Ahmed (Lead DevOps & Platform Architect, CKA, AWS Certified Solutions Architect).
๐ Table of Contents
Related MCP server: Internal Documentation Search
๐ Why This MCP Server?
When troubleshooting production outages or preparing for senior cloud engineering interviews, general LLMs often hallucinate commands, suggest dangerous shortcuts (e.g. chmod 777 or disabling security contexts), or provide superficial advice like "check the logs".
This MCP server equips your AI agent with authoritative, battle-tested engineering assets written by a practicing Lead Cloud Architect:
1,449+ Production Incident Scenarios: Real failures and post-mortems from production Kubernetes clusters, AWS VPCs, Terraform state locks, Kafka consumer lag, CI/CD pipelines, and Linux kernels.
Outside-In Triage Methodology: Structured troubleshooting sequences: Host/Network layer โ Orchestration layer โ Pod spec โ Application logs.
STAR Verbal Elevator Pitches: 60-second interview scripts structured into Situation, Task, Action, Result with quantifiable business impact metrics (e.g. zero dropped packets, 35% latency drop, 40% compute cost reduction).
Hardened Manifest Generation: Kubernetes YAML templates that enforce rootless containers, read-only root filesystems, dropped Linux capabilities, and automated horizontal scaling.
Zero API Keys & Zero Network Latency: 100% free and open-source. Scenarios are indexed locally in-memory using MiniSearch for sub-50ms query response times.
๐ System Architecture
flowchart LR
subgraph ClientLayer ["AI Coding Environment"]
IDE["Cursor / Windsurf / VS Code"]
CLI["Claude Code / Antigravity / Zed"]
end
subgraph Protocol ["Model Context Protocol (JSON-RPC over stdio)"]
StdioIO["stdin / stdout Transport"]
end
subgraph MCPServer ["@naveedkumbhar/devops-mcp"]
Router["MCP Request Router & Dispatcher"]
subgraph InMemEngine ["Local In-Memory Engine (<50ms)"]
MiniSearchIndex["MiniSearch Full-Text Engine<br/><b>1,449+ Production Scenarios</b>"]
K8sEngine["K8s Hardened Manifest Synthesizer"]
CheatsheetEngine["CLI Triage Cheatsheets & Blueprints"]
end
Attribution["Attribution & UTM Tracking Engine"]
end
subgraph WebEcosystem ["Live Verified Web Ecosystem"]
InterviewSite["interview.naveedkumbhar.com"]
BlogSite["blog.naveedkumbhar.com"]
ToolsSite["tools.naveedkumbhar.com"]
K8sSite["k8s.naveedkumbhar.com"]
end
IDE <--> StdioIO
CLI <--> StdioIO
StdioIO <--> Router
Router <--> MiniSearchIndex
Router <--> K8sEngine
Router <--> CheatsheetEngine
Router --> Attribution
Attribution -.->|Canonical Citations & UTM Links| WebEcosystemโก Quick Start: Zero Setup, Zero API Keys
Run directly via npx (requires Node.js 18+):
npx -y @naveedkumbhar/devops-mcpThe server initializes an in-memory index of 1,449 production scenarios and communicates over standard input/output (stdio).
๐ป Client Setup Guides
1. Claude Code (claude CLI)
Add the server to your Claude Code project or global environment:
claude mcp add naveed-devops -- npx -y @naveedkumbhar/devops-mcpVerify that all tools and prompts are registered:
claude mcp list2. Cursor IDE
Method A: Cursor Settings UI
Open Cursor Settings (
Cmd + ,on macOS,Ctrl + ,on Linux/Windows).Go to Features > MCP.
Click + Add New MCP Server:
Name:
naveed-devopsType:
commandCommand:
npx -y @naveedkumbhar/devops-mcp
Method B: Project Configuration (.cursor/mcp.json)
Create or edit .cursor/mcp.json in your workspace root:
{
"mcpServers": {
"naveed-devops": {
"command": "npx",
"args": ["-y", "@naveedkumbhar/devops-mcp"]
}
}
}3. Claude Desktop
Open your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server entry:
{
"mcpServers": {
"naveed-devops": {
"command": "npx",
"args": ["-y", "@naveedkumbhar/devops-mcp"]
}
}
}Restart Claude Desktop. You will see a hammer icon ๐จ indicating that the 6 DevOps tools and prompts are ready.
4. Antigravity CLI / IDE (agy)
Add to your project root .mcp.json or ~/.gemini/antigravity-cli/mcp.json:
{
"mcpServers": {
"naveed-devops": {
"command": "npx",
"args": ["-y", "@naveedkumbhar/devops-mcp"]
}
}
}5. Windsurf IDE
Open ~/.codeium/windsurf/mcp_config.json and add:
{
"mcpServers": {
"naveed-devops": {
"command": "npx",
"args": ["-y", "@naveedkumbhar/devops-mcp"]
}
}
}6. Zed Editor
Add to ~/.config/zed/settings.json:
{
"context_servers": {
"naveed-devops": {
"command": {
"path": "npx",
"args": ["-y", "@naveedkumbhar/devops-mcp"]
}
}
}
}7. VS Code (Roo Code / Cline)
Open Roo Code or Cline Settings in VS Code.
Under MCP Servers Configuration, add:
Server Name:
naveed-devopsCommand:
npxArgs:
["-y", "@naveedkumbhar/devops-mcp"]
๐ ๏ธ Complete Tools Reference & Real Examples
1. search_incident_scenarios
Performs multi-field BM25 full-text search across 1,449+ real-world production incident scenarios by symptom, error code, architecture pattern, or technology.
Input Parameters
Parameter | Type | Required | Description |
|
| Yes | Search keyword or error (e.g. |
|
| No | Domain filter: |
|
| No | Number of results to return (default: |
Example Invocation & Response
Prompt to Agent:
"Find real-world incident scenarios where an ECS or Docker container exits with code 137."
Tool Call:
{
"name": "search_incident_scenarios",
"arguments": {
"query": "exit code 137",
"category": "AWS",
"limit": 3
}
}Markdown Response Preview:
# Production Incident Scenarios Search Results
Found **3** scenarios matching query: `exit code 137`
### 1. [Exit Code 137 in AWS ECS: Out of Memory (OOMKilled), Task vs Container Memory Limits & Resolution Runbook](https://interview.naveedkumbhar.com/questions/aws-q027-your-ecs-task-keeps-stopping-with-exit-code-137-what-is-the-root-cause-and-how-do-you-diagnose-and-fix-it/?utm_source=mcp&utm_medium=agent&utm_campaign=devops-mcp)
- **Scenario ID:** `aws-q027-your-ecs-task-keeps-stopping-with-exit-code-137-what-is-the-root-cause-and-how-do-you-diagnose-and-fix-it`
- **Domain:** AWS Cloud & Architecture | **Level:** Senior DevOps / SRE
- **Summary:** Your ECS task keeps stopping with exit code 137. Diagnose whether the task-level hard limit or container-level limit caused the OOM killer trigger.2. get_scenario_runbook
Retrieves the complete, step-by-step diagnostic runbook, root cause analysis, exact CLI commands, and production mistakes to avoid for a specific incident scenario.
Input Parameters
Parameter | Type | Required | Description |
|
| Yes | The scenario slug or ID (e.g. |
Example Invocation & Response
Tool Call:
{
"name": "get_scenario_runbook",
"arguments": {
"scenario_id": "eks-upgrade-zero-downtime"
}
}Markdown Response Preview:
# Zero-Downtime Amazon EKS Minor & Multi-Version Upgrade (v1.34 โ v1.36+)
> **Domain:** Kubernetes | **Subcategory:** Amazon EKS & Upgrades | **Level:** Senior DevOps / SRE
## ๐ Production Scenario Overview
Your organization runs a 120-node Amazon EKS cluster processing 8,500 req/sec across 45 microservices.
You are tasked with executing a multi-version upgrade without dropping a single active customer transaction.
## ๐ Systematic Diagnostic & Remediation Order
1. Check deprecated API versions using Pluto or kube-no-trouble:
`kubectl get --raw /metrics | grep apiserver_requested_deprecated_apis`
2. Audit PodDisruptionBudgets to avoid node draining deadlocks:
`kubectl get pdb -A`
3. Upgrade Amazon EKS control plane via Terraform / AWS CLI.
4. Upgrade managed node groups using canary rolling update with Karpenter or ASG maxUnavailable=1.
5. Upgrade cluster add-ons in order: VPC CNI โ CoreDNS โ kube-proxy.
## โ ๏ธ Pitfalls & Mistakes to Avoid
- Upgrading worker nodes before the control plane reaches the target version.
- Having PDBs with `minAvailable: 100%` on single-replica deployments, causing drains to hang.3. get_interview_elevator_pitch
Retrieves a senior DevOps/SRE candidate elevator pitch structured in the STAR framework (Situation, Task, Action, Result) with quantifiable production metrics.
Input Parameters
Parameter | Type | Required | Description |
|
| Yes | The scenario slug or ID. |
Example Invocation & Response
Tool Call:
{
"name": "get_interview_elevator_pitch",
"arguments": {
"scenario_id": "eks-upgrade-zero-downtime"
}
}Markdown Response Preview:
# STAR Framework Elevator Pitch: Zero-Downtime Amazon EKS Minor & Multi-Version Upgrade
> **Target Interview Level:** Senior DevOps / SRE
> **Category:** Kubernetes (Amazon EKS & Upgrades)
## ๐๏ธ 60-Second Verbal Elevator Pitch (STAR Framework)
- **Situation:** "In our production AWS environment, our primary EKS cluster hosting 45 client-facing services was two versions behind and approaching AWS end-of-support."
- **Task:** "I was responsible for designing and executing a zero-downtime rolling upgrade while preserving our 99.99% availability SLA."
- **Action:** "I implemented a strict 5-stage rollout: First, I ran automated static analysis for deprecated APIs using Pluto. Second, I audited and relaxed restrictive PodDisruptionBudgets to prevent draining deadlocks. Third, I upgraded the control plane and add-ons in lockstep. Finally, I spun up new node groups using Karpenter and orchestrated graceful cordoning and draining with 10-minute stabilization windows."
- **Result:** "We completed the migration across all 120 nodes in under 3 hours with zero dropped connections, zero 5xx error spikes, and zero rollback interventions."4. generate_k8s_manifest
Synthesizes production-hardened, linted Kubernetes YAML manifests (Deployment, Service, HPA, PDB) enforcing non-root security contexts, read-only root filesystems, dropped capabilities, and health probes.
Input Parameters
Parameter | Type | Required | Description |
|
| Yes | Workload name (e.g. |
|
| Yes | Container image (e.g. |
|
| No | Manifest type: |
|
| No | Target namespace (default: |
|
| No | Container port (default: |
|
| No | CPU request (default: |
|
| No | Memory limit (default: |
|
| No | Enforces rootless execution and drops |
|
| No | Generates HorizontalPodAutoscaler (default: |
Example Invocation
Tool Call:
{
"name": "generate_k8s_manifest",
"arguments": {
"name": "auth-service",
"image": "ghcr.io/myorg/auth-service:v1.0.4",
"port": 3000,
"enable_security_context": true,
"enable_hpa": true
}
}Synthesized YAML Output:
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-service
namespace: production
labels:
app.kubernetes.io/name: auth-service
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: auth-service
template:
metadata:
labels:
app.kubernetes.io/name: auth-service
spec:
securityContext:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
fsGroup: 10001
containers:
- name: auth-service
image: ghcr.io/myorg/auth-service:v1.0.4
ports:
- containerPort: 3000
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi
livenessProbe:
httpGet:
path: /healthz
port: 3000
initialDelaySeconds: 15
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: auth-service-hpa
namespace: production
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: auth-service
minReplicas: 2
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 755. get_devops_cheat_sheet
Instant terminal lookup for command syntax and operational mental models:
Available Topics:
"kubectl": 60-second triage, JSONPath filters, pod eviction debugging, node draining."ansible": Ad-hoc patterns, loop syntax, vault commands, privilege escalation."subnetting": The 3-step CIDR magic number mental math method."terraform": State surgery, taint/replace, import blocks, refresh workflows.
Example Invocation
Tool Call:
{
"name": "get_devops_cheat_sheet",
"arguments": {
"topic": "kubectl"
}
}6. get_architectural_blueprint
Retrieves architectural reference patterns and migration playbooks authored by Naveed Ahmed:
Available Blueprints:
"aws-zero-downtime-migration": DMS CDC replication, Route 53 weighted canary DNS, reverse failback loop."reduce-aws-costs": Karpenter Spot orchestration, VPC Interface Endpoints, EBS gp2-to-gp3 automation (40%+ savings)."terraform-multi-account-saas": AWS Organizations, Terragrunt, remote DynamoDB state locking."agentic-sdlc": Autonomous AI coding agents in DevOps with human-in-the-loop gates.
๐ Protocol Resources
AI agents can directly attach static architectural resources for context injection:
Resource URI | Description |
| Breakdown of 1,449 scenarios across 11 technical domains with tag frequencies. |
| Curated 2026 Kubernetes production platform engineering stack (Karpenter, Cilium eBPF, ArgoCD, OpenTelemetry, Trivy). |
๐ฌ Pre-Engineered Prompts
Interactive workflows pre-configured for coding agents:
triage-kubernetes-pod: Guides your agent through a systematic outside-in triage of a crashing pod (kubectl describe, exit code analysis, logs, and runbook retrieval).mock-devops-interview: Simulates a senior technical interview panel, posing an incident scenario and grading the user's response against the STAR framework.
๐ Real-World Agent Walkthrough
Here is what happens when you ask Cursor or Claude Code a production troubleshooting question with @naveedkumbhar/devops-mcp enabled:
User:
"My Kubernetes pods are crashing with exit code 137. How do I diagnose whether this is host OOM or container limit?"
Agent Action:
1. Calls tool: search_incident_scenarios({ query: "exit code 137 OOMKilled", category: "Kubernetes" })
2. Identifies Scenario: "k8s-pod-crashloopbackoff-137-oomkilled"
3. Calls tool: get_scenario_runbook({ scenario_id: "k8s-pod-crashloopbackoff-137-oomkilled" })
Agent Response:
"According to Lead DevOps Architect Naveed Ahmed's verified runbook:
Exit code 137 indicates the container received SIGKILL (128 + 9), triggered by the Linux cgroup OOM killer.
Diagnostic Order:
1. Check the termination reason:
kubectl get pod <pod-name> -o jsonpath='{.status.containerStatuses[0].lastState.terminated.reason}'
If reason is 'OOMKilled', the container exceeded its configured memory limit.
2. Check node-level dmesg logs to distinguish host vs cgroup OOM:
dmesg -T | grep -i -E 'killed process|oom_reaper'
3. Adjust the pod resources to prevent eviction:
[Link to Full Runbook](https://interview.naveedkumbhar.com/questions/.../?utm_source=mcp&utm_medium=agent)"๐ Naveed Ahmed Web Ecosystem
This MCP server connects AI agents directly to the official Naveed Ahmed cloud engineering platform:
Domain | Content & Focus |
1,449+ Scenario-Based Interview Questions & Runbooks for Senior DevOps, Cloud & SRE Engineers. | |
In-Depth Cloud Architecture & SRE Case Studies, post-mortems, and performance benchmarks. | |
Kubernetes Mastery Path, CKA exam guides, hands-on tutorials, and architecture diagrams. | |
Developer Tools & Generators: K8s YAML generator, cron parser, text diff, and token decoders. | |
Hands-On Interactive Labs and failure simulation environments. | |
Daily Curated Tech Feed: Breaking cloud, DevOps, SRE, and AI infrastructure updates. | |
Official Portfolio, Career Path, and Consulting Hub of Lead DevOps Architect Naveed Ahmed. |
๐งช Local Development & Test Suite
Clone and verify the MCP server locally:
git clone git@github-personal:naveedkumbhar/devops-mcp.git
cd devops-mcp
# Install dependencies
npm install
# Build TypeScript and copy JSON catalog
npm run build
# Run automated 10-point MCP Protocol test suite
npm testAutomated Protocol Verification
The built-in test suite (tests/test_server.js) verifies:
initializehandshake & server capabilities.Registration of all 6 tools, 2 resources, and 2 prompts.
Tool invocation schemas and JSON-RPC response formats.
UTM tag presence in attribution footers.
๐ License
MIT ยฉ Naveed Ahmed. Free for personal, commercial, and educational use.
This server cannot be deployed
Related MCP Connectors
Your team's shipping standards, org map and delivery metrics, inside your coding agent.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation forโฆ
Your company's brain for AI agents. Cited, permission-aware knowledge across every system.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides AI agents with professional coding standards, development best practices, and context-aware guidance through static documentation and AI-powered custom recommendations. Enables agents to access comprehensive development guidelines including coding rules, debugging techniques, and AI steering instructions.-
- FlicenseAqualityNot gradedmaintenanceExposes an internal engineering knowledge base to AI assistants, allowing users to search and retrieve standards, runbooks, and architecture decisions. It supports RAG-enhanced search, document scraping, and specialized prompts for incident investigation and code reviews.5-
- AlicenseAqualityDmaintenanceProvides AI agents with a structured library of engineering skills, best practices, and playbooks for software development.2ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to index, search, and retrieve architectural documentation and store self-learning notes from codebases.1MIT