Wazuh MCP Server

Read-only Wazuh SIEM/XDR control CLI with an MCP adapter

Remote serverstreamable-httpTypeScript

What is the Wazuh MCP Server?

Read-only Wazuh SIEM/XDR control CLI with an MCP adapter

What it actually does

An MCP server that lets an AI client query your Wazuh SIEM/XDR: alerts, agents, vulnerabilities, rules, and more, read-only.

Configuration

  • Node.js 20+ - A running Wazuh manager with API access (default port 55000) - Wazuh API credentials (username/password) - (Optional) Wazuh Indexer (OpenSearch) access for alert queries

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_agentsList all agents with optional status filtering (active, disconnected, never_connected, pending)
get_agentGet detailed info for a specific agent by ID
get_agent_statsGet CPU, memory, and disk statistics for an agent
get_alertsRetrieve recent alerts with filtering by time range, level, agent, rule, and text search
get_alertRetrieve a single alert by ID
search_alertsFull-text search across alerts with optional time range filtering
list_vulnerabilitiesList vulnerability inventory with optional CVE, agent, severity, and package filters
search_vulnerabilitiesSearch vulnerability inventory by CVE, package, agent, or description
list_rulesList detection rules with level and group filtering
get_ruleGet full rule details including compliance mappings
search_rulesSearch rules by description text
get_sca_policiesList SCA policies and scores for an agent (CIS benchmarks, etc.)
get_sca_checksGet individual check results with remediation steps and compliance mappings
get_agent_osGet OS information (name, version, architecture, hostname)

How to install the Wazuh MCP Server

{
  "mcpServers": {
    "wazuh-1": {
      "command": "npx",
      "args": ["-y", "invocation"],
      "env": {
        "WAZUH_URL": "your-value",
        "WAZUH_USERNAME": "your-value",
        "WAZUH_PASSWORD": "your-value",
        "WAZUH_INDEXER_URL": "your-value",
        "WAZUH_INDEXER_USERNAME": "your-value",
        "WAZUH_INDEXER_PASSWORD": "your-value",
        "WAZUH_BASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 20+ - A running Wazuh manager with API access (default port 55000) - Wazuh API credentials (username/password) - (Optional) Wazuh Indexer (OpenSearch) access for alert queries
VariableDescriptionRequired
WAZUH_URLEndpoint or connection string the server talks to.Yes
WAZUH_USERNAMEConfiguration value read at startup.Optional
WAZUH_PASSWORDConfiguration value read at startup.Optional
WAZUH_INDEXER_URLEndpoint or connection string the server talks to.Yes
WAZUH_INDEXER_USERNAMEConfiguration value read at startup.Optional
WAZUH_INDEXER_PASSWORDConfiguration value read at startup.Optional
WAZUH_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Wazuh to list agents.”
  • “Use Wazuh to get agent.”
  • “Use Wazuh to get agent stats.”

Frequently asked questions

Read-only Wazuh SIEM/XDR control CLI with an MCP adapter Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.