Wazuh MCP 服务器
一个生产级的开源 MCP 服务器,用于将 Wazuh 安全数据与 LLM(例如 Claude 桌面应用程序)集成。该服务使用 Wazuh RESTful API 进行身份验证,从 Elasticsearch 索引中检索警报,将事件转换为符合 MCP 标准的 JSON 格式,并为 Claude 桌面公开一个 HTTP 端点以获取实时安全上下文。
特征
- **基于 JWT 的身份验证:**使用 JWT 令牌通过 Wazuh 进行安全身份验证。
- **警报检索:**查询 Elasticsearch 索引以获取 Wazuh 警报数据。
- **MCP 消息转换:**将安全事件转换为标准化的 MCP 消息。
- **Flask HTTP 服务器:**为 Claude Desktop 集成公开一个
/mcp
端点。 - **强大的错误处理:**处理令牌过期、网络超时和格式错误的数据。
- **可配置:**通过环境变量轻松配置并通过其配置文件与 Claude Desktop 集成。
先决条件
- Python 3.8+
- 访问 Wazuh API 实例。
- (可选)配置 Claude Desktop 来调用 MCP 服务器。
安装
- 克隆存储库:
创建并激活虚拟环境:
安装依赖项:
配置设置以下环境变量来配置 MCP 服务器:
示例(MacOS):
运行服务器使用以下命令启动 MCP 服务器:
服务器将监听指定端口的所有接口
与 Claude Desktop 集成 要与 Claude Desktop 集成,请更新其配置文件:
MacOS:~/Library/Application Support/Claude/claude_desktop_config.json Windows:%APPDATA%/Claude/claude_desktop_config.json 在 mcpServers 下添加以下条目:
许可证 该项目根据 MIT 许可证进行授权。
欢迎贡献代码!请提交 issue 或 PR,以改进代码或修复 bug。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
通过从 Elasticsearch 索引中检索警报并将其转换为符合 MCP 的格式,将 Wazuh 安全数据与 LLM(例如 Claude Desktop)安全地集成,从而在 LLM 应用程序中实现实时安全上下文。
Related MCP Servers
- AsecurityAlicenseAqualityA secure MCP server for executing whitelisted shell commands with resource and timeout controls, designed for integration with Claude and other MCP-compatible LLMs.Last updated -201432TypeScriptMIT License
- -securityFlicense-qualityA secure server that allows LLM applications like Claude to execute whitelisted system commands with user confirmation and comprehensive security features.Last updated -Python
- -securityFlicense-qualityA Model Context Protocol server that enables querying and analyzing Wazuh security logs stored in OpenSearch, with features for searching alerts, getting detailed information, generating statistics, and visualizing trends.Last updated -JavaScript
Elasticsearch MCP Serverofficial
AsecurityAlicenseAqualityConnects Claude and other MCP clients to Elasticsearch data, allowing users to interact with their Elasticsearch indices through natural language conversations.Last updated -3991260JavaScriptApache 2.0