AI Incident Monitoring RCA MCP Server
Click on "Install 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., "@AI Incident Monitoring RCA MCP ServerGet recent logs and metrics for the database pool exhaustion incident."
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.
š¤ Enterprise AI System Monitoring & Autonomous RCA Agent
An autonomous, production-inspired Level-1 SRE Incident Triage Agent built with LangGraph, FastMCP, and FastAPI. It intercepts infrastructure alerts via authenticated webhooks, dynamically queries application stack traces and time-series metrics via FastMCP tools, performs grounded root-cause analysis, and provides human-in-the-loop remediation guardrails.
Key Metric: Cuts manual incident triage time from 40 minutes to under 3 seconds (~99.5% MTTR reduction) while eliminating hallucinations using a deterministic Grounding Verification Guardrail.
šļø System Architecture
[ External Alerting / Prometheus ] ā (Authenticated HTTP POST / X-API-Key) ā¼ āāāāāāāāāāāāāāāāāāāāāāāāā ā FastAPI Webhook API ā āāāāāāāāāāāāā¬āāāāāāāāāāāā ā (Idempotency Check via SQLite) ā¼ āāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā LangGraph State Machine ā āāāāāāāāāāāāāāāāāāāāāāāāāāāā⤠ā 1. Ingest Incident ā ā 2. Fetch Telemetry āāāāāāāā¼āāāāŗ [ FastMCP Server Tools ] ā 3. Analyze Root Cause āāāāā¼āāāāŗ [ Resilient LLM Router (Groq / OpenRouter) ] ā 4. Verify Grounding ā āāāāāāāāāāāāāāā¬āāāāāāāāāāāāāā ā ā¼ āāāāāāāāāāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā Streamlit Operator UI ā āāāāŗ ā Human-in-the-Loop Safeguard ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā (Approve / Reject Remediation) ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Related MCP server: P12 SRE Ops MCP Server
ā Core Enterprise Features
Multi-Incident Failure Simulation: Built-in telemetry engine generating realistic multi-variate metrics for Database Pool Exhaustion, Heap Memory Leaks (OOM), and Upstream API Latency Cascades.
Deterministic LangGraph Orchestration: Async state-machine workflow executing sequential DAG steps (
ingestāfetchāanalyzeāverify).Decoupled FastMCP Tool Architecture: Isolated Model Context Protocol server exposing
get_recent_logs()andget_system_metrics()without polluting core agent logic.Zero-Hallucination Grounding Safeguard: Programmatic verification node cross-referencing LLM claims against raw stack trace evidence before marking diagnostics as valid.
Resilient Multi-Provider LLM Router: 15-second timeout limits with exponential backoff retries and automatic failover from primary (Groq Llama 3.1 8B) to secondary (OpenRouter).
Webhook Authentication & Idempotency Store: Secured with
X-API-Keyheaders and SQLite-backed deduplication (DUPLICATE_CACHED) to prevent duplicate LLM calls on repeated alerts.FinOps Token & Cost Observability: Real-time token usage, execution latency, and dollar cost tracking per incident logged via
structlogand SQLite.Automated Pytest Regression Suite: Mocked async test suite running regression checks in < 1s without spending paid API credits.
š Evaluation & Benchmark Performance
Evaluated against evaluation/eval_dataset.json across realistic incident scenarios:
Metric | Benchmark Result |
Total Test Scenarios | 3 / 3 Passed |
Root Cause Accuracy Score | 100.0% |
Grounding Guardrail Pass Rate | 100.0% (0% Hallucination Rate) |
Average AI Execution Speed | ~2.8 seconds |
MTTR Reduction Efficiency | 99.5% Faster than Manual Triage |
š Quickstart & Setup
Prerequisites
Python 3.11+
Docker & Docker Compose (Optional for containerization)
Free Groq API Key
Local Installation
# 1. Clone Repository
git clone [https://github.com/lokeshkundi15/ai-incident-monitoring-rca-agent.git](https://github.com/lokeshkundi15/ai-incident-monitoring-rca-agent.git)
cd ai-incident-monitoring-rca-agent
Linkedin Profile : https://www.linkedin.com/in/lokesh-kundi-3a08b9318/
# 2. Create Virtual Environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# 3. Install Dependencies
pip install -r requirements.txt
# 4. Environment Variables Setup
cp .env.example .env
# Edit .env and paste your GROQ_API_KEY and WEBHOOK_API_KEY
Running the Services:
# Start FastAPI Webhook Server
python app/main_api.py
# In a new terminal, launch the Streamlit Operations Dashboard
streamlit run ui/dashboard.py
# Execute Evaluation Suite
python evaluation/evaluate.py
# Run Automated Test Suite
pytest -v
Running via Docker:
docker-compose up --build
š ļø Project Structure:
ai-incident-monitoring-rca-agent/
āāā app/
ā āāā logger.py # Structlog JSON Audit Logger
ā āāā llm_router.py # Resilient Fallback LLM Router
ā āāā main_api.py # Authenticated FastAPI Webhook
ā āāā idempotency.py # SQLite Deduplication Store
ā āāā cost_tracker.py # FinOps Token & Cost Observability
āāā agents/
ā āāā state.py # IncidentState Schema
ā āāā nodes.py # Async Graph Nodes
ā āāā graph.py # LangGraph Workflow Orchestrator
āāā mcp_server/
ā āāā tools.py # FastMCP Telemetry Tools
āāā data/
ā āāā generator.py # Multi-Scenario Incident Simulator
ā āāā simulated/ # SQLite Metrics & Log Files
āāā evaluation/
ā āāā eval_dataset.json # Benchmark Scenarios
ā āāā evaluate.py # Quantitative Evaluation Runner
āāā tests/
ā āāā test_suite.py # Pytest Async Regression Suite
āāā ui/
ā āāā dashboard.py # Streamlit Operator UI
āāā Dockerfile
āāā docker-compose.yml
āāā requirements.txtThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables AI agents to investigate backend incidents by executing runbooks that gather evidence from observability and storage systems.Last updated259MIT
- Flicense-qualityBmaintenanceEnables SRE operations through natural language, providing tools to query SLO status, fetch runbooks, query alerts, and manage incidents with audit logging and latency tracking.Last updated
- Flicense-qualityCmaintenanceAutonomous AI agent for Kubernetes triage and infrastructure management using natural language.Last updated
- Alicense-qualityBmaintenanceEnables autonomous SRE incident investigation by allowing users to describe incidents in natural language. The agent follows a governed state machine to gather read-only evidence and produce grounded conclusions.Last updatedMIT
Related MCP Connectors
AI agent run monitoring with incident replay and SLA receipts.
Vendor status pages, TLS cert inspection, DNS propagation checks, and incident-response playbooks.
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lokeshkundi15/ai-incident-monitoring-rca-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server