nmap-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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: static security scanner for MCP servers, agent skills & plugins. 17 attack patterns.
MCP server for the Vulners.com API
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
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.117-
- 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 gradedqualityDmaintenanceEnables network scanning and reconnaissance through MCP tools, leveraging nmap for port scanning, service detection, and host discovery via synchronous, asynchronous, and streaming interfaces.106 PyPI1MIT
- 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.617Apache 2.0