使用说明
kali mcp服务器
使用Node.js构建的Kali Linux MCP(模型上下文协议)服务器,用于与Claude等LLM或任何兼容MCP的客户端无缝集成。它在Docker化的Kali Linux设置中提供了强大的网络安全和渗透测试工具,如Nmap、Whois、Dig、Ping、Nikto、Hydra和SQLMap。
免责声明!!重要法律声明:本存储库以及其中包含的工具、代码、脚本、配置、文档和其他材料(统称为“材料”)仅用于合法、教育和授权的安全测试目的。作者和维护者对材料的适用性、准确性、完整性或适合任何特定目的不作任何陈述或保证。
特性
nmap_scan:网络扫描和主机发现whois_lookup:域名注册信息查询dig_dns:DNS记录查询ping_host:ICMP ping测试netcat_connect:TCP/UDP端口测试nikto_scan:Web漏洞扫描sqlmap_scan:SQL注入测试hydra_bruteforce:登录暴力攻击(受控环境)dns_enum:DNS枚举subdomain_enum:子域发现ssl_scan:SSL/TLS证书检查metasploit_search:从Metasploit数据库中搜索漏洞metasploit_exploit_info:获取详细的漏洞利用模块信息set_info:检查是否安装了社会工程工具包traceroute:网络路径跟踪host_discovery:主动主机发现
项目结构
kali-mcp-server/
├── Dockerfile
├── server.js
├── package.json
├── claude-config.json
├── .dockerignore
├── FEATURES.md
├── README.md
├── DISCLAIMER.md
├── LICENSE
└── screenshots/
├── scan_report.png
├── ssh_bruteforce.png
├── tools_list_1.png
├── tools_list_2.png
└── tools_menu.png
快速开始
#先决条件
node server.js
Docker
1.克隆和构建Docker镜像
git clone https://github.com/rangta10/kali-mcp-server.git
cd kali-mcp-server
docker build -t kali-mcp-server .
2.运行服务器
docker run -it kali-mcp-server
3. 配置 Claude AI
*安装克劳德桌面
*从设置中打开Claude Dveloper
*导航到
C:\Users\<YourUsername>\AppData\Roaming\Claude
编辑此文件
claude_desktop_config.json
Claude_desktop_config json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"C:\\Users\\annan\\Desktop",
"C:\\Users\\annan\\Downloads"
]
},
"kali-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--privileged",
"--cap-add=NET_ADMIN",
"--cap-add=NET_RAW",
"kali-mcp-server:latest",
"node",
"/app/server.js"
]
}
}
}
Dockerfile
# kali-mcp-server (by rangta)
FROM kalilinux/kali-rolling
RUN apt update && apt install -y \
nmap whois dnsutils netcat-traditional nikto sqlmap hydra dnsenum sslscan metasploit-framework set traceroute nodejs npm
WORKDIR /app
COPY . .
RUN npm install || true
CMD ["node", "server.js"]
server.js
(与存储库保持不变——包含您的MCP工具定义和处理程序,带有版权签名 rangta)
许可证
License
Copyright (c) 2025 rangta
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
截图
nmap扫描