Back to Home
gensecaihq icon

Wazuh-MCP-Server

Verified Safe

by gensecaihq

Overview

Provides an MCP-compliant remote server for seamless integration between AI assistants (like Claude Desktop) and the Wazuh SIEM platform, enabling natural language security operations.

Installation

Run Command
python3 deploy.py

Environment Variables

  • WAZUH_HOST
  • WAZUH_USER
  • WAZUH_PASS
  • WAZUH_PORT
  • MCP_HOST
  • MCP_PORT
  • AUTH_SECRET_KEY
  • AUTH_MODE
  • ALLOWED_ORIGINS
  • LOG_LEVEL
  • WAZUH_VERIFY_SSL
  • WAZUH_ALLOW_SELF_SIGNED
  • WAZUH_INDEXER_HOST
  • WAZUH_INDEXER_PORT
  • WAZUH_INDEXER_USER
  • WAZUH_INDEXER_PASS
  • REDIS_URL
  • SESSION_TTL_SECONDS

Security Notes

The project demonstrates excellent security architecture and hardening. Key strengths include hardened Docker container configurations (non-root user, dropped capabilities, read-only filesystem), robust authentication mechanisms (JWT, OAuth 2.0 with PKCE, HMAC for API keys to prevent timing attacks), comprehensive input validation to mitigate injection attacks (SQLi, XSS, path traversal), and network security measures (strict CORS, origin validation, rate limiting, configurable SSL verification). Resilience patterns like circuit breakers, retries, and graceful shutdown are implemented for stability. The configuration validation is extensive, with checks for password strength, host validity, and file permissions. A minor area for improvement is the default in-memory storage for OAuth clients and tokens in `oauth.py` and `auth.py`, which could limit horizontal scalability for these features without external state management. Additionally, the security overview in `docs/security/README.md` contains an outdated reference to 'STDIO-only transport' which is misleading for this remote HTTP/SSE server.

Similar Servers

Stats

Interest Score51
Security Score9
Cost ClassHigh
Avg Tokens5000
Stars93
Forks28
Last Update2025-12-12

Tags

WazuhSIEMMCPSecurityFastAPIDockerOAuth