
pabpereza/kali-mcp 是从 https://github.com/pabpereza/kali-mcp. 导入的 MCP 服务器候选人。
概览
pabpereza/kali-mcp 是从 https://github.com/pabpereza/kali-mcp. 导入的 MCP 服务器候选人。
概述(AI 翻译)
一个道德黑客工具包,通过MCP(模型上下文协议)将AI代理与Kali Linux安全工具连接起来。
兼容任何支持 MCP 的 AI 代理:Claude Code、Gemini CLI、OpenCode、Cursor、Copilot、Codex、Aider、Windsurf、Goose 等。
先修条件
- Docker 和 Docker Compose(v2+)
- 支持 MCP 的 AI 代理(参见兼容性)
- 带有
curl的终端(由init.sh用于检测容器健康)
开始
1.克隆与启动
init.sh 构建 Kali Docker 映像,启动容器,等待 MCP 服务器在 http://localhost:666/mcp 状态良好。第一次构建可能需要几分钟。
2.启动你的AI代理
从项目目录中打开你的代理,这样它会自动检测.mcp.json:
3.开始黑客行动
你可以使用自然语言或斜杠命令:
典型工作流程(Claude代码)
整个工作流程只有三个命令:start、audit、finish。没有独立的每个工具命令——对于这个流程之外的临时任务,只需用自然语言询问(例如“检查FTP是否允许10.10.10.5匿名登录”),代理会直接运行匹配工具。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Kali MCP
An ethical hacking toolkit that connects AI agents to Kali Linux security tools via MCP (Model Context Protocol).
Compatible with any AI agent that supports MCP: Claude Code, Gemini CLI, OpenCode, Cursor, Copilot, Codex, Aider, Windsurf, goose, and others.
> /kali-start 192.168.1.50
SESSION INITIALIZED
Target: 192.168.1.50
Scope: Passive + Credential testing
Dir: sessions/192_168_1_50_20260331_1430/
> /kali-audit 192.168.1.50
Scanning with nmap...
PORT SERVICE VERSION
22/tcp ssh OpenSSH 8.9
80/tcp http Apache 2.4.54
443/tcp https nginx 1.18
445/tcp microsoft-ds Samba 4.15
Launching 10 parallel sub-agents...
[Service Enum :22] -> SSH scripts, searchsploit CVEs
[Service Enum :80] -> nikto, gobuster, ffuf, dirb
[Web Dirs :80] -> ffuf directories, sensitive files
[Web Fuzz :80] -> arjun params, nuclei templates
[OSINT :80] -> whatweb, wafw00f, searchsploit
[API Testing :80] -> IDOR, auth bypass
[Auth Testing :80] -> SQLi on login, JWT analysis
[SMB Enum :445] -> crackmapexec, enum4linux, smbclient
[AD Audit :445] -> impacket, kerberoast
[Vuln Scan] -> nmap vuln scripts, nuclei
All sub-agents completed. Results saved to session assets.
> /kali-finish
SESSION FINALIZED — 14 findings (2 Critical, 4 High, 5 Medium, 3 Low)
Report: sessions/192_168_1_50_20260331_1430/findings.md
Prerequisites
- Docker and Docker Compose (v2+)
- An AI agent with MCP support (see Compatibility)
- A terminal with
curl(used byinit.shto health-check the container)
Getting Started
1. Clone and start
git clone https://github.com/pabpereza/kali-mcp.git
cd kali-mcp
./init.sh
init.sh builds the Kali Docker image, starts the container, and waits until the MCP server is healthy at http://localhost:666/mcp. First build may take several minutes.
2. Launch your AI agent
Open your agent from the project directory so it auto-detects .mcp.json:
claude # Claude Code (recommended — supports parallel sub-agents)
gemini # Gemini CLI
opencode # OpenCode
3. Start hacking
You can use natural language or slash commands:
> Scan ports on 10.10.10.5 with version detection
> Find hidden directories on http://target.com
> Check if FTP allows anonymous login on 10.10.10.5
Typical Workflow (Claude Code)
The whole workflow is three commands: start, audit, finish. There are no standalone per-tool commands — for anything ad hoc outside this flow, just ask in natural language (e.g. “check if FTP allows anonymous login on 10.10.10.5”) and the agent runs the matching tool directly.
/kali-start 10.10.10.5 # 1. Select target and scope
/kali-audit 10.10.10.5 # 2. Run the audit/pentest (parallel sub-agents)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"kali": {
"type": "http",
"url": "http://localhost:666/mcp"
}
}
}