nmap-mcp-server
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.115
- Alicense-qualityDmaintenanceEnables 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
- Alicense-qualityCmaintenanceEnables network scanning and reconnaissance through MCP tools, leveraging nmap for port scanning, service detection, and host discovery via synchronous, asynchronous, and streaming interfaces.MIT
- AlicenseAqualityFmaintenanceA 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.613Apache 2.0
Related MCP Connectors
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Raiaan-GB/nmap-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server