We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gensecaihq/Wazuh-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
#!/usr/bin/env python3
"""
Wazuh MCP Server - Main Entry Point
MCP-compliant remote server for Wazuh SIEM integration
"""
import sys
import os
import asyncio
import uvicorn
from pathlib import Path
# Add the src directory to Python path
sys.path.insert(0, str(Path(__file__).parent.parent))
def main():
"""Main entry point for the Wazuh MCP Server."""
try:
from wazuh_mcp_server.server import app
# Get configuration from environment
host = os.getenv('MCP_HOST', '0.0.0.0')
port = int(os.getenv('MCP_PORT', '3000'))
log_level = os.getenv('LOG_LEVEL', 'info').lower()
print(f"π Starting Wazuh MCP Server v4.0.0")
print(f"π‘ Server: http://{host}:{port}")
print(f"π Health: http://{host}:{port}/health")
print(f"π Metrics: http://{host}:{port}/metrics")
print(f"π Docs: http://{host}:{port}/docs")
# Run the server
uvicorn.run(
app,
host=host,
port=port,
log_level=log_level,
access_log=True,
server_header=False,
date_header=False
)
except ImportError as e:
print(f"β Import error: {e}")
print("π‘ Make sure all dependencies are installed: pip install -r requirements.txt")
sys.exit(1)
except Exception as e:
print(f"β Server error: {e}")
sys.exit(1)
if __name__ == "__main__":
main()