Retrieves security alerts from Elasticsearch indices containing Wazuh data, transforming them into standardized MCP messages.
Uses Flask to expose an HTTP endpoint for serving transformed security event data to clients.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Wazuh MCP Servershow me recent critical security alerts from the last hour"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Wazuh MCP Server
Production-ready MCP server connecting AI assistants to Wazuh SIEM.
Version 4.1.1 | Wazuh 4.8.0 - 4.14.3 | Full Changelog
Why This MCP Server?
Security teams using Wazuh SIEM generate thousands of alerts, vulnerabilities, and events daily. Analyzing this data requires constant context-switching between dashboards, writing API queries, and manually correlating information.
This MCP server solves that problem by providing a secure bridge between AI assistants (like Claude) and your Wazuh deployment. Query alerts, analyze threats, check agent health, and generate compliance reports—all through natural conversation.
You: "Show me critical alerts from the last 24 hours"
Claude: [Uses get_wazuh_alerts tool] Found 12 critical alerts...
You: "Which agents have unpatched critical vulnerabilities?"
Claude: [Uses get_wazuh_critical_vulnerabilities tool] 3 agents affected...Related MCP server: OpenSearch MCP Server
Take It Further: Autonomous Agentic SOC
Ready to move beyond manual security operations?
Combine this MCP server with Wazuh OpenClaw Autopilot to build a fully autonomous Security Operations Center powered by AI agents.
While this MCP server gives you conversational access to Wazuh, OpenClaw takes it to the next level—deploying AI agents that work around the clock to triage alerts, correlate incidents, and recommend responses without human intervention.
Capability | What It Does |
Autonomous Alert Triage | AI agents continuously analyze incoming alerts, prioritize threats, and create structured incident cases |
Intelligent Correlation | Automatically groups related alerts into attack timelines with blast radius assessment |
AI-Powered Response Planning | Generates actionable response recommendations with risk scoring |
Human-in-the-Loop Safety | Critical actions require Slack approval—automation with guardrails |
Traditional SOC: Alert → Analyst reviews → Hours later → Response
Agentic SOC: Alert → AI triages → Seconds later → Response ready for approvalThis is the future of security operations. Start with the MCP server, scale to autonomous agents.
Features
Category | Capabilities |
MCP Protocol | 100% compliant with MCP 2025-11-25, Streamable HTTP + Legacy SSE |
Security Tools | 48 specialized tools for alerts, agents, vulnerabilities, compliance, active response |
Authentication | OAuth 2.0 with DCR, Bearer tokens (JWT), or authless mode |
Production Ready | Circuit breakers, rate limiting, security & monitoring middleware, Prometheus metrics |
Deployment | Docker containerized, multi-platform (AMD64/ARM64), serverless-ready |
Token Efficiency | Compact output mode reduces responses by ~66% |
48 Security Tools
Category | Tools |
Alerts (3) |
|
Agents (6) |
|
Vulnerabilities (3) |
|
Security Analysis (7) |
|
System (10) |
|
Active Response (9) |
|
Verification (5) |
|
Rollback (5) |
|
Quick Start
Prerequisites
Docker 20.10+ with Compose v2.20+
Wazuh 4.8.0 - 4.14.3 with API access
1. Clone and Configure
git clone https://github.com/gensecaihq/Wazuh-MCP-Server.git
cd Wazuh-MCP-Server
cp .env.example .envEdit .env with your Wazuh credentials:
WAZUH_HOST=https://your-wazuh-server.com
WAZUH_USER=your-api-user
WAZUH_PASS=your-api-password2. Deploy
python deploy.py
# Or: docker compose up -d3. Verify
curl http://localhost:3000/health4. Connect Claude Desktop
Go to Settings → Connectors → Add custom connector
Enter:
https://your-server-domain.com/mcpAdd authentication in Advanced settings
Detailed setup: Claude Integration Guide
Configuration
Required Variables
Variable | Description |
| Wazuh server URL |
| API username |
| API password |
Optional Variables
Variable | Default | Description |
|
| API port |
|
| Server bind address |
|
| Server port |
|
|
|
| auto | JWT signing key |
|
| CORS origins |
| - | Redis URL for serverless mode |
Wazuh Indexer (Required for vulnerabilities in 4.8.0+)
Variable | Description |
| Indexer hostname |
| Indexer port (default: 9200) |
| Indexer username |
| Indexer password |
API Endpoints
Endpoint | Description |
| Recommended - Streamable HTTP (MCP 2025-11-25) |
| Legacy SSE endpoint |
| Health check |
| Prometheus metrics |
| OpenAPI documentation |
| Token exchange (bearer mode) |
Documentation
Guide | Description |
Claude Desktop setup, authentication modes | |
HA, serverless, compact mode, MCP compliance | |
Common issues and solutions | |
Deployment, monitoring, maintenance | |
Tool-specific documentation | |
Security configuration and best practices |
Project Structure
src/wazuh_mcp_server/
├── server.py # MCP server with 48 tools (Streamable HTTP + SSE)
├── config.py # Configuration management with validation
├── config_validator.py # Startup configuration validation
├── auth.py # JWT & API key authentication
├── oauth.py # OAuth 2.0 with DCR
├── security.py # Rate limiting, CORS, input validation, security middleware
├── monitoring.py # Prometheus metrics, request tracking middleware
├── resilience.py # Circuit breakers, retries, graceful shutdown
├── session_store.py # Pluggable sessions (in-memory + Redis)
└── api/
├── wazuh_client.py # Wazuh Manager API client
└── wazuh_indexer.py # Wazuh Indexer API client (alerts + vulnerabilities)Security
Authentication: JWT tokens, OAuth 2.0 with DCR, all endpoints protected
Security Middleware: Automatic security headers (X-Content-Type-Options, X-Frame-Options, CSP)
Rate Limiting: Per-client request throttling
Input Validation: Comprehensive parameter validation with SQL injection and XSS protection
Container Security: Non-root user, read-only filesystem
# Generate secure API key
openssl rand -hex 32
# Set file permissions
chmod 600 .envContributing
We welcome contributions! Please see:
Issues - Bug reports and feature requests
Discussions - Questions and ideas
License
MIT License - see LICENSE
Acknowledgments
Wazuh - Open source security platform
Model Context Protocol - AI integration standard
FastAPI - Python web framework
Contributors
Avatar | Username | Contributions |
Code, Issues, Discussions | ||
Code, Discussions | ||
Code, PRs | ||
Code, Issues, PRs | ||
Code, PRs | ||
PRs | ||
PRs | ||
Code, PRs | ||
Issues | ||
Issues | ||
Issues | ||
Issues | ||
Issues | ||
Issues | ||
Issues | ||
Issues | ||
Issues | ||
Discussions | ||
Discussions | ||
Discussions |
Auto-updated by GitHub Actions
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.