MCP NMAP Server
MCP NMAP 服务器
模型上下文协议 (MCP) 服务器,使 AI 助手能够使用 NMAP 执行网络扫描操作。该服务器为 AI 模型与 NMAP 交互提供了标准化接口,从而可以通过 AI 对话进行网络分析和安全评估。
先决条件
Windows操作系统
Node.js(v18 或更高版本)
NMAP 已安装并可从 Windows 命令行访问
用于开发的 TypeScript
Related MCP server: Nmap MCP Server
安装
通过 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
将 NMAP 服务器添加到mcpServers部分,并将其添加到您的配置中。以下是 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 服务器的位置。
与人工智能的使用
配置完成后,像 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.
<runs nmap scan with parameters>
target: "localhost"
scanType: "quick"
timing: 3执照
MIT 许可证
支持
如有问题、建议或贡献,请访问 GitHub 存储库。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Scan GitHub-hosted AI skills for vulnerabilities: prompt injection, malware, OWASP LLM Top 10.
AI pentesting: run scans, triage vulnerabilities, review PRs, manage schedules and assets.
Scan any website for AI agent readiness, payment protocols, and discovery endpoints
Exposes FEDLIN's public security scanners as agent-callable tools over Streamable HTTP.
Related MCP Servers
- AlicenseBqualityDmaintenanceA 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.318MIT
- FlicenseBqualityDmaintenanceExposes Nmap network scanning capabilities through a Model Context Protocol (MCP) server, allowing users to perform various types of network scans including vulnerability assessment, service detection, and OS fingerprinting.116-
- FlicenseNot gradedqualityDmaintenanceProvides AI agents like Claude with secure, controlled access to network security tools like nmap for scanning private networks and lab environments. Features comprehensive safety controls, circuit breakers, and production-ready monitoring.-
- FlicenseNot gradedqualityDmaintenanceEnables network scanning and security assessment using Nmap through MCP, allowing AI assistants to perform port scans, service detection, and network reconnaissance on specified targets with configurable scan parameters.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/PhialsBasement/nmap-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server