NmapMCP

NmapMCP is an MCP server that integrates the Nmap network scanning utility into Model Context Protocol environments. It connects AI assistants and MCP-compatible platforms directly to local or network-accessible Nmap binary capabilities, allowing security engineers, network administrators, and penetration testers to execute network reconnaissance directly from an LLM prompt. Users can invoke various scanning techniques, such as SYN half-open scans, UDP scans, TCP connect scans, and FIN or idle stealth scans. The server enables automated asset inventory through ping sweeps, ARP discovery, and list scanning across IP ranges without probing ports. In addition, it allows automated operating system fingerprinting and service version detection to spot outdated or vulnerable software. Network teams can also run subdomain discovery through DNS brute forcing and accelerate recon by disabling reverse DNS lookups or targeting only top common ports.

Category: Cloud & Infrastructure

Tags: network-scanning, network security, nmap, reconnaissance, vulnerability assessment

Visit NmapMCP

How to install and configure NmapMCP

  1. Install via Smithery for Claude Desktop: bash npx -y @smithery/cli install @0xPratikPatil/nmapmcp --client claude 2. Alternatively, perform manual installation by cloning the repository: bash git clone https://github.com/0xPratikPatil/NmapMCP.git cd NmapMCP 3. Install the uv tool and create a virtual environment: bash curl -LsSf https://astral.sh/uv/install.sh | sh uv venv 4. Install project dependencies: bash uv pip install 5. Add NmapMCP to your claude_desktop_config.json file: json { "mcpServers": { "NmapMCP": { "command": "uv", "args": [ "--directory", "/path/to/NmapMCP", "run", "main.py" ] } } }

What you can do with NmapMCP

  • Identify active network hosts across specified subnet ranges using ARP discovery, ping sweeps, or list scans without port probing. * Detect open ports and potential entry points using top ports scanning, TCP connect scans, and half-open SYN scans. * Inspect running services and operating systems across target hosts to spot outdated software versions and security vulnerabilities. * Discover hidden subdomains associated with target corporate domains through integrated DNS brute force scans during security assessments.

Key facts

  • Open Source
  • https://github.com/0xPratikPatil/NmapMCP
  • Cloud & Infrastructure, Security & Compliance
  • network-scanning, network security, nmap, reconnaissance, vulnerability assessment

Part of MCP Servers

Related MCP servers

  • MCP KQL Server — MCP KQL Server is an MCP server that connects AI assistants to Azure Data Explorer clusters using Azure CLI authentication.…
  • MCP Media Player — MCP Media Player is an MCP server that exposes playback controls for Home Assistant media players to AI agents. It…
  • MCP Kubernetes Server — MCP Kubernetes Server is an MCP server that provides tools for managing and inspecting Kubernetes clusters directly through Large Language…
  • MCP Nomad Go — MCP Nomad Go is an MCP server that connects AI assistants to HashiCorp Nomad clusters. Written in Go, it allows…
  • MCP Minecraft Remote — MCP Minecraft Remote is an MCP server that enables AI assistants to remotely connect to and control a player character…
  • MCP My Mac — MCP My Mac is an MCP server that exposes macOS system hardware specifications, system configurations, and environment details to AI…

What is NmapMCP?

NmapMCP is an open source Model Context Protocol server that exposes Nmap network scanning capabilities to AI assistants. It enables users to run host discovery, port scans, OS detection, and version detection directly from compatible MCP clients.

How do I install NmapMCP?

You can install it automatically for Claude Desktop using Smithery by running npx -y @smithery/cli install @0xPratikPatil/nmapmcp --client claude. Alternatively, clone the repository, set up a virtual environment using uv, install the dependencies, and configure your Claude Desktop JSON file.

What can NmapMCP do?

NmapMCP executes various Nmap scan types, including SYN scans, UDP scans, FIN scans, Idle scans, TCP connect scans, ping scans, and ARP discovery. It also supports DNS brute forcing, OS detection, and service version detection.

Which MCP clients work with NmapMCP?

NmapMCP works with any client that implements the Model Context Protocol, including Claude Desktop, when configured with the appropriate server command and arguments.

Is NmapMCP open source?

Yes, NmapMCP is open source software released under the MIT License on GitHub.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories