nmap-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nmap-mcp-serverRun a ping sweep on 192.168.1.0/24 and show which hosts are up"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agenticAI — MCP Tool Servers
A pair of Model Context Protocol (MCP) servers that expose useful tools to LLM agents (e.g. Claude, or any MCP-compatible client) over stdio, built with the official Python mcp[cli] SDK and FastMCP.
Servers
nmap-server.py — Network scanning tools
Wraps the nmap CLI as a set of async MCP tools, letting an agent run network scans, parse the XML output, and get back structured JSON. Includes target validation (IP / CIDR / hostname regex) before any command is executed, and a 10-minute timeout on every scan.
Exposed tools:
Tool | Purpose |
| Discover live hosts on a network |
| TCP connect/SYN scan over a port range |
| UDP scan of common service ports |
| Service/version detection |
| OS fingerprinting |
| Combined OS/version/script/traceroute scan |
| NSE vulnerability scripts |
| Run a specific NSE script |
| Run nmap's default NSE script set |
| SYN stealth scan |
| Scan with a chosen timing template (T0–T5) |
| Scan the N most common ports |
| Pass arbitrary nmap flags |
Results are parsed from nmap's XML output into structured summaries (open ports, services, host state, etc.) rather than raw text.
todo-mcp.py — Minimal task-list demo server
A small reference server (four tools: count_tasks, show_tasks, add_task, search_tasks) used to demonstrate the basic MCP tool pattern before building the more complex nmap server.
Related MCP server: Nmap MCP Server
Setup
Requires Python 3.11+ and uv.
uv syncRun a server directly:
uv run nmap-server.py
uv run todo-mcp.pyOr point an MCP-compatible client (Claude Desktop, etc.) at either script as a stdio server.
Note:
nmap-server.pyshells out to a locally installednmapbinary — only run scans against hosts/networks you're authorised to test.
This server cannot be deployed
Maintenance
Related MCP Connectors
Scans remote MCP servers for protocol, security, and TLS issues; exposes scan tools via MCP.
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Related MCP Servers
- FlicenseBqualityDmaintenanceExposes Nmap network scanning capabilities through a Model Context Protocol (MCP) server, allowing users to perform various types of network scans including vulnerability assessment, service detection, and OS fingerprinting.116-
- AlicenseNot gradedqualityDmaintenanceEnables network security scanning using Nmap through MCP protocol. Supports quick port scans, full port scans with service detection, and custom Nmap commands with async task management.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables network scanning and reconnaissance through MCP tools, leveraging nmap for port scanning, service detection, and host discovery via synchronous, asynchronous, and streaming interfaces.MIT
- AlicenseAqualityDmaintenanceA production-ready MCP server that wraps Nmap to enable AI agents to perform automated network security assessments, including port scanning, host discovery, service detection, OS fingerprinting, and vulnerability scanning.616Apache 2.0