An MCP server that provides network scanning capabilities using Nmap, with vulnerability detection, service identification, and OS detection. Integrates with MySQL for scan history and DeepSeek API for LLM-based analysis.
Nmap MCP server has significant definition quality gaps. All 9 tools have descriptions (positive), but they are generic and lack LLM-optimized guidance on WHEN to use each tool vs. alternatives. Input schemas are present but minimal, only 'target' (string) for 6 scanning tools, with no enums, ranges, or validation hints. Parameter descriptions are trivial ('The target IP address or hostname to scan'). No output schemas documented anywhere. Error handling is absent, no recovery guidance, no categorization of retryable vs. fatal errors. Tools like 'get_scan_history' and 'get_scan_details' lack pagination parameters despite returning potentially large result sets. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite all tools being READ_ONLY. Composition is weak: 6 nearly-identical scanning tools (basic, aggressive, stealth, vulnerability, service, os_detection) differ only in nmap flags, LLMs will struggle to pick the right one without clearer differentiation. The 'analyze_vulnerabilities' tool requires three parameters (target, scan_type, scan_time) but no guidance on how to obtain scan_time from prior calls.
Performs an aggressive Nmap scan with OS detection, version detection, script scanning, and traceroute
Analyzes vulnerabilities from a scan using DeepSeek LLM to provide detailed insights and remediation recommendations
Performs a basic Nmap scan on the target to identify open ports and services
Retrieves detailed information about a specific scan including parsed data, vulnerabilities, and LLM analysis
Retrieves the history of all scans performed, including target, scan type, and scan time
Performs OS detection scan to identify the operating system running on the target
Six nearly-identical scanning tools (basic_scan, aggressive_scan, stealth_scan, vulnerability_scan, service_scan, os_detection_scan) lack clear differentiation. Descriptions do not explain WHEN to use each vs. alternatives, forcing LLMs to guess based on nmap flags alone. No enums or constraints guide selection.
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields (e.g., scan_time from get_scan_history to pass to get_scan_details). Responses are unstructured.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 40 | <=2025-11-25 | v2 |
Performs a service version detection scan to identify services and their versions running on open ports
Performs a stealth Nmap scan using SYN scan technique to avoid detection
Performs a vulnerability scan using Nmap NSE scripts including vulners and vulscan databases to identify known vulnerabilities
Parameter descriptions are trivial (e.g., 'The target IP address or hostname to scan'). No guidance on format (IPv4, IPv6, CIDR, hostname), validation rules, or examples. Descriptions under 20 chars for most params.
No error handling or recovery guidance. Code logs errors but tools do not return actionable error messages. LLMs cannot distinguish retryable failures (network timeout) from user-fixable ones (invalid target).
get_scan_history and get_scan_details lack pagination (limit, offset, page_size). No total count or next_cursor returned. Large result sets will blow context window.