Nmap MCP Server

This is a Model Control Protocol (MCP) server that provides access to nmap network scanning functionality.

Local serverstdioPython

What is the Nmap MCP Server?

This is a Model Control Protocol (MCP) server that provides access to nmap network scanning functionality.

What the server does

  • Run nmap scans on specified targets with customizable options
  • Store and retrieve scan results
  • Analyze scan results using AI prompts

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
optionsNmap options (e.g., -sV -p 1-1000)

How to install the Nmap MCP Server

{
  "mcpServers": {
    "nmap-mcpserver": {
      "command": "uvx",
      "args": ["python-libnmap"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • “Use Nmap to Parameters.”
  • “Use Nmap to options.”
  • “Use Nmap to Resources.”

Frequently asked questions

Python 3.10+ and the `python-libnmap` package, plus nmap installed on the system (e.g., `sudo apt-get install nmap`).