1. Conduid
  2. Search
  3. Wazuh MCP Soc Automation
MCP server · Search

Wazuh MCP Soc Automation

A Python-based FastMCP server for querying Wazuh data in OpenSearch, offering tools to search raw logs, alerts, agent details, and vulnerabilities via environment-secured connections.

Unclaimed last commit 8 months ago search
34Low

Scored 7 months ago · breakdown

About Wazuh MCP Soc Automation

Wazuh MCP Soc Automation is an MCP server published by manjeetmk12 in the Search category: a Python-based FastMCP server for querying Wazuh data in OpenSearch, offering tools to search raw logs, alerts, agent details, and vulnerabilities via environment-secured connections.

The repository has 2 stars and 0 forks, with the last commit 8 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/manjeetmk12/wazuh-mcp-soc-automation

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Wazuh MCP Soc Automation

Powered by Claude · Grounded in docs

I know everything about Wazuh MCP Soc Automation. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Wazuh-OpenSearch MCP Bridge

A high-performance Model Context Protocol (MCP) server built with FastMCP to provide AI agents with direct, real-time access to Wazuh security data via OpenSearch.

Table of Contents

Overview

This bridge allows Agentic AI frameworks (like OpenWebUI or custom LangGraph setups) to query security telemetry directly. It is designed to support:

  • SOC Automation: Automated alert enrichment.
  • Vulnerability Management: AI-driven scanning and prioritization.
  • Agentic IR: Enabling "Executor" agents to pull logs for incident response.

Features

  • Raw Log Search: Query wazuh-archives-* for deep forensic analysis.
  • Alert Monitoring: Fetch real-time alerts with severity filtering.
  • Agent Intelligence: Retrieve status and metadata for specific Wazuh agents.
  • Vulnerability Queries: Targeted search for vulnerability-detector groups.

Prerequisites

  • Python 3.8 or higher
  • Access to a Wazuh OpenSearch instance
  • Required Python packages (see requirements.txt)

Installation

  1. Clone the repository:

    git clone https://github.com/manjeetmk12/wazuh-mcp-soc-automation.git
    cd wazuh-mcp-soc-automation
    
  2. Create a virtual environment (recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    

Configuration

Before running the server, you need to configure the connection to your OpenSearch instance:

  1. Copy the sample environment file:

    cp .env.sample .env
    
  2. Edit the .env file with your OpenSearch credentials:

    OPENSEARCH_HOST="localhost"
    OPENSEARCH_PORT=9200
    OPENSEARCH_USER=admin
    OPENSEARCH_PASSWORD="your-opensearch-password"
    

Usage

To start the MCP server, run:

python src/main.py

The server will start and listen for MCP requests from connected AI agents.

API Tools

search_raw_logs

Search for raw logs in OpenSearch based on a query and time range.

Parameters:

  • query (str): The search query string
  • time_range (str, optional): Time range for the search (default: "1h")

Returns: List of log entries matching the query

search_alerts

Search for Wazuh alerts in OpenSearch with a specified minimum severity level.

Parameters:

  • query (str): The search query string
  • time_range (str, optional): Time range for the search (default: "1h")
  • min_level (int, optional): Minimum alert level (default: 0)

Returns: List of alerts matching the criteria

get_agent_data

Retrieve agent data from OpenSearch. Requires either agent_id or agent_name.

Parameters:

  • agent_id (str, optional): The ID of the agent to query
  • agent_name (str, optional): The name of the agent to query

Returns: Agent data (status, version, etc.)

search_vulnerabilities

Search for vulnerabilities in OpenSearch, with an optional query, time range, and minimum severity level.

Parameters:

  • query (str, optional): The search query string (default: "*")
  • time_range (str, optional): Time range for the search (default: "1h")
  • min_level (int, optional): Minimum vulnerability level (default: 7)

Returns: List of vulnerabilities matching the criteria

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Support

For support, please open an issue on the GitHub repository or contact the maintainers.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Wazuh MCP Soc Automation

How do I install Wazuh MCP Soc Automation?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Wazuh MCP Soc Automation safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Wazuh MCP Soc Automation still maintained?

The last commit was 8 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.