Skip to main content
Glama
mohdhaji87

Nmap MCP Server

by mohdhaji87

nmap_service_detection

Identify running services and their versions on network targets to assess security posture and detect vulnerabilities.

Instructions

Perform service and version detection scan

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetsYes
portsNocommon
intensityNo

Implementation Reference

  • server.py:121-124 (registration)
    Registration of the 'nmap_service_detection' tool using the @app.tool decorator, specifying name and description.
    @app.tool( name="nmap_service_detection", description="Perform service and version detection scan" )
  • Handler function that executes Nmap service and version detection scan by constructing arguments and calling the shared run_nmap_command helper.
    async def nmap_service_detection( targets: str, ports: str = "common", intensity: int = 7 ) -> str: """Perform service and version detection scan.""" args = ["-sV", f"--version-intensity={intensity}", "-p", ports, targets] result = run_nmap_command(args) if result["success"]: return f"Service detection scan completed:\n\n{result['stdout']}" else: return f"Service detection scan failed:\n\n{result['stderr']}"

Latest Blog Posts

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/mohdhaji87/Nmap-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server