Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Wazuh Mcp Server

    AI-powered security operations with Wazuh SIEM + Claude Desktop. Natural language threat detection, automated incident response & compliance. Real-time monitoring, ML anomaly detection. Transform your SOC with conversational security analysis. Production-ready MCP server.

    83 stars
    Python
    Updated Oct 21, 2025
    ai
    claude
    claude-ai
    claude-code
    claudedxt
    dxt
    genai
    hacktoberfest
    hacktoberfest-accepted
    hacktoberfest2025
    mcp
    mcp-server
    mcpserver
    model-context-protocol
    model-context-protocol-servers
    python
    wazuh
    wazuh-integration

    Table of Contents

    • What This Does
    • Works With Cloud AND Local LLMs
    • Quick Start: Local LLM with mcphost
    • Quick Start: Multi-User SOC with Open WebUI
    • 48 Security Tools
    • Quick Start
    • Prerequisites
    • Deploy
    • Connect Claude Desktop
    • Security
    • Configuration
    • Required
    • Optional
    • Wazuh Indexer (for alert search + vulnerabilities)
    • API Endpoints
    • Architecture
    • Take It Further: Autonomous Agentic SOC
    • Documentation
    • Contributing
    • License
    • Acknowledgments
    • Contributors

    Table of Contents

    • What This Does
    • Works With Cloud AND Local LLMs
    • Quick Start: Local LLM with mcphost
    • Quick Start: Multi-User SOC with Open WebUI
    • 48 Security Tools
    • Quick Start
    • Prerequisites
    • Deploy
    • Connect Claude Desktop
    • Security
    • Configuration
    • Required
    • Optional
    • Wazuh Indexer (for alert search + vulnerabilities)
    • API Endpoints
    • Architecture
    • Take It Further: Autonomous Agentic SOC
    • Documentation
    • Contributing
    • License
    • Acknowledgments
    • Contributors

    Documentation

    Wazuh MCP Server

    License: MIT

    Python 3.11+

    MCP 2025-11-25

    Docker

    Talk to your SIEM. Query alerts, hunt threats, check vulnerabilities, and trigger active responses across your entire Wazuh deployment — through natural conversation with any AI assistant.

    v4.2.1 | 48 security tools | Wazuh 4.8.0–4.14.4 | Changelog

    ---

    What This Does

    Your Wazuh SIEM generates thousands of alerts, vulnerability findings, and agent events daily. Investigating them means juggling dashboards, writing API queries, and manually correlating data across tools.

    This MCP server turns that workflow into a conversation:

    code
    You:    "Show me critical alerts from the last hour"
    AI:     [calls get_wazuh_alerts] Found 3 critical alerts:
            1. SSH brute force from 10.0.1.45 → agent-003 (Rule 5712, Level 10)
            2. Rootkit detection on agent-007 (Rule 510, Level 12)
            3. FIM change /etc/shadow on agent-001 (Rule 550, Level 10)
    
    You:    "Block that source IP on agent-003"
    AI:     [calls wazuh_block_ip] Blocked 10.0.1.45 via firewall-drop on agent-003.
    
    You:    "Which agents have unpatched critical CVEs?"
    AI:     [calls get_critical_vulnerabilities] 3 agents with critical vulnerabilities...

    It works with Claude Desktop, Open WebUI + Ollama (fully local, air-gapped), mcphost, or any MCP-compliant client.

    ---

    Works With Cloud AND Local LLMs

    This is a standard MCP tool server. It doesn't care what LLM you use — it just executes tools and returns results.

    ModeLLMClientData leaves your network?
    CloudClaude, GPT, etc.Claude Desktop, any MCP clientYes (to LLM provider)
    LocalLlama, Qwen, Mistral via OllamaOpen WebUI, mcphost, IBM/mcp-cliNo. Fully air-gappable.

    For security teams that can't send SIEM data to cloud APIs (compliance, air-gapped networks, data sovereignty), the local mode with Ollama keeps everything on-premises. Both modes coexist — same server, same tools, same API.

    Quick Start: Local LLM with mcphost

    bash
    # 1. Start the MCP server
    docker compose up -d
    
    # 2. Install mcphost (Go binary, no dependencies)
    go install github.com/mark3labs/mcphost@latest
    
    # 3. Configure
    cat > ~/.mcphost.yml  Detailed setup: [Claude Integration Guide](docs/CLAUDE_INTEGRATION.md)
    
    ---
    
    ## Security
    
    This server sits between an LLM and your SIEM. Security is not optional.
    
    | Layer | What It Does |
    |-------|-------------|
    | **RBAC** | Per-tool scope enforcement. 14 active response tools require `wazuh:write`. Read-only tokens can query but never trigger actions. Authless mode is read-only by default. |
    | **Audit Logging** | Every destructive tool call (block IP, isolate host, kill process) is logged with client ID, session, timestamp, and full arguments. |
    | **Output Sanitization** | Credentials, tokens, and API keys in alert `full_log` fields are redacted before reaching the LLM. Prevents credential leakage through AI responses. |
    | **Input Validation** | Every parameter validated: regex agent IDs, `ipaddress` module for IPs, shell metacharacter blocking for active response, Elasticsearch Query DSL (no string interpolation). |
    | **Rate Limiting** | Per-client sliding window with escalating block duration (10s → 5min). |
    | **Circuit Breakers** | Wazuh API failures trigger fail-fast for 60s, auto-recover. Single trial in HALF_OPEN state. |
    | **Log Sanitization** | Global filter redacts passwords, tokens, secrets from all server logs. |
    | **Container Hardening** | Non-root user, read-only filesystem, `CAP_DROP ALL`, `no-new-privileges`. |

    Generate a secure API key

    python -c "import secrets; print('wazuh_' + secrets.token_urlsafe(32))"

    code
    ---
    
    ## Configuration
    
    ### Required
    
    | Variable | Description |
    |----------|-------------|
    | `WAZUH_HOST` | Wazuh Manager hostname or IP |
    | `WAZUH_USER` | API username |
    | `WAZUH_PASS` | API password |
    
    ### Optional
    
    | Variable | Default | Description |
    |----------|---------|-------------|
    | `WAZUH_PORT` | `55000` | Manager API port |
    | `MCP_HOST` | `0.0.0.0` | Server bind address |
    | `MCP_PORT` | `3000` | Server port |
    | `AUTH_MODE` | `bearer` | `oauth`, `bearer`, or `none` |
    | `AUTH_SECRET_KEY` | auto-generated | JWT signing key |
    | `AUTHLESS_ALLOW_WRITE` | `false` | Allow active response in authless mode |
    | `ALLOWED_ORIGINS` | `https://claude.ai` | CORS origins (comma-separated) |
    | `REDIS_URL` | — | Redis URL for multi-instance session storage |
    
    ### Wazuh Indexer (for alert search + vulnerabilities)
    
    | Variable | Default | Description |
    |----------|---------|-------------|
    | `WAZUH_INDEXER_HOST` | — | Indexer hostname |
    | `WAZUH_INDEXER_PORT` | `9200` | Indexer port |
    | `WAZUH_INDEXER_USER` | — | Indexer username |
    | `WAZUH_INDEXER_PASS` | — | Indexer password |
    
    > Full reference: [Configuration Guide](docs/configuration.md)
    
    ---
    
    ## API Endpoints
    
    | Endpoint | Method | Description |
    |----------|--------|-------------|
    | `/mcp` | POST/GET/DELETE | MCP Streamable HTTP (recommended) |
    | `/sse` | GET | Legacy Server-Sent Events |
    | `/health` | GET | Health check (no auth required) |
    | `/metrics` | GET | Prometheus metrics |
    | `/auth/token` | POST | Exchange API key for JWT |
    | `/docs` | GET | OpenAPI documentation |
    
    ---
    
    ## Architecture

    src/wazuh_mcp_server/

    ├── server.py # MCP protocol + 48 tool handlers

    ├── config.py # Environment-based configuration

    ├── auth.py # JWT + API key authentication

    ├── oauth.py # OAuth 2.0 with Dynamic Client Registration

    ├── security.py # Rate limiting, CORS, input validation

    ├── monitoring.py # Prometheus metrics, structured logging

    ├── resilience.py # Circuit breakers, retries, graceful shutdown

    ├── session_store.py # Pluggable sessions (in-memory + Redis)

    └── api/

    ├── wazuh_client.py # Wazuh Manager REST API client

    └── wazuh_indexer.py # Wazuh Indexer (Elasticsearch) client

    code
    ---
    
    ## Take It Further: Autonomous Agentic SOC
    
    Combine this MCP server with [**Wazuh OpenClaw Autopilot**](https://github.com/gensecaihq/Wazuh-Openclaw-Autopilot) to build a fully autonomous Security Operations Center.
    
    While this server gives you conversational access to Wazuh, OpenClaw deploys AI agents that **work around the clock** — triaging alerts, correlating incidents, and recommending responses without human intervention.

    Manual SOC: Alert → Analyst reviews → Hours → Response

    Agentic SOC: Alert → AI triages → Seconds → Response ready for approval

    code
    [**Explore OpenClaw Autopilot**](https://github.com/gensecaihq/Wazuh-Openclaw-Autopilot)
    
    ---
    
    ## Documentation
    
    | Guide | Description |
    |-------|-------------|
    | [Claude Integration](docs/CLAUDE_INTEGRATION.md) | Claude Desktop setup and authentication |
    | [Configuration](docs/configuration.md) | Full configuration reference |
    | [Advanced Features](docs/ADVANCED_FEATURES.md) | HA, serverless, compact mode |
    | [API Documentation](docs/api/) | Per-tool documentation |
    | [Security](docs/security/) | Security hardening guide |
    | [Troubleshooting](docs/TROUBLESHOOTING.md) | Common issues and solutions |
    | [Operations](docs/OPERATIONS.md) | Deployment, monitoring, maintenance |
    
    ---
    
    ## Contributing
    
    We welcome contributions. See [Issues](https://github.com/gensecaihq/Wazuh-MCP-Server/issues) for bugs and feature requests, [Discussions](https://github.com/gensecaihq/Wazuh-MCP-Server/discussions) for questions.
    
    ---
    
    ## License
    
    [MIT](LICENSE)
    
    ---
    
    ## Acknowledgments
    
    - [Wazuh](https://wazuh.com/) — Open source security platform
    - [Model Context Protocol](https://modelcontextprotocol.io/) — AI tool integration standard
    - [Ollama](https://ollama.com/) — Local LLM inference
    - [Open WebUI](https://github.com/open-webui/open-webui) — Self-hosted AI chat interface
    - [mcphost](https://github.com/mark3labs/mcphost) — MCP CLI host with LLM support
    
    ---
    
    Contributors
    
    ### Contributors
    
    | Avatar | Username | Contributions |
    |--------|----------|---------------|
    |  | [@alokemajumder](https://github.com/alokemajumder) | Code, Issues, Discussions |
    |  | [@gensecai-dev](https://github.com/gensecai-dev) | Code, Discussions |
    |  | [@aiunmukto](https://github.com/aiunmukto) | Code, PRs |
    |  | [@Karibusan](https://github.com/Karibusan) | Code, Issues, PRs |
    |  | [@lwsinclair](https://github.com/lwsinclair) | Code, PRs |
    |  | [@taylorwalton](https://github.com/taylorwalton) | PRs |
    |  | [@MilkyWay88](https://github.com/MilkyWay88) | PRs |
    |  | [@kanylbullen](https://github.com/kanylbullen) | Code, PRs |
    |  | [@Uberkarhu](https://github.com/Uberkarhu) | Issues |
    |  | [@cbassonbgroup](https://github.com/cbassonbgroup) | Issues |
    |  | [@cybersentinel-06](https://github.com/cybersentinel-06) | Issues |
    |  | [@daod-arshad](https://github.com/daod-arshad) | Issues |
    |  | [@mamema](https://github.com/mamema) | Issues |
    |  | [@marcolinux46](https://github.com/marcolinux46) | Issues |
    |  | [@matveevandrey](https://github.com/matveevandrey) | Issues |
    |  | [@punkpeye](https://github.com/punkpeye) | Issues |
    |  | [@tonyliu9189](https://github.com/tonyliu9189) | Issues |
    |  | [@Vasanth120v](https://github.com/Vasanth120v) | Discussions |
    |  | [@gnix45](https://github.com/gnix45) | Discussions |
    |  | [@melmasry1987](https://github.com/melmasry1987) | Discussions |
    
    > Auto-updated by [GitHub Actions](.github/workflows/update-contributors.yml)

    Similar MCP

    Based on tags & features

    • SE

      Serena

      Python·
      14.5k
    • BI

      Biomcp

      Python·
      327
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • AW

      Aws Mcp Server

      Python·
      165

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • SE

      Serena

      Python·
      14.5k
    • BI

      Biomcp

      Python·
      327
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • AW

      Aws Mcp Server

      Python·
      165

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k