Nmap MCP Server

MCP server for performing network scanning using NMAP

Local serverstdioTypeScript

What is the Nmap MCP server?

Most developer tooling work still happens through a UI a human drives. Nmap MCP server moves it into the conversation instead. MCP server for performing network scanning using NMAP.

The short version

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.

Getting it running

Installation goes through your MCP client rather than a global install: point it at @smithery/cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

  • Windows operating system - Node.js (v18 or higher) - NMAP installed and accessible from Windows command line - TypeScript for development

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by PhialsBasement; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Nmap's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How to install the Nmap MCP server

{
    "mcpServers": {
        "nmap": {
            "command": "node",
            "args": [
                "C:\\Users\\YOUR_USERNAME\\Downloads\\mcp-nmap-server\\dist\\index.js"
            ]
        }
    },
    "globalShortcut": "Ctrl+Q"
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Windows operating system - Node.js (v18 or higher) - NMAP installed and accessible from Windows command line - TypeScript for development

Frequently asked questions

It connects Nmap to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Nmap directly.