What Wazuh-MCP-Server does
Wazuh-MCP-Server brings Wazuh security operations into MCP clients. It can work with alert and event data in the Wazuh Indexer, as well as rules, agents, and configuration exposed by the Wazuh Manager API. The server also groups defensive capabilities for threat-intelligence enrichment, MITRE-driven 3-Sum APT correlation, attack graphing, LangGraph investigation workflows, local case retrieval, host forensics, and optional HDBSCAN clustering with ATT&CK incident labeling.
The package exposes 171 tools and four resources. Its tools are designed for both investigation and controlled operational access; read-only mode is available through WAZUH_READ_ONLY=true, and inbound API access defaults to the wazuh:read scope.
How it works
A single decorator pipeline handles tool calls. Calls are audited, sensitive alert data is redacted, and oversized responses are represented as valid JSON with a truncated flag rather than returning a partial document. The default response limit is controlled by CHARACTER_LIMIT, which is 100,000 characters. Internal LangGraph calls bypass that limit so workflows can process complete payloads.
Outbound requests pass through per-provider circuit breakers. Five consecutive failures open a breaker for 60 seconds, followed by one trial request. HTTP 429 and other 4xx responses do not count as upstream failures. Response caching and AbuseIPDB quota state are process-local; VirusTotal budget state uses a permission-restricted SQLite file.
The default transport is stdio for local subprocesses or SSH pipes. Streamable HTTP provides a stateful remote service at the configured host and port. The server refuses to bind beyond 127.0.0.1 unless MCP_API_KEY is set. SSE is not exposed by the main entry point.
Setup and configuration
Clone the repository and run sudo bash setup.sh to install dependencies, create the virtual environment, and place the mcp-server-blueteam wrapper at /opt/blue-team-mcp. Configure the generated config.env, then start mcp-server-blueteam for stdio operation.
The Wazuh Indexer URL, username, and password are the core connection settings. Manager API credentials are optional and enable tools that use the API at port 55000. TLS verification for both services is enabled by default and can be configured separately.
Threat-intelligence credentials are optional. Provider clients are gated by BLUETEAM_EXTERNAL_ENRICHMENT, which defaults to disabled. Supported provider areas include CrowdSec, ThreatFox, OTX, URLhaus, GreyNoise, cve.now, AbuseIPDB, VirusTotal, RapidAPI, HudsonRock, and additional configured services. Several providers have local cache, quota, reporting, or budget controls.
For remote HTTP operation, set MCP_TRANSPORT=streamable_http, choose MCP_HOST and MCP_PORT, and provide MCP_API_KEY. MCP_API_KEY_SCOPES can grant scopes such as wazuh:read, wazuh:write, and threatintel:report.
Tools and capabilities
- Query Wazuh Indexer alerts and events.
- Manage or inspect Wazuh agents, rules, and configuration through the Manager API.
- Enrich indicators with configured threat-intelligence providers.
- Correlate activity using MITRE-oriented 3-Sum analysis.
- Build attack graphs and run LangGraph investigation or playbook workflows.
- Retrieve local case material and perform host-forensics operations.
- Apply optional clustering and ATT&CK incident labeling.
- Control response size, auditing, redaction, provider budgets, and API scopes.
Limitations and notes
Read-only mode does not make every capability available: the server registers a different tool set when WAZUH_READ_ONLY=true. External enrichment requires both the relevant provider configuration and the global enrichment switch. VirusTotal sharing is disabled by default, and VirusTotal lookups have explicit budget and policy controls. The VirusTotal public API also has usage restrictions, including separate terms for commercial or government use.
The process model is single-process. Cache and AbuseIPDB quota state are therefore local to a process, while streamable HTTP maintains session state rather than operating statelessly. Review configuration changes after rerunning setup.sh, which preserves existing values and creates backups before restarting the service.