基于 MCP(模型控制协议)的安全扫描服务器,为用户提供便捷的漏洞扫描服务,让安全检测变得轻松高效。
MCP 核心服务器是一款基于 MCP 协议开发的安全扫描服务。它允许大型语言模型执行核心安全扫描,支持多种扫描选项和结果输出格式。
git clone https://github.com/crazyMarky/mcp_nuclei_server.git
cd mcp_nuclei_server
curl -LsSf https://astral.sh/uv/install.sh | sh # Linux/Mac
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" # Windows
# 创建并激活虚拟环境
uv venv
source .venv/bin/activate
# 安装 MCP 相关包
uv pip install mcp
{
"mcpServers": {
"nuclei_mcp_server": {
"command": "/path/to/uv", # uv 的路径
"args": [
"--directory",
"/path/to/nuclei_mcp_server/",
"run",
"main.py"
],
"env": {
"NUCLEI_BIN_PATH": "/path/to/nuclei" # 核心二进制文件的路径
}
}
}
}
target
: 目标 URL 或 IP 地址templates
: 特定模板列表(可选)severity
: 漏洞严重性筛选(critical, high, medium, low, info)template_tags
: 模板标签过滤(可选)output_format
: 输出格式(默认: "json")扫描结果以 JSON 格式返回,包含以下字段:
{
"success": true,
"target": "https://example.com",
"time_cost_seconds": 10.5,
"results": [
{
"template": "模板名称",
"severity": "high",
"matched_at": "https://example.com/path",
"info": {
"name": "漏洞名称",
"description": "漏洞描述"
}
}
]
}
欢迎提交问题和 Pull Request!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)本项目在 MIT License 下开源,详情请参阅 LICENSE 文件。
如有任何问题或建议,请通过以下方式联系我们: