返回市场
MCP核子服务器

MCP核子服务器

作者:crazyMarky18 星标更新:2025-08-24

项目介绍

【技术文档摘要】: MseeP.ai 安全评估徽章

MCP Nuclei 服务器

Python 版本 许可证 星星 中文文档

基于MCP(模型控制协议)的安全扫描服务器,提供便捷的漏洞扫描服务。

项目介绍

MCP Nuclei 服务器是一个基于MCP协议开发的Nuclei安全扫描服务。它允许大型语言模型执行Nuclei安全扫描,支持各种扫描选项和结果输出格式。

关键特性:

  • 支持Nuclei安全扫描
  • 可配置的模板和标签过滤
  • 基于严重程度的漏洞过滤
  • JSON格式输出结果
  • 易于集成的MCP服务

安装指南

预备条件

  • Python 3.8或更高版本
  • 已安装并配置好的Nuclei二进制文件

安装步骤

  1. 克隆仓库:
git clone https://github.com/crazyMarky/mcp_nuclei_server.git
cd mcp_nuclei_server
  1. 安装UV并激活环境:
curl -LsSf https://astral.sh/uv/install.sh | sh # Linux/Mac
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"  # Windows
  1. 安装依赖项:
# 创建并激活虚拟环境
uv venv
source .venv/bin/activate
# 安装mcp相关包
uv pip install mcp

使用指南

MCP配置(示例用于CLINE)

  1. 引用MCP JSON配置:
{
  "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": "template-name",
            "severity": "high",
            "matched_at": "https://example.com/path",
            "info": {
                "name": "漏洞名称",
                "description": "漏洞描述"
            }
        }
    ]
}

贡献

欢迎提交问题和拉取请求!

  1. 分叉项目
  2. 创建你的功能分支 (git checkout -b feature/AmazingFeature)
  3. 提交更改 (git commit -m '添加一些AmazingFeature')
  4. 推送到分支 (git push origin feature/AmazingFeature)
  5. 打开一个拉取请求

许可证

该项目采用MIT许可证 - 查看LICENSE文件获取详情

联系方式

如有任何问题或建议,请通过以下方式联系我们:

  • 提交一个问题