ikaliMCP Server
Provides a secure interface for AI assistants to interact with penetration testing tools like nmap, hydra, sqlmap, and nikto for educational cybersecurity purposes. Includes input sanitization and runs in a Docker container with Kali Linux tools for authorized testing scenarios.
README
ikaliMCP Server
A Model Context Protocol (MCP) server for educational penetration testing using authentic Kali Linux tools.
Purpose
This MCP server provides a secure interface for AI assistants to interact with penetration testing tools for educational purposes only. Designed for the sole usage and sell by HeWhoMustNBN, whobcode.
Features
Manually Scaffolded Tools (10 Primary Tools)
hydra_bruteforce- Password brute force attacks against network servicesnmap_scan- Network discovery and port scanningsqlmap_injection- Automatic SQL injection detection and exploitationnikto_webscan- Web server vulnerability scanningwpscan_wordpress- WordPress security scanningdirb_directory_scan- Directory and file brute forcingsearchsploit_exploits- Exploit database searchinggobuster_directory_scan- Fast directory brute forcingjohn_password_crack- Password hash crackinghashcat_gpu_crack- GPU-accelerated password cracking
Dynamic Tool Registry (Additional Tools — CLI Only)
- Wireshark Suite: tshark
- Metasploit Suite: msfconsole, msfvenom
- Aircrack-ng Suite: aircrack-ng, airodump-ng, aireplay-ng
- Reconnaissance: theharvester, sherlock
- Network Tools: netcat, hping3
- Web Tools: whatweb, ffuf
- Enumeration: enum4linux, dnsrecon, fierce, sublist3r
Prerequisites
- Docker Desktop with MCP Toolkit enabled
- Docker MCP CLI plugin (
docker mcpcommand) - Proper authorization for penetration testing activities
Installation
See the step-by-step instructions provided with the files.
Usage Examples
In Claude Desktop, OpenAI's Codex, or Abacus.AI, you can ask:
- "Scan 192.168.1.1 for open ports using nmap"
- "Perform a directory scan on http://example.com using dirb"
- "Search for WordPress vulnerabilities on http://target.com"
- "Brute force SSH login on 192.168.1.100 with hydra"
- "Check for SQL injection vulnerabilities in http://site.com/page.php?id=1"
Architecture
AI Assistant → MCP Gateway → ikaliMCP Server → Kali Linux Tools ↓ Docker Container (Root Access) (Hydra, Nmap, SQLMap, Nikto, etc.)
Security & Legal Notice
CRITICAL WARNING: This tool is for authorized educational use only!
- Only use on systems you own or have explicit permission to test
- Unauthorized penetration testing is illegal
- Users are responsible for compliance with all applicable laws
- Tool includes input sanitization for safety (see code comments for transparency)
Development
Local Testing
# Run directly for testing
python3 ikaliMCP_server.py
# Test MCP protocol
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | python3 ikaliMCP_server.py
Container Self-Check
After building the image, verify CLI tools are present:
docker build -t ikaliMCP-mcp-server .
docker run --rm ikaliMCP-mcp-server python3 /app/self_check.py
Warnings for some -h checks may be benign; Missing indicates an install issue.
Adding New Tools
- Add tool to TOOL_REGISTRY in ikaliMCP_server.py
- Include description and base command
- Rebuild Docker image
- Update catalog entry
Input Sanitization Transparency
All inputs are sanitized to prevent command injection. The code includes comments showing the "desanitized" version for educational transparency:
# DESANITIZED:
nmap -sS -p 80 192.168.1.1
# This shows what the command would look like without sanitization
Troubleshooting
Tools Not Appearing
- Verify Docker image built successfully
- Check catalog and registry files
- Ensure AI assistant config includes custom catalog
- Restart AI assistant
- Run container self-check:
docker run --rm ikaliMCP-mcp-server python3 /app/self_check.py
macOS Intel Setup (Command Line)
Use the included script to install Docker Desktop (via Homebrew), build the image, and run self-check:
bash scripts/setup_mac_intel.sh
If you don't have the repo locally, provide your repo URL:
REPO_URL="git@github.com:your-org/ikaliMCP.git" bash -c "curl -fsSL https://raw.githubusercontent.com/your-org/ikaliMCP/main/scripts/setup_mac_intel.sh | bash"
Replace the URL above with your actual repository path if different.
macOS Intel Setup (No Homebrew)
Install Docker Desktop directly (no Homebrew), then build and self-check:
bash scripts/setup_mac_intel_no_brew.sh
If you don't have the repo locally, provide your repo URL env var:
REPO_URL="git@github.com:your-org/ikaliMCP.git" bash -c "curl -fsSL https://raw.githubusercontent.com/your-org/ikaliMCP/main/scripts/setup_mac_intel_no_brew.sh | bash"
Replace the URL above with your actual repository path if different. For Apple Silicon, use the appropriate Docker Desktop download URL (arm64) by setting DOCKER_DMG_URL.
Permission Errors
- Container runs as root for full tool access
- Verify Docker has necessary privileges
- Check tool installation in container
License
MIT License - Educational Use Only
Disclaimer
This software is provided for educational purposes only. The authors assume no liability for misuse or damage caused by this program. Users must comply with all applicable laws and regulations.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。