ProjectDiscovery MCP Server

ProjectDiscovery MCP Server

Integrates ProjectDiscovery security tools to perform automated reconnaissance, subdomain discovery, and vulnerability scanning. It enables comprehensive bug hunting workflows by chaining tools like subfinder, naabu, and nuclei into a unified pipeline.

Category
访问服务器

README

ProjectDiscovery MCP Server

A Model Context Protocol (MCP) server that integrates ProjectDiscovery security tools for automated bug bounty reconnaissance and vulnerability scanning.

Features

This MCP server provides comprehensive security reconnaissance capabilities:

Individual Tools

  • subfinder - Subdomain discovery using passive sources
  • dnsx - DNS resolution and probing
  • naabu - Fast port scanning
  • httpx - HTTP/HTTPS probing and analysis
  • katana - Web crawling and endpoint discovery
  • nuclei - Vulnerability scanning with YAML templates

Automated Workflow

  • Bug Hunting workflow - End-to-end reconnaissance pipeline that chains all tools together

Workflow Diagram

                    Target Domain
                          │
                          ▼
        ┌─────────────────────────────────────────────┐
        │  Step 1: Subdomain Discovery (subfinder)    │
        │  Find all subdomains via passive sources    │
        └──────────────────┬──────────────────────────┘
                           │
                           ▼
        ┌─────────────────────────────────────────────┐
        │  Step 2: DNS Resolution (dnsx)              │
        │  Resolve domains to IP addresses            │
        └──────────────────┬──────────────────────────┘
                           │
                           ▼
        ┌─────────────────────────────────────────────┐
        │  Step 3: Port Scanning (naabu) [OPTIONAL]   │
        │  Scan top ports on resolved hosts           │
        └──────────────────┬──────────────────────────┘
                           │
                           ▼
        ┌─────────────────────────────────────────────┐
        │  Step 4: HTTP Probing (httpx)               │
        │  Identify live web services                 │
        └──────────────────┬──────────────────────────┘
                           │
                           ▼
        ┌─────────────────────────────────────────────┐
        │  Step 5: Web Crawling (katana) [OPTIONAL]   │
        │  Discover endpoints & paths                 │
        └──────────────────┬──────────────────────────┘
                           │
                           ▼
        ┌─────────────────────────────────────────────┐
        │  Step 6: Vulnerability Scan (nuclei)        │
        │  Test for known vulnerabilities             │
        └──────────────────┬──────────────────────────┘
                           │
                           ▼
                  Comprehensive Report
                  ├─ Attack surface mapping
                  ├─ Open ports & services
                  ├─ Live web applications
                  ├─ Discovered endpoints
                  └─ Security vulnerabilities

Execution Time: ~2 minutes (varies by target size)

Output: JSON report with:

  • Total subdomains, resolved hosts, open ports
  • Live HTTP services with status codes and titles
  • Crawled endpoints and paths
  • Vulnerabilities categorized by severity (critical/high/medium/low)

Prerequisites

Before using this MCP server, you must install the ProjectDiscovery tools:

# Install Go (required)
# On Ubuntu/Debian
sudo apt update
sudo apt install golang-go

# On macOS
brew install go

# Install ProjectDiscovery tools
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
go install -v github.com/projectdiscovery/dnsx/cmd/dnsx@latest
go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
go install -v github.com/projectdiscovery/katana/cmd/katana@latest
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest

# Update Nuclei templates
nuclei -update-templates

# Ensure tools are in PATH
export PATH=$PATH:$(go env GOPATH)/bin

Installation

# Clone the repository
git clone https://github.com/intelligent-ears/pd-tools-mcp
cd pd-tools-mcp

# Install dependencies
npm install

# Build the server
npm run build

Usage

With Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "projectdiscovery": {
      "command": "node",
      "args": ["/absolute/path/to/pdmcp/build/index.js"]
    }
  }
}

With VS Code

Create or update .vscode/mcp.json in your workspace:

{
  "projectdiscovery": {
    "type": "stdio",
    "command": "node",
    "args": ["/absolute/path/to/pdmcp/build/index.js"]
  }
}

Standalone Testing

npm start

Available Tools

1. subfinder

Discover subdomains for a target domain.

Input:

  • domain (string, required): Target domain (e.g., "example.com")
  • silent (boolean, optional): Show only subdomains in output

Example:

{
  "domain": "example.com",
  "silent": true
}

2. dnsx

Resolve DNS records for domains.

Input:

  • domains (array of strings, required): List of domains to resolve
  • recordType (string, optional): DNS record type (A, AAAA, CNAME, etc.)

Example:

{
  "domains": ["example.com", "sub.example.com"],
  "recordType": "A"
}

3. naabu

Scan for open ports on hosts.

Input:

  • hosts (array of strings, required): List of hosts to scan
  • ports (string, optional): Ports to scan (e.g., "80,443" or "1-1000")
  • topPorts (number, optional): Scan top N ports

Example:

{
  "hosts": ["example.com"],
  "topPorts": 100
}

4. httpx

Probe HTTP/HTTPS servers.

Input:

  • urls (array of strings, required): List of URLs or hosts
  • followRedirects (boolean, optional): Follow HTTP redirects
  • screenshot (boolean, optional): Take screenshots

Example:

{
  "urls": ["https://example.com"],
  "followRedirects": true
}

5. katana

Crawl websites and discover endpoints.

Input:

  • urls (array of strings, required): List of URLs to crawl
  • depth (number, optional): Crawl depth (default: 2)
  • scope (string, optional): Crawl scope regex pattern

Example:

{
  "urls": ["https://example.com"],
  "depth": 3
}

6. nuclei

Scan for vulnerabilities using templates.

Input:

  • targets (array of strings, required): List of targets
  • templates (array of strings, optional): Specific templates to use
  • severity (array of strings, optional): Filter by severity (critical, high, medium, low, info)

Example:

{
  "targets": ["https://example.com"],
  "severity": ["critical", "high"]
}

7. Bug hunting workflow

Execute complete automated reconnaissance workflow.

Input:

  • domain (string, required): Target domain
  • portScan (boolean, optional): Include port scanning (default: true)
  • crawl (boolean, optional): Include web crawling (default: true)
  • vulnerabilityScan (boolean, optional): Include vulnerability scanning (default: true)
  • severityFilter (array of strings, optional): Nuclei severity filter

Rate Limiting Options:

  • maxCrawlUrls (number, optional): Maximum URLs to crawl (default: 10)
  • maxScanUrls (number, optional): Maximum URLs to scan with Nuclei (default: 20)
  • maxTopPorts (number, optional): Maximum top ports for Naabu (default: 100)
  • batchSize (number, optional): Batch size for DNS/HTTP requests (default: 50)
  • delayBetweenBatches (number, optional): Delay in milliseconds between batches (default: 1000)
  • crawlDepth (number, optional): Crawl depth for Katana (default: 2)

Example:

{
  "domain": "example.com",
  "portScan": true,
  "crawl": true,
  "vulnerabilityScan": true,
  "severityFilter": ["critical", "high"],
  "maxCrawlUrls": 50,
  "maxScanUrls": 100,
  "maxTopPorts": 200,
  "batchSize": 25,
  "delayBetweenBatches": 2000,
  "crawlDepth": 3
}

Example (Conservative Rate Limiting):

{
  "domain": "example.com",
  "maxCrawlUrls": 5,
  "maxScanUrls": 10,
  "delayBetweenBatches": 5000
}

Workflow Steps:

  1. Subdomain Discovery - Find all subdomains
  2. DNS Resolution - Resolve subdomains to IPs
  3. Port Scanning - Identify open ports (optional)
  4. HTTP Probing - Find live web services
  5. Web Crawling - Discover endpoints (optional)
  6. Vulnerability Scanning - Detect security issues (optional)

Rate Limiting

The bug bounty workflow includes configurable rate limiting to prevent overwhelming target infrastructure and respect responsible disclosure practices.

Rate Limiting Parameters

Parameter Default Description
maxCrawlUrls 10 Maximum number of URLs to crawl with Katana
maxScanUrls 20 Maximum number of URLs to scan with Nuclei
maxTopPorts 100 Maximum number of top ports to scan with Naabu
batchSize 50 Number of items to process in each batch
delayBetweenBatches 1000 Delay in milliseconds between batches
crawlDepth 2 Maximum depth for web crawling

Usage Examples

Aggressive Scan (use responsibly):

{
  "domain": "example.com",
  "maxCrawlUrls": 100,
  "maxScanUrls": 200,
  "maxTopPorts": 1000,
  "batchSize": 100,
  "delayBetweenBatches": 500,
  "crawlDepth": 3
}

Conservative Scan (recommended for production sites):

{
  "domain": "example.com",
  "maxCrawlUrls": 5,
  "maxScanUrls": 10,
  "maxTopPorts": 50,
  "batchSize": 10,
  "delayBetweenBatches": 5000,
  "crawlDepth": 1
}

Stealth Scan (minimal footprint):

{
  "domain": "example.com",
  "maxCrawlUrls": 3,
  "maxScanUrls": 5,
  "maxTopPorts": 20,
  "batchSize": 5,
  "delayBetweenBatches": 10000,
  "crawlDepth": 1
}

Best Practices

  • Start Conservative: Begin with lower limits and increase gradually
  • Respect Target Infrastructure: Use appropriate delays to avoid overwhelming servers
  • Bug Bounty Programs: Always follow the program's rules of engagement
  • Production Systems: Use extended delays and lower batch sizes
  • Monitor Logs: Check stderr output for rate limiting status messages

Example Usage

Once configured with an MCP client like Claude Desktop, you can use natural language:

"Use the bug_bounty_workflow tool to scan example.com for vulnerabilities"

"Find all subdomains for hackerone.com using subfinder"

"Scan the top 100 ports on example.com with naabu"

"Crawl https://example.com and find all endpoints with katana"

Development

# Watch mode for development
npm run dev

# Build
npm run build

# Run
npm start

Credits

Built with:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选