X

nmap-mcp-server

Information

MCP NMAP 服务器 这是一个模型上下文协议(MCP)服务器,使AI助手能够使用NMAP执行网络扫描操作。该服务器为AI模型提供了一个与NMAP交互的标准接口,使得通过AI对话进行网络分析和安全评估成为可能。 先决条件 Windows 操作系统 Node.js (v18 或更高版本) 已安装且可以从Windows命令行访问的NMAP 用于开发的TypeScript 安装 通过Smithery安装 要通过Smithery自动为Claude Desktop安装NMAP服务器: npx -y @smithery/cli install mcp-nmap-server --client claude 手动安装 使用npm全局安装包: npm install -g mcp-nmap-server 或在您的项目中本地安装: npm install mcp-nmap-server 功能 该服务器通过一个简单的接口提供了对NMAP核心功能的访问。它支持快速扫描、全端口扫描、版本检测以及自定义时间模板。实现采用了NMAP原生的命令行界面,确保了与标准NMAP操作的一致性和可靠性。 与Claude Desktop配置 要在Windows上与Claude Desktop一起使用此服务器,您需要在位于以下路径的Claude配置文件中进行配置: C:\Users\YOUR_USERNAME\AppData\Roaming\Claude\config.json 通过将其添加到mcpServers部分来将NMAP服务器添加到您的配置中。这里是一个完整的Claude Desktop配置文件示例: \{ "mcpServers": \{ "nmap": \{ "command": "node", "args": [ "C:\\Users\\YOUR_USERNAME\\Downloads\\mcp-nmap-server\\dist\\index.js" ] \} \}, "globalShortcut": "Ctrl+Q" \} 请将YOUR_USERNAME替换为您的Windows用户名,并根据您安装NMAP服务器的位置调整路径。 与AI一起使用 配置完成后,像Claude这样的AI助手可以通过run_nmap_scan函数使用该服务器。该函数接受以下参数: \{ 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 \} 与Claude的示例对话: Human: Can you scan localhost for open ports? Claude: I'll help you scan localhost using NMAP. target: "localhost" scanType: "quick" timing: 3 许可证 MIT许可证 支持 对于问题、建议或贡献,请访问GitHub仓库。

Prompts

Reviews

Tags

Write Your Review

Detailed Ratings

ALL
Correctness
Helpfulness
Interesting
Upload Pictures and Videos

Name
Size
Type
Download
Last Modified
  • Community

Add Discussion

Upload Pictures and Videos