该项目提供了一个运行在Kali Linux上的Docker容器化MCP服务器,使AI助手(如Claude)能够访问完整的安全和渗透测试工具。
概览
一台运行在Kali Linux Docker容器中的生产准备MCP(模型上下文协议)服务器,为AI助手提供覆盖整个攻击安全生命周期的35种安全工具访问。 该项目提供了一个运行在Kali Linux上的Docker容器化MCP服务器,使AI助手(如Claude)能够访问完整的安全和渗透测试工具套件。该服务器通过服务器发送事件(SSE)或stdio通信,允许AI在受控环境中执行命令。 1. 编辑你的 Claude Desktop 配置文件,地址为 ~/Library/Application Support/Claude/claude_desktop_config.json: 2. 重启 Claude 桌面 3.测试:/run nmap -F localhost 运行带有预定义扫描预设的 nmap 格式,生成文本和 XML 输出。 查询所有DNS记录类型并尝试区域传输。 运行一个多阶段侦察管道,深度可配置。 SSH、FTP、HTTP-GET、HTTP-POST-FORM、SMB、MYSQL、RDP、TELNET、VNC、POP3、IMAP、SMTP
概述(AI 翻译)
一台运行在Kali Linux Docker容器中的生产准备MCP(模型上下文协议)服务器,为AI助手提供覆盖整个攻击安全生命周期的35种安全工具访问。
概述
该项目提供了一个运行在Kali Linux上的Docker容器化MCP服务器,使AI助手(如Claude)能够访问完整的安全和渗透测试工具套件。该服务器通过服务器发送事件(SSE)或stdio通信,允许AI在受控环境中执行命令。
快速启动
建造与运行集装箱
发展检验
连接Claude桌面
-
编辑你的 Claude Desktop 配置文件,地址为
~/Library/Application Support/Claude/claude_desktop_config.json: -
重启 Claude Desktop
-
测试对象:
/run nmap -F localhost
可用MCP工具(35)
核心工具
| 工具 | 描述 |
|---|---|
run |
在 Kali Linux 环境中执行 shell 命令 |
fetch |
从URL中获取和分析网页内容 |
resources |
列出可用的系统资源和命令示例 |
侦察与扫描
| 工具 | 描述 |
|---|
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Kali MCP Server
A production-ready MCP (Model Context Protocol) server running in a Kali Linux Docker container, providing AI assistants with access to 35 security tools covering the full offensive security lifecycle.
Overview
This project provides a Docker containerized MCP server that runs on Kali Linux, giving AI assistants (like Claude) access to a full suite of security and penetration testing tools. The server communicates via Server-Sent Events (SSE) or stdio and allows AI to execute commands in a controlled environment.
Quick Start
Building and Running the Container
# Quick start with the helper script
./run_docker.sh
# Or with Docker Compose
docker compose up --build -d
# Or manually:
docker build -t kali-mcp-server .
docker run -p 8000:8000 kali-mcp-server
Development Checks
# install dev dependencies
./run_tests.sh install
# individual checks
./run_tests.sh typecheck # pyright
./run_tests.sh lint # ruff check .
./run_tests.sh format # ruff format .
./run_tests.sh test # pytest
./run_tests.sh test-tools # pytest tests/test_tools.py
./run_tests.sh test-session # pytest -k "session"
# run install + typecheck + lint + tests
./run_tests.sh all
Connecting to Claude Desktop
- Edit your Claude Desktop config file at
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"kali-mcp-server": {
"transport": "sse",
"url": "http://localhost:8000/sse",
"command": "docker compose up -d"
}
}
}
- Restart Claude Desktop
- Test with:
/run nmap -F localhost
Available MCP Tools (35)
Core Tools
| Tool | Description |
|---|---|
run |
Execute shell commands in the Kali Linux environment |
fetch |
Fetch and analyze web content from URLs |
resources |
List available system resources and command examples |
Reconnaissance & Scanning
| Tool | Description |
|---|---|
port_scan |
Smart nmap wrapper with scan presets (quick, full, stealth, udp, service, aggressive) |
dns_enum |
Comprehensive DNS enumeration with zone transfer attempts |
network_discovery |
Multi-stage network reconnaissance and discovery |
subdomain_enum |
Subdomain enumeration using subfinder, amass, waybackurls |
recon_auto |
Automated multi-stage reconnaissance pipeline |
Web Application Testing
| Tool | Description |
|---|---|
vulnerability_scan |
Automated vulnerability assessment with multiple tools |
安装
docker run -p 8000:8000 kali-mcp-server配置
{
"mcpServers": {
"kali-mcp-server": {
"transport": "sse",
"url": "http://localhost:8000/sse",
"command": "docker compose up -d"
}
}
}