The Wazuh MCP Server integrates Wazuh SIEM with Claude Desktop to provide AI-powered security operations. This server acts as a bridge between your Wazuh security platform and Claude's AI capabilities using the STDIO transport method for secure local connections.
# Install the package
pip install wazuh-mcp-server
# Create configuration file
cp .env.example .env
# Edit .env with your Wazuh server details
# Validate configuration
wazuh-mcp-server --check
# Clone the repository
git clone https://github.com/gensecaihq/Wazuh-MCP-Server.git
cd Wazuh-MCP-Server
# Install in development mode
pip install -e .
# Configure environment
cp .env.example .env
# Edit .env with your settings
# Validate setup
wazuh-mcp-server --check
Edit your .env
file with the following details:
# Wazuh Server API Configuration
WAZUH_HOST=your-wazuh-server.com
WAZUH_PORT=55000
WAZUH_USER=your-api-username
WAZUH_PASS=your-secure-password
# Wazuh Indexer Configuration (for 4.8.0+)
WAZUH_INDEXER_HOST=your-wazuh-server.com
WAZUH_INDEXER_PORT=9200
WAZUH_INDEXER_USER=your-indexer-username
WAZUH_INDEXER_PASS=your-indexer-password
# SSL Configuration (Production Ready Defaults)
VERIFY_SSL=true # Enable SSL verification
WAZUH_ALLOW_SELF_SIGNED=true # Allow self-signed certificates
Scenario | Configuration | Use Case |
---|---|---|
Production | VERIFY_SSL=true + WAZUH_ALLOW_SELF_SIGNED=false |
Valid CA certificates |
Self-Signed | VERIFY_SSL=true + WAZUH_ALLOW_SELF_SIGNED=true |
Self-signed certificates |
Development | VERIFY_SSL=false |
HTTP-only or invalid certificates |
Add the following to Claude Desktop configuration file:
%APPDATA%\\Claude\\claude_desktop_config.json
~/.config/claude/claude_desktop_config.json
{
"mcpServers": {
"wazuh": {
"command": "wazuh-mcp-server",
"args": []
}
}
}
Once configured, you can interact with Wazuh through Claude Desktop using natural language:
"Show me all critical security alerts from the last 24 hours"
"What are the top 5 security threats in my environment?"
"Run a PCI-DSS compliance check"
"Generate a weekly security report"
"Check the health of agent web-server-01"
"Show me vulnerability summary for the last week"
# Start the MCP server (default)
wazuh-mcp-server
# Validate configuration and connectivity
wazuh-mcp-server --check
# Show version information
wazuh-mcp-server --version
# Show help information
wazuh-mcp-server --help
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "wazuh" '{"command":"python","args":["-m","wazuh_mcp_server.app"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"wazuh": {
"command": "python",
"args": [
"-m",
"wazuh_mcp_server.app"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"wazuh": {
"command": "python",
"args": [
"-m",
"wazuh_mcp_server.app"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect