MCP NMAP Server
A Model Context Protocol (MCP) server that enables AI assistants to perform network scanning operations using NMAP
Overview
MCP NMAP Server is a Model Context Protocol (MCP) server that allows AI assistants to perform network scanning operations using NMAP, providing a standardized interface for AI models to interact with NMAP for network analysis and security assessments.
To use the MCP NMAP Server, install it via Smithery or manually using npm, and configure it in the Claude Desktop configuration file. Once set up, AI assistants can invoke the run_nmap_scan function to perform scans.
- Access to NMAP's core functionality through a simple interface. - Supports quick scans, full port scans, version detection, and custom timing templates. - Reliable and consistent with standard NMAP operations.
- Performing network security assessments through AI conversations.
- Scanning for open ports on a target host or network.
- Integrating network scanning capabilities into AI-driven applications.
Add to your AI client
Use these steps to connect MCP NMAP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"nmap-mcp-server-phialsbasement": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nmap-mcp-server-phialsbasement"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"nmap-mcp-server-phialsbasement": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nmap-mcp-server-phialsbasement"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"nmap-mcp-server-phialsbasement": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nmap-mcp-server-phialsbasement"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"nmap-mcp-server-phialsbasement": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nmap-mcp-server-phialsbasement"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"nmap-mcp-server-phialsbasement": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nmap-mcp-server-phialsbasement"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"nmap-mcp-server-phialsbasement": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nmap-mcp-server-phialsbasement"
]
}
}
}FAQ
What are the prerequisites for using MCP NMAP Server?
You need a Windows operating system, Node.js (v18 or higher), NMAP installed, and TypeScript for development.
How do I install MCP NMAP Server?
You can install it via Smithery or manually using npm commands.
Can I use MCP NMAP Server with any AI assistant?
Yes, it is designed to work with AI assistants like Claude.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1012,"uuid":"31aa7c00-2794-448e-9f08-0874d8aece4d","name":"nmap-mcp-server","title":"MCP NMAP Server","description":"A Model Context Protocol (MCP) server that enables AI assistants to perform network scanning operations using NMAP","avatar_url":"https://avatars.githubusercontent.com/u/155454343?v=4","created_at":"2025-01-28T02:26:35.374Z","updated_at":"2025-02-23T07:13:16.517Z","status":"created","author_name":"PhialsBasement","author_avatar_url":"https://avatars.githubusercontent.com/u/155454343?v=4","tags":"nmap,mcp,network-scanning,ai-assistant","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/PhialsBasement/nmap-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]