Atlas / MCP servers / phialsbasement / Nmap

NmapSAFE

mcp/phialsbasement/nmap

A Model Context Protocol (MCP) server that enables AI assistants to perform network scanning operations using NMAP

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
1 0r · 1w · 0d
Transport
stdio
License
MIT
Stars
49
01

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

Read from source at commit 09b7a94b6bbdOBSERVED · 2026-10-08
02

Connect

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-code
claude mcp add mcp-nmap-server -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "mcp-nmap-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (1)

0 read · 1 write · 0 destructive.

ToolRiskDescription
run_nmap_scanwriteRun an NMAP scan on a target. Supports various scan types and configurations.
04

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.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (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)

LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
glob, zod-to-json-schema, @types/node, shx, ts-node, typescript
Why it matters. 6 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 09b7a94b6bbdfull audit observations/trust-audit/mcp-server/phialsbasement__nmap.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-0809b7a94b6bbdSAFEB89first audit
06

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.

Advertisement