Cyreslab-AI
服务介绍
ExploitDB MCP 服务器
一个提供访问ExploitDB功能的模型上下文协议(MCP)服务器,由Cyreslab.ai开发。该服务器使像Claude这样的AI助手能够查询有关安全漏洞利用和脆弱性的信息,从而增强网络安全研究和威胁情报能力。
GitHub仓库: https://github.com/Cyreslab-AI/exploitdb-mcp-server
联系: contact@cyreslab.ai
功能
- 漏洞利用搜索:通过关键词、CVE ID、平台等搜索漏洞利用
- 漏洞利用详情:获取特定漏洞利用的详细信息,包括代码
- CVE查找:查找与特定CVE ID相关的所有漏洞利用
- 最新漏洞利用:跟踪新添加的漏洞利用
- 统计信息:按平台、类型和年份获取漏洞利用分布的见解
- 自动更新:通过计划更新保持数据库最新
安装
前提条件
- Node.js (v16或更高版本)
- npm (v7或更高版本)
安装步骤
-
克隆仓库:
bash
git clone https://github.com/Cyreslab-AI/exploitdb-mcp-server.git
cd exploitdb-mcp-server -
安装依赖项:
bash
npm install -
构建项目:
bash
npm run build -
配置服务器:
- 在根目录下基于
.env.example创建一个.env文件 - 根据需要调整设置(数据目录、更新频率等)
- 在根目录下基于
-
初始化数据库:
bash
npm run update-db -
运行服务器:
bash
node build/index.js
MCP配置
要将此服务器与Claude或其他兼容MCP的助手一起使用,请将其添加到您的MCP配置中:
json
{
"mcpServers": {
"mcp-exploitdb-server": {
"command": "node",
"args": ["/path/to/exploitdb-mcp-server/build/index.js"]
}
}
}
使用方法
搜索漏洞利用
使用search_exploits工具在数据库中搜索漏洞利用:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>search_exploits</tool_name>
{
"query": "wordpress plugin",
"platform": "php",
"limit": 5
}
</use_mcp_tool>
其他搜索参数:
type: 按漏洞利用类型过滤(例如,webapps, remote, local)cve: 按CVE ID过滤author: 按作者名称过滤start_date/end_date: 按日期范围过滤(YYYY-MM-DD)verified: 按验证状态过滤(true/false)offset: 分页用
获取漏洞利用详情
使用get_exploit工具检索特定漏洞利用的详细信息:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>get_exploit</tool_name>
{
"id": 12345,
"include_code": true
}
</use_mcp_tool>
按CVE查找漏洞利用
使用find_by_cve工具查找与特定CVE相关的所有漏洞利用:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>find_by_cve</tool_name>
{
"cve": "CVE-2021-44228",
"limit": 10
}
</use_mcp_tool>
获取最近的漏洞利用
使用get_recent_exploits工具检索最近添加的漏洞利用:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>get_recent_exploits</tool_name>
{
"limit": 10
}
</use_mcp_tool>
获取统计信息
使用get_statistics工具获取关于数据库中漏洞利用的见解:
<use_mcp_tool>
<server_name>mcp-exploitdb-server</server_name>
<tool_name>get_statistics</tool_name>
{}
</use_mcp_tool>
配置选项
服务器可以通过环境变量或.env文件进行配置:
| 变量 | 描述 | 默认值 || ------------------ | --------------------------------------------- | ----------------------------------------------------------------------------- |
| CLONE_REPOSITORY | 是否克隆ExploitDB仓库 | false |
| REPOSITORY_URL | ExploitDB仓库的URL | https://gitlab.com/exploit-database/exploitdb.git |
| CSV_URL | ExploitDB CSV文件的URL | https://gitlab.com/exploit-database/exploitdb/-/raw/main/files_exploits.csv |
| DATA_DIR | 存储数据的目录 | ./data |
| DB_PATH | SQLite数据库的路径 | ./data/exploitdb.sqlite |
| UPDATE_INTERVAL | 更新频率(小时),0表示禁用 | 24 |
| MAX_RESULTS | 每次查询返回的最大结果数 | 10 |
数据来源
本服务器使用由Offensive Security维护的Exploit Database的数据。数据要么直接从CSV文件下载,要么从ExploitDB GitLab仓库克隆。
许可证
本项目采用MIT许可证 - 详情请参见LICENSE文件。
致谢
- Offensive Security 维护Exploit Database
- Model Context Protocol 使AI助手能够访问外部工具
贡献
欢迎贡献!请随时提交Pull Request。
有功能建议或发现错误?请在我们的GitHub仓库上打开一个issue,或者直接通过contact@cyreslab.ai联系我们。