wazuh-mcp (MCP server for Wazuh SIEM triage)


What It Does

Wazuh’s web UI is powerful but slow for tier-1 triage. Natural language over MCP collapses the context-switch tax: ask a question in Claude Desktop, get a scoped SIEM query result with explanation.

Tools

  • search_alerts โ€” Wazuh indexer DSL query (filtered + paginated)
  • list_agents โ€” agent inventory with status
  • get_agent_status โ€” single-agent details, last-seen, groups
  • agent_logs โ€” recent events for one agent
  • rule_lookup โ€” Wazuh rule metadata by rule_id
  • node_health โ€” manager + indexer health check
  • search_by_ip โ€” pivot on IP across all alerts
  • top_rules โ€” most-fired rules in a time window

Design Decisions

  • Dual API (indexer + manager) โ€” search goes to the Elasticsearch/Opensearch indexer; agent control goes to the manager REST API. Different auth flows.
  • Auth token refresh โ€” manager tokens expire; MCP server refreshes transparently.
  • Pagination with truncation hints โ€” Claude gets “showing 50 of 2,431; narrow filter or ask for page 2” instead of a wall of JSON.

Stack

Python 3.11+ ยท FastMCP ยท httpx (async) ยท Wazuh indexer DSL ยท Wazuh manager REST API ยท Pydantic schemas.

โ† back