MCP NMAP 服务器
模型上下文协议 (MCP) 服务器,使 AI 助手能够使用 NMAP 执行网络扫描操作。该服务器为 AI 模型与 NMAP 交互提供了标准化接口,从而可以通过 AI 对话进行网络分析和安全评估。
先决条件
- Windows操作系统
- Node.js(v18 或更高版本)
- NMAP 已安装并可从 Windows 命令行访问
- 用于开发的 TypeScript
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 NMAP 服务器:
手动安装
使用 npm 全局安装包:
或者在您的项目中本地安装:
特征
该服务器通过简单的界面提供对 NMAP 核心功能的访问。它支持快速扫描、全端口扫描、版本检测和自定义计时模板。该实现使用 NMAP 的原生命令行界面,确保可靠性并与标准 NMAP 操作保持一致。
使用 Claude Desktop 进行配置
要在 Windows 上将此服务器与 Claude Desktop 一起使用,您需要在位于以下位置的 Claude 配置文件中进行配置: C:\Users\YOUR_USERNAME\AppData\Roaming\Claude\config.json
将 NMAP 服务器添加到mcpServers
部分,并将其添加到您的配置中。以下是 Claude Desktop 配置文件的完整示例:
将YOUR_USERNAME
替换为您的 Windows 用户名,并将路径调整为您安装 NMAP 服务器的位置。
与人工智能的使用
配置完成后,像 Claude 这样的 AI 助手可以通过run_nmap_scan
函数使用服务器。该函数接受以下参数:
与 Claude 的对话示例:
执照
MIT 许可证
支持
如有问题、建议或贡献,请访问 GitHub 存储库。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
使AI助手能够使用NMAP执行网络扫描操作,为通过AI对话进行网络分析和安全评估提供标准化接口。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityProvides access to Shodan API functionality, enabling AI assistants to query information about internet-connected devices for cybersecurity research and threat intelligence.Last updated -53JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Control Protocol server that provides access to nmap network scanning functionality, allowing users to run customizable scans, store results, and analyze network security using AI prompts.Last updated -32PythonMIT License
- -securityFlicense-qualityAn integration that enables AI assistants to interact with network data through a standardized protocol, providing AI-ready tools and interfaces for network automation and management.Last updated -14Python
- -securityAlicense-qualityA lightweight, extensible cybersecurity toolkit that connects AI assistants to security tools through the Model Context Protocol (MCP), enabling AI-assisted security research, scanning, and analysis.Last updated -7PythonMIT License