MCP Kali Server
Lightweight API bridge connecting MCP Clients to a Kali Linux API server for executing terminal commands. Enables AI-assisted penetration testing and real-time CTF solving.
Description
The mcp-kali-server package provides an API bridge that connects MCP Clients such as Claude Desktop or 5ire to an API server, allowing execution of commands on a Linux terminal. This setup enables running tools like nmap, nxc, curl, wget, gobuster, and others directly through the MCP interface.
Use cases include interacting with web applications, performing AI-assisted penetration testing, solving CTF web challenges in real time, and assisting with machines from HTB or THM. It bridges AI clients to Kali's powerful toolset for dynamic, terminal-based operations.
The package includes both the Kali API server (kali-server-mcp) and the MCP server (mcp-server), facilitating seamless integration between AI-driven clients and Linux command execution.
How It Works
The tool operates as an API bridge using Flask (python3-flask) to run a server on a specified IP and port (default 127.0.0.1:5000). MCP Clients connect via HTTP requests to this server, which executes Linux terminal commands and returns results. The mcp-server component handles client-side connections to the API server with configurable timeout and debug options, leveraging python3-mcp and python3-requests for protocol handling.
Installation
sudo apt install mcp-kali-serverFlags
Examples
kali-server-mcp -hkali-server-mcp --debugkali-server-mcp --port 5000kali-server-mcp --ip 0.0.0.0 --port 5000mcp-server -hmcp-server --server http://localhost:5000mcp-server --timeout 600 --debug