MCP NMAP Server

MCP NMAP Server

By PhialsBasement GitHub

A Model Context Protocol (MCP) server that enables AI assistants to perform network scanning operations using NMAP

nmap mcp
Overview

What is MCP NMAP Server?

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.

How to use MCP NMAP Server?

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.

Key features of MCP NMAP Server?

  • 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.

Use cases of MCP NMAP Server?

  1. Performing network security assessments through AI conversations.
  2. Scanning for open ports on a target host or network.
  3. Integrating network scanning capabilities into AI-driven applications.

FAQ from MCP NMAP Server?

  • 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.

Content

MCP NMAP Server

smithery badge

A Model Context Protocol (MCP) server that enables AI assistants to perform network scanning operations using NMAP. This server provides a standardized interface for AI models to interact with NMAP, making it possible to perform network analysis and security assessments through AI conversations.

Prerequisites

  • Windows operating system
  • Node.js (v18 or higher)
  • NMAP installed and accessible from Windows command line
  • TypeScript for development

Installation

Installing via Smithery

To install NMAP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-nmap-server --client claude

Manual Installation

Install the package globally using npm:

npm install -g mcp-nmap-server

Or install locally in your project:

npm install mcp-nmap-server

Features

The server provides access to NMAP's core functionality through a simple interface. It supports quick scans, full port scans, version detection, and custom timing templates. The implementation uses NMAP's native command-line interface, ensuring reliability and consistency with standard NMAP operations.

Configuration with Claude Desktop

To use this server with Claude Desktop on Windows, you'll need to configure it in the Claude configuration file located at: C:\Users\YOUR_USERNAME\AppData\Roaming\Claude\config.json

Add the NMAP server to your configuration by adding it to the mcpServers section. Here's a complete example of a Claude Desktop configuration file:

{
    "mcpServers": {
        "nmap": {
            "command": "node",
            "args": [
                "C:\\Users\\YOUR_USERNAME\\Downloads\\mcp-nmap-server\\dist\\index.js"
            ]
        }
    },
    "globalShortcut": "Ctrl+Q"
}

Replace YOUR_USERNAME with your Windows username and adjust the path to where you've installed the NMAP server.

Usage with AI

Once configured, AI assistants like Claude can use the server through the run_nmap_scan function. The function accepts the following parameters:

{
    target: string;            // Host or network to scan
    ports?: string;           // Optional port specification (e.g., "80,443" or "1-1000")
    scanType?: 'quick' | 'full' | 'version';  // Scan type (default: 'quick')
    timing?: number;          // NMAP timing template 0-5 (default: 3)
    additionalFlags?: string; // Optional additional NMAP flags
}

Example conversation with Claude:

Human: Can you scan localhost for open ports?

Claude: I'll help you scan localhost using NMAP.

<runs nmap scan with parameters>
target: "localhost"
scanType: "quick"
timing: 3

License

MIT License

Support

For issues, suggestions, or contributions, please visit the GitHub repository.

No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details