NmapSAFE
A Model Context Protocol (MCP) server that enables AI assistants to perform network scanning operations using NMAP
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
DO NOT USE THIS UNLESS YOU ARE WILLING TO EXPOSE YOURSELF TO POSSIBLE VULNRABILITIES DUE TO PROMPT INJECTION. THIS REPOSITORY IS NOT BEING ACTIVELY WORKED UPON
A Model Context Protocol (MCP) server that enables AI assistants to perform network scanning operations using NMAP. This server provides a standardized interface for AI models to interact with NMAP, making it possible to perform network analysis and security assessments through AI conversations.
Prerequisites
- Windows operating system
- Node.js (v18 or higher)
- NMAP installed and accessible from Windows command line
- TypeScript for development
Installation
Install the package globally using npm:
npm install -g mcp-nmap-server
Or install locally in your project:
npm install mcp-nmap-server
Features
The server provides access to NMAP's core functionality through a simple interface. It supports quick scans, full port scans, version detection, and custom timing templates. The implementation uses NMAP's native command-line interface, ensuring reliability and consistency with standard NMAP operations.
Configuration with Claude Desktop
To use this server with Claude Desktop on Windows, you'll need to configure it in the Claude configuration file located at: C:\Users\YOUR_USERNAME\AppData\Roaming\Claude\config.json
Add the NMAP server to your configuration by adding it to the mcpServers section. Here's a complete example of a Claude Desktop configuration file:
{
"mcpServers": {
"nmap": {
"command": "node",
"args": [
"C:\\Users\\YOUR_USERNAME\\Downloads\\mcp-nmap-server\\dist\\index.js"
]
}
},
"globalShortcut": "Ctrl+Q"
}Replace YOUR_USERNAME with your Windows username and adjust the path to where you've installed the NMAP server.
Usage with AI
Once configured, AI assistants like Claude can use the server through the `runnmapsca
09b7a94b6bbdOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-nmap-server -- npx -y [email protected]
{
"mcpServers": {
"mcp-nmap-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (1)
0 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
run_nmap_scan | write | Run an NMAP scan on a target. Supports various scan types and configurations. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
glob, zod-to-json-schema, @types/node, shx, ts-node, typescript
Gates applied: no_behavioural_pass.
09b7a94b6bbdfull audit observations/trust-audit/mcp-server/phialsbasement__nmap.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 09b7a94b6bbd | SAFE | B | 89 | first audit |
Questions
What is the Nmap MCP server?
A Model Context Protocol (MCP) server that enables AI assistants to perform network scanning operations using NMAP
What tools does Nmap expose?
1 in total: 0 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Nmap safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Nmap need?
No credential environment variables were found in its source, so it appears to need none.
How does Nmap run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-nmap-server at 1.0.1.
How current is this page?
The grade is for one exact copy of the source (09b7a94b6bbd), read on 2026-10-08. The repository is watched and re-audited when it changes.