MCP Subfinder Server

MCP Subfinder Server

site icon
2025.03.31 0
Go子域名枚举安全研究渗透测试开发效率
MCP Subfinder Server 是一个基于 Model Context Protocol (MCP) 的服务,它封装了 ProjectDiscovery 的 subfinder 工具,通过 JSON-RPC API 提供强大的子域名枚举功能。该服务支持递归子域名发现、源过滤、可配置的超时和线程设置,以及详细的日志记录,适用于安全研究人员、渗透测试人员和开发人员。
View on GitHub

Overview

基本能力

产品定位

MCP Subfinder Server 是一个专门用于子域名枚举的服务,通过 JSON-RPC API 提供高效、可配置的子域名发现功能。

核心功能

  • JSON-RPC API 用于枚举给定域名的子域名
  • 支持递归子域名发现
  • 源过滤功能
  • 可配置的超时和线程设置
  • 详细的日志记录用于故障排除

适用场景

  • 安全研究人员进行漏洞评估
  • 渗透测试人员进行信息收集
  • 开发人员需要自动化子域名枚举

工具列表

  • enumerateSubdomains: 枚举指定域名的子域名
  • initialize: 初始化连接
  • tools.list: 列出可用工具

常见问题解答

  • 如何配置 API 密钥? 将 API 密钥添加到 provider-config.yaml 文件中。
  • 如何自定义端口? 使用 PORT=9090 make run 命令运行服务器。

使用教程

使用依赖

  • Go 1.24+
  • ProjectDiscovery 的 subfinder 工具

安装教程

# Clone the repository
git clone https://github.com/copyleftdev/mcp-subfinder-server.git
cd mcp-subfinder-server

# Build the server using the Makefile
make build

调试方式

# Run the server on the default port (8080)
make run

# Run tests
make test

# Run with test coverage
make coverage

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。