
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server for Nmap that parses nmap XML output into structured JSON and offers 35 specialized tools plus scan history, diffing, and security guardrails.
NmapMCP — an Nmap MCP server with structured output is cataloged as an MCP server attributed to 0xpratikpatil. An MCP server for Nmap that parses nmap XML output into structured JSON and offers 35 specialized tools plus scan history, diffing, and security guardrails. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for NmapMCP — an Nmap MCP server with structured output are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It parses nmap XML into structured JSON, offers 35 purpose-built tools instead of one generic scan tool, and adds safety guardrails and scan history.
Public IPs are blocked by default; scanning them requires explicitly setting NMAP_ALLOW_PUBLIC=1.
No; scan history is in-memory only and does not persist across restarts.
README.md · 0971a5221d6f · 采集于 2026-11-13 12:10:43 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A production-grade Nmap MCP (Model Context Protocol) server — not a thin wrapper.
Most Nmap MCP servers pipe nmap output straight to an AI as raw text and call it done. NmapMCP parses nmap's XML output into structured JSON, ships 35 purpose-built tools instead of one generic nmap_scan, and adds the safety rails a tool that runs arbitrary network scans actually needs.
⚠️ Educational use only. Only scan hosts and networks you own or are explicitly authorized to test. See Responsible Use below.
Structured output, not raw text. nmap's XML output is fully parsed into clean JSON — OS fingerprints, MAC vendor lookups, CPE strings, per-port NSE script results, traceroute hops, uptime — so an AI assistant can reason over fields instead of regex-ing a wall of stdout.
35 specialized tools, not one generic scan.
Instead of forcing the AI to remember correct NSE script names and flag combos, there's a purpose-built tool per use case: ssl_scan, smb_vuln_scan, database_scan, dns_enum, rdp_scan, ftp_scan, ssh_audit, and more — each pre-configured with the right scripts and flags.
Scan history and diffing.
list_scan_history, get_scan_result, and diff_scans let you run a scan, run it again later, and ask "what changed?" — producing a structured diff of ports that opened, closed, or changed version. Most Nmap MCP servers don't track history at all.
Security guardrails baked in.
NMAP_ALLOW_PUBLIC=1Two-phase network inventory.
network_inventory runs a ping sweep first, then only runs service detection against hosts that responded — far more efficient than blindly throwing a service scan at an entire /24.
Human-readable summaries.
get_host_summary returns a formatted text report (hostname, OS guess, open ports, script highlights, traceroute) designed to be read directly by a person, not just parsed by a model.
| Category | Tools |
|---|---|
| General scanning | nmap_scan, structured_scan, quick_scan, top_ports_scan, full_port_scan, check_single_port |
| Host discovery | ping_sweep, arp_scan, network_inventory |
| Scan techniques | syn_stealth_scan, udp_scan, ipv6_scan |
| Service / OS | service_scan, os_detection, aggressive_scan, banner_grab |
| Vulnerability | vuln_scan, safe_vuln_scan, smb_vuln_scan |
| Protocol audits | ssl_scan, http_enum, dns_enum, smb_enum, ftp_scan, ssh_audit, rdp_scan, database_scan |
| Network analysis | firewall_detection, traceroute_scan |
| Scripting | script_scan (run any NSE script/category by name) |
| History & reporting | list_scan, list_scan_history, get_scan_result, diff_scans, get_host_summary |
Example prompts once connected to Claude:
run a quick_scan on 192.168.1.100
get_host_summary on 192.168.1.1
run a vuln_scan on 192.168.1.50
network_inventory of 192.168.1.0/24
diff_scans between scan_id_a and scan_id_b
| Requirement | Version | Notes |
|---|---|---|
| Python | 3.13+ | |
| Nmap | 7.9+ | The actual scanner binary |
| uv | Latest | Python package manager |
| Claude Desktop | Latest | Or any MCP-compatible client |
Download from python.org. On Windows, check "Add Python to PATH" during install. Verify:
python --version
Download from nmap.org. Keep Npcap checked during install (Windows). Verify:
nmap --version
pip install uv
git clone https://github.com/<your-username>/NmapMCP.git
cd NmapMCP
By default the server looks for Nmap via the NMAP_PATH environment variable (falls back to a Windows default). Set it to your actual nmap path — on macOS/Linux this is usually just nmap or /usr/bin/nmap; on Windows it needs the 8.3 short path with forward slashes, e.g. C:/PROGRA~1/Nmap/nmap.exe (find yours with where nmap, then convert to short path if it contains spaces).
Set it as an environment variable rather than editing the source:
export NMAP_PATH=/usr/bin/nmap # macOS/Linux
set NMAP_PATH=C:/PROGRA~1/Nmap/nmap.exe # Windows
uv venv
uv pip install -e .
Add to your Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"NmapMCP": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/NmapMCP", "run", "main.py"]
}
}
}
Restart Claude Desktop and look for the tools icon to confirm it loaded.
A Dockerfile is included for containerized deployment; see it for details.
This project is published for educational and authorized-testing purposes only. Network scanning tools like Nmap can be misused to probe systems without authorization, which is illegal in most jurisdictions.
NMAP_ALLOW_PUBLIC=1 required to override) — leave this off unless you specifically need it and have authorization"nmap not found" — Confirm nmap --version works in your terminal, and that NMAP_PATH points to the correct binary.
"0 hosts up" on everything (Windows) — Usually a Npcap permissions issue. Use quick_scan or get_host_summary (TCP-connect based, no admin needed) instead of ping_sweep/arp_scan, or run your terminal/Claude Desktop as Administrator.
Tools icon doesn't appear in Claude Desktop — Validate your config JSON, confirm the path is correct and absolute, then fully quit and reopen Claude Desktop.
Some scans need elevated privileges — syn_stealth_scan, udp_scan, arp_scan, and os_detection typically require admin/root.
Being transparent about where this stands:
main.py) — works well, but a future split into runner/parser/validator/tools modules would improve maintainabilityMIT — see LICENSE.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for NmapMCP — an Nmap MCP server with structured output from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/nmapmcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.