About KALI MCP SERVER
KALI MCP SERVER is an MCP server published by taopeng-life in the Developer Tools category: kali Linux MCP (Model Context Protocol) Server built with Node.js for seamless integration with LLMs such as Claude, or any MCP-compatible client. It offers powerful network security and penetration testing tools like Nmap, Whois, Dig, Ping, Nikto, Hydra, and SQLMap inside a Dockerized Kali Linux setup.
The repository has 12 stars and 3 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/taopeng-life/KALI_MCP_SERVERThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about KALI MCP SERVER
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
✨ Features
- ✅ Declarative tool definition in
config.json - ✅ Async jobs with live logs (SSE / polling)
- ✅ Self-describing
/capabilities_ext - ✅ Secure with API key 🔑
🧰 Supported Tools
Built-in penetration testing tools (preinstalled in Docker image):
- 🔍 Port/Service Scan:
nmap - 🌐 Web App Testing:
sqlmap,wpscan,nikto,whatweb,dirb,dirsearch,feroxbuster,gobuster - 🕵 Reconnaissance:
amass(subdomain enum) - 🔒 SSL/TLS Analysis:
sslyze,testssl.sh - 🛡 WAF/Middleware:
wafw00f,joomscan - ⚡ Fuzz & Bruteforce:
ffuf - 🐍 Python Toolkits: via
python_tools.sh - 🏗 Go Toolkits: via
go_tools.sh - 📂 Wordlists & Templates:
wordlists.sh,nuclei_templates.sh
Extension:
- Add custom installer in
extras-installer/modules/ - Declare tools in
config.json - Verify via
/capabilities_ext
🚀 Quick Start (Docker Compose)
git clone <repo-url>
cd KALI_MCP_SERVER
docker compose up -d --build
👉 Health check:
curl -H "x-api-key:your-secret-key" http://127.0.0.1:8080/health
extras-installer/ # optional extra tool installers
mcp_server.py # FastAPI + JSON-RPC
config.json # tool declarations
Dockerfile
docker-compose.yml
.env
🛠 Operations
🔗 Endpoints
POST /→ JSON-RPC (initialize,tools/list,tools/call)GET /jobs/{job_id}/sse→ Live logsGET /jobs/poll→ Poll logsPOST /jobs/cancel→ Cancel jobGET /capabilities_ext→ Tool registryGET /health→ Health probe
📜 Call Example
List tools
curl -X POST http://127.0.0.1:8080/ -H "content-type: application/json" -H "x-api-key: your-secret-key" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Async call
curl -X POST http://127.0.0.1:8080/ -H "content-type: application/json" -H "x-api-key: your-secret-key" -d '{"jsonrpc":"2.0","id":"job1","method":"tools/call","params":{"name":"nmap_scan","arguments":{"host":"scanme.nmap.org","async":true}}}'
🖥 Integrate with Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"kali-mcp": {
"url": "http://localhost:8080",
"timeout": 0,
"headers": { "x-api-key": "your-secret-key" }
}
}
}
✨ 特点
- 声明式工具定义(
config.json) - 同步/异步调用,实时日志(SSE)
/capabilities_ext自动列出工具与二进制版本- 可选
x-api-key鉴权 🔐
🧰 支持工具
内置常用渗透测试工具(Docker 镜像预装):
- 🔍 端口/服务探测:
nmap - 🌐 Web 应用测试:
sqlmap、wpscan、nikto、whatweb、dirb、dirsearch、feroxbuster、gobuster - 🕵 信息收集:
amass(子域名枚举) - 🔒 SSL/TLS 检测:
sslyze、testssl.sh - 🛡 WAF/中间件:
wafw00f、joomscan - ⚡ 模糊测试/爆破:
ffuf - 🐍 Python 工具集:通过
python_tools.sh安装 - 🏗 Go 工具集:通过
go_tools.sh安装 - 📂 字典/模板:
wordlists.sh、nuclei_templates.sh
扩展能力:
- 在
extras-installer/modules/新增自定义安装脚本 - 在
config.json声明新工具 - 通过
/capabilities_ext自动检测二进制可用性与版本
🚀 快速开始
docker compose up -d --build
👉 健康检查:
curl -H "x-api-key:your-secret-key" http://127.0.0.1:8080/health
🔗 接口列表
POST /→ JSON-RPC (initialize、tools/list、tools/call)GET /jobs/{job_id}/sse→ 实时日志GET /jobs/poll→ 轮询日志POST /jobs/cancel→ 取消任务GET /capabilities_ext→ 工具能力GET /health→ 健康检查
🖥 在 Cursor 中接入
在 ~/.cursor/mcp.json 添加:
{
"mcpServers": {
"kali-mcp": {
"url": "http://localhost:8080",
"timeout": 0,
"headers": { "x-api-key": "your-secret-key" }
}
}
}
📜 License
MIT
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.