Skip to main content
Glama
yoojung2

mcp-incident-analyzer

by yoojung2

mcp-incident-analyzer

A Python-based MCP (Model Context Protocol) server that supports the full cycle from incident detection to analysis and response guidance.

Features

Tool

Description

detect_incidents

Detect currently active incidents (filter by severity/type)

analyze_incident

Root cause analysis (RCA) of a specific incident, timeline, and impact scope

suggest_response

Incident response recommendations (automated/manual actions, escalation)

list_incidents

Retrieve the full incident list

get_metrics

Retrieve system metrics (CPU, memory, network, etc.)

Related MCP server: mcp-incident-responder

Incident Types

  • Infrastructure: Server down, CPU spikes, disk full

  • Security: Abnormal logins, malicious traffic, intrusion detection

  • Application: Error rate surges, response latency, deployment failures

Installation & Execution

# 설치
pip install -e .

# MCP 서버 실행
python -m mcp_incident_analyzer

# 또는 mcp CLI로 실행
mcp run mcp_incident_analyzer/server.py

MCP Client Configuration

Add to claude_desktop_config.json or the MCP client settings:

{
  "mcpServers": {
    "incident-analyzer": {
      "command": "python",
      "args": ["-m", "mcp_incident_analyzer"]
    }
  }
}

Development

pip install -e ".[dev]"
pytest

Architecture

mcp_incident_analyzer/
├── __init__.py
├── __main__.py          # 엔트리포인트
├── server.py            # MCP 서버 정의 & tool 등록
├── models.py            # Pydantic 데이터 모델
├── mock_data.py         # Mock 인시던트/메트릭 데이터
├── detector.py          # 인시던트 탐지 로직
├── analyzer.py          # 근본 원인 분석 로직
└── responder.py         # 대응 권고 생성 로직

License

MIT

Related MCP Connectors

Related MCP Servers