SuperAPIAI Directory

mcp-server-wazuh

github.com · AI developer platforms

Access real-time security alerts and event data from Wazuh SIEM.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Windows · Linux

About this tool

Wazuh MCP Server is a server written in Rust, designed to connect the Wazuh Security Information and Event Management (SIEM) system with applications that need contextual security data, specifically designed for Claude Desktop integration using the Model Context Protocol (MCP). It enables AI assistants to access Wazuh SIEM data through natural language, without the need to manually call APIs or write complex queries.

Main Capabilities The server converts complex Wazuh API responses into an MCP-compatible format, enabling AI assistants to access the following data:

  • Security alerts and events from the Wazuh Indexer, for threat detection and incident response
  • Agent management and monitoring, including health status, system processes, and network ports
  • Vulnerability assessment data, for risk management and patch prioritization
  • Security rules and configurations, for detection tuning and compliance validation
  • System statistics and performance metrics, for operational monitoring and audit trails
  • Log analysis and forensics, for incident investigation and compliance reporting
  • Cluster health and management, for infrastructure reliability and availability requirements
  • Compliance monitoring and gap analysis, supporting regulatory frameworks such as PCI-DSS, HIPAA, SOX, GDPR, and others

Usage Users can ask AI assistants natural language questions, such as "Show critical vulnerabilities on the web server," "What processes are running on agent 001," "Do we meet PCI-DSS logging requirements," and then obtain structured, actionable data from the Wazuh deployment.

Environment Requirements

  • An MCP-compatible LLM client (such as Claude Desktop)
  • A running Wazuh server (v4.12 recommended), with the API enabled and network-accessible
  • Network connectivity between this server and the Wazuh API (if using API interaction)

Installation Option 1: Download the prebuilt binary (recommended) From the Releases page of the mcp-server-wazuh GitHub repository, download the binary suitable for your operating system (such as mcp-server-wazuh-linux-amd64, mcp-server-wazuh-macos-amd64, mcp-server-wazuh-macos-arm64, mcp-server-wazuh-windows-amd64.exe), make it executable (for example, chmod +x mcp-server-wazuh-linux-amd64), optionally rename it to mcp-server-wazuh and move it to a PATH directory.

Option 2: Docker Run docker pull ghcr.io/gbrigandi/mcp-server-wazuh:latest

Option 3: Build from source First install Rust (https://www.rust-lang.org/tools/install),然后执行: git clone https://github.com/gbrigandi/mcp-server-wazuh.git cd mcp-server-wazuh

stdio transport only (default)

cargo build --release

HTTP transport supported

cargo build --release --features http The generated binary is located at target/release/mcp-server-wazuh.

Configuration Configuration is managed through environment variables, and a .env file can be placed in the project root directory for local development. For production environments, it is strongly recommended to set WAZUH_VERIFY_SSL=true and ensure certificate verification for the Wazuh Manager API and Wazuh Indexer connections; setting it to false disables certificate checking and is insecure. The LLM client needs to be pointed to the path of the mcp-server-wazuh executable. Claude Desktop requires configuring claude_desktop_config.json. If using Docker, create a .env file containing the Wazuh configuration.

Transport Modes

  • stdio transport (default): suitable for local integration, where the MCP client starts the server as a subprocess and communicates via stdin/stdout using JSON-RPC 2.0 messages.
  • Streamable HTTP transport: supports remote server deployment, allowing MCP clients to connect over the network, implements the MCP Streamable HTTP specification and supports Server-Sent Events (SSE). It provides a single /mcp endpoint, supports POST requests, SSE streaming responses, session management via the MCP-Session-Id header, and protocol version 2025-06-18 (supported by rmcp 0.10). Security note: by default it binds to 127.0.0.1; when binding to 0.0.0.0 for remote access, security measures such as firewalls and a reverse proxy with TLS should be taken.

Architecture and Data Flow The server is built on the rmcp framework (v0.10+) and supports both stdio and Streamable HTTP transports, interacting with the Wazuh Indexer and Wazuh Manager API to obtain data such as security alerts. Taking stdio as an example: the application starts the Wazuh MCP Server as a subprocess; the application sends MCP-format requests to the server's stdin; the server reads and parses the command; if the command needs to obtain data from Wazuh (such as "get the latest alerts"), the server connects to the Wazuh API (using configured credentials such as WAZUH_API_USERNAME, WAZUH_API_PASSWORD for authentication when necessary), obtains the data, and through conversion logic maps each alert's Wazuh fields to MCP format; if it is an internal command (such as a server status check), it is handled directly.

Example Use Cases

  • Security alert analysis: use get_wazuh_alert_summary to query recent security alerts to identify and prioritize threats; analyze alert trends and patterns to discover recurring security issues or potential attack activity.
  • Vulnerability management: use get_wazuh_vulnerability_summary and get_wazuh_critical_vulnerabilities to assess the security posture of specific agents and prioritize patching; combine agent criticality and exposure for risk-based vulnerability prioritization.
  • System monitoring and forensics: use get_wazuh_agent_processes to investigate processes running on agents; use get_wazuh_agent_ports to monitor open ports and network services; use get_wazuh_running_agents to track agent status and connectivity.
  • Security operations intelligence: use get_wazuh_rules_summary to analyze detection rule effectiveness; use get_wazuh_weekly_stats, get_wazuh_remoted_stats, get_wazuh_log_collector_stats to track performance; use get_wazuh_cluster_health and get_wazuh_cluster_nodes to monitor cluster health.
  • Incident response and forensics: use search_wazuh_manager_logs and get_wazuh_manager_error_logs to search and analyze manager logs; combine multiple tools to build a complete profile of a specific agent; ask complex security queries in natural language and obtain structured data.
  • Operational efficiency: generate security reports and summaries through a conversational interface; correlate Wazuh Indexer (alerts) and Wazuh Manager (agents, rules, vulnerabilities) data for comprehensive analysis; supports multilingual security operations.

Integration with complementary security MCP servers

  • Cortex integration: use Cortex's 140+ analyzers to automatically analyze suspicious files, URLs, domains, and IPs in Wazuh alerts; enrich IOCs with sources such as VirusTotal, Shodan, and MISP; combine Wazuh detection capabilities with the Cortex analysis engine to automatically investigate and classify threats; leverage reputation checks, malware analysis, domain analysis, and behavioral analysis; use analysis results to guide automated response and alert prioritization.
  • TheHive integration: automatically create TheHive cases from Wazuh alerts for structured incident tracking; link related Wazuh alerts to existing cases; create and track investigation tasks based on alert severity and type; extract and manage IOCs as observables in case investigations; support security team collaboration.
  • MISP integration: check whether indicators in Wazuh alerts are already in the threat intelligence database; retrieve event context, threat actor attribution, and MITRE ATT&CK mapping; validate IOCs with MISP warning lists to reduce false positives; record and query sighting history to assess IOC prevalence; access threat actor profiles, malware families, and attack patterns.

Example workflow

  1. Wazuh detects a suspicious file hash or network connection in an alert; 2. The AI assistant queries the MISP MCP Server to check whether the IOC is already in threat intelligence; 3. If unknown, the Cortex MCP Server analyzes the artifact using multiple analyzers; 4. Correlate results from sources such as VirusTotal, hybrid analysis, and domain reputation; 5. Create a case through the TheHive MCP Server to track the investigation; 6. Synthesize intelligence to provide context for incident response decisions; 7. Investigation results can be used to update Wazuh rules or trigger additional monitoring.

Local development Clone the repository: git clone https://github.com/gbrigandi/mcp-server-wazuh.git cd mcp-server-wazuh Configuration (if using the Wazuh API): cp .env.example .env Edit the .env file to fill in the specific Wazuh API details (such as WAZUH_API_HOST, WAZUH_API_PORT). Build:

Default features (stdio transport only)

cargo build

Support HTTP transport

cargo build --features http Run:

stdio transport (default)

cargo run

HTTP transport (requires --features http at build time)

cargo run --features http -- --transport http Optionally install Docker and Docker Compose for containerized deployment.

Limitations The materials do not provide pricing, charging model, or detailed license information, so none is provided for now.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools