nmap-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NMAP_TIMEOUT | No | Hard kill, seconds, per scan. | 600 |
| NMAP_MAX_HOSTS | No | Max addresses per scan. | 256 |
| NMAP_HISTORY_DB | No | SQLite history file (mount a volume over it). | /data/history.db |
| NMAP_MAX_TIMING | No | Highest allowed -T (never above 4). | 4 |
| NMAP_DENY_TARGETS | No | CIDRs/IPs carved out of the allowlist. | |
| NMAP_MAX_PARALLEL | No | Concurrent scans. | 2 |
| NMAP_ALLOWED_TARGETS | Yes | Comma-separated CIDRs/IPs you're authorized to scan. Empty by default; every scan tool refuses until set. | |
| NMAP_ALLOW_INTRUSIVE | No | 1 enables vuln/intrusive scripts, only in vuln_scan. | 0 |
| NMAP_MAX_OUTPUT_CHARS | No | Truncate tool output beyond this. | 20000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_scopeA | Show the configured scan scope, limits, and whether intrusive scripts are enabled. |
| discover_hostsA | Ping-sweep a target (IP, CIDR, or hostname) to find live hosts without port scanning. |
| quick_scanB | Scan the N most common TCP ports (default 100, max 1000) on a target. |
| port_scanC | Scan specific TCP/UDP ports on a target; scan_type is one of syn, connect, udp. |
| service_scanB | Detect service names/versions on open ports (intensity 0-9, higher is slower but more accurate). |
| os_detectB | Guess the target's operating system using TCP/IP stack fingerprinting. |
| script_scanC | Run allowlisted NSE scripts or categories (comma-separated) against a target. |
| network_inventoryB | Sweep a target for live hosts, then run a quick service scan on just the hosts that respond. |
| host_summaryC | Produce a readable report for a target: OS guess, open ports, versions, default script findings. |
| ssl_auditC | Check TLS/SSL configuration (certificate, cipher suites, clock skew) on a target. |
| http_auditC | Check HTTP title, headers, server banner, allowed methods, and robots.txt on a target. |
| ssh_auditC | Check SSH algorithm support and host key fingerprints on a target. |
| smb_auditC | Check SMB protocol versions and security mode settings on a target. |
| rdp_auditC | Check RDP encryption level and NTLM identity info exposed by a target. |
| dns_auditB | Check whether a target's DNS service allows open recursion and expose its NSID. |
| database_auditB | Check for exposed MySQL, MSSQL, MongoDB, and Redis instances on a target (no brute force). |
| vuln_scanB | Run vulnerability-detection scripts: safe-tagged only, or full vuln category if NMAP_ALLOW_INTRUSIVE=1. |
| list_scansA | List recent scans, optionally filtered by target, newest first. |
| get_scanA | Retrieve the full stored result for a previously run scan by its id. |
| diff_scansA | Diff two previously run scans by id: hosts up/down, port and OS changes. |
| diff_latestA | Diff the two most recent scans of the same target and tool. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 21 tools
The core nmap primitives (discover_hosts, quick_scan, port_scan, service_scan, os_detect, script_scan) each target a distinct scanning stage, and the *_audit family clearly owns protocol-specific checks. Minor overlap exists: quick_scan is a port_scan subset, host_summary/network_inventory are aggregations of other tools, and diff_scans vs diff_latest differ only by argument source, but descriptions make the intended choice clear.
Everything is snake_case and follows recognizable families: verb_noun prefixes (get_scope, list_scans, get_scan, diff_scans) plus consistent suffix conventions (<thing>_scan and <protocol>_audit). There are a few noun-first outliers (os_detect, host_summary, network_inventory), but they remain readable and predictable.
21 tools sits at the upper edge of comfortable, but nmap's surface genuinely spans discovery, port/service/OS scanning, NSE scripting, vulnerability checks, seven protocol audits, and scan history. Nothing looks redundant enough to cut except possibly merging the two diff tools.
Coverage is strong end-to-end: discovery, port scanning (TCP/UDP), service/OS detection, scripted and vulnerability scanning, protocol audits, plus persistence via list_scans/get_scan and change tracking via diffs. Gaps are modest — no scan cancellation/progress polling for long runs, no traceroute or NSE script discovery, and no output export beyond stored results.