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 statusget_agent_statusโ single-agent details, last-seen, groupsagent_logsโ recent events for one agentrule_lookupโ Wazuh rule metadata by rule_idnode_healthโ manager + indexer health checksearch_by_ipโ pivot on IP across all alertstop_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.