Wazuh MCP Server logo

Wazuh MCP Server

Connects AI agents to Wazuh, threat-intelligence providers, investigations, forensics, and defensive SOC workflows over MCP.

Install Wazuh MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

Wazuh-MCP-Server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    sudo bash setup.sh
    

Overview

Wazuh-MCP-Server connects MCP clients to Wazuh Indexer and the Wazuh Manager API, with optional threat-intelligence providers and defensive investigation workflows. It exposes 171 tools and four resources covering alert data, agent and rule management, IOC enrichment, MITRE-based correlation, attack graphs, forensics, case retrieval, and more. Local use runs over stdio, while stateful streamable HTTP supports remote clients with API-key authentication. Reach for it when an agent needs to investigate Wazuh telemetry or coordinate blue-team analysis without building separate API adapters.

Use cases

  • Investigate Wazuh alerts and events with an AI client
  • Enrich suspicious indicators across configured threat-intelligence providers
  • Correlate incidents with MITRE-based analysis and attack graphs
  • Run defensive investigation and playbook workflows
  • Inspect agents, rules, and Manager API configuration

Key features

  • Wazuh Indexer and Manager API access
  • Multi-provider threat-intelligence enrichment
  • MITRE-driven 3-Sum correlation
  • Attack graphing and LangGraph workflows
  • Host forensics and local case retrieval
  • Auditing, redaction, truncation, and circuit breakers

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars109Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.

How Wazuh MCP Server works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Wazuh MCP Server

Wazuh-MCP-Server is an MCP server that connects AI clients to Wazuh Indexer and Manager APIs, exposing tools for alerts, events, agents, rules, configuration, threat-intelligence enrichment, MITRE correlation, attack graphs, investigations, and forensics. It supports local stdio and authenticated streamable HTTP transports.

Run `sudo bash setup.sh` after cloning the repository. The script installs dependencies, creates a virtual environment, and adds the `mcp-server-blueteam` wrapper. Configure the generated environment settings, then start that command for stdio use.

Set `WAZUH_INDEXER_URL`, `WAZUH_INDEXER_USER`, and `WAZUH_INDEXER_PASSWORD` for alert and event access. Add `WAZUH_API_URL`, `WAZUH_API_USER`, and `WAZUH_API_PASSWORD` when Manager API tools for rules, agents, or configuration are needed.

Yes. Set `MCP_TRANSPORT=streamable_http`, configure the host and port, and provide `MCP_API_KEY`. Binding beyond `127.0.0.1` requires the key, and the service uses stateful streamable HTTP rather than SSE.

Yes. Claude Desktop is shown as a supported MCP client, including a configuration that starts the server through SSH with stdio transport. The server also supports other MCP clients that accept stdio or streamable HTTP.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWazuh MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wazuh-mcp-server?style=directory)](https://allmcps.com/mcp/wazuh-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/wazuh-mcp-server"><img src="https://allmcps.com/api/badge/wazuh-mcp-server?style=directory" alt="Wazuh MCP Server on AllMCPs" /></a>