MCP Kali Server
Allows sending custom HTTP requests with curl to interact with web applications and APIs, including capturing CTF flags.
Provides a controlled API to execute terminal commands on a Kali Linux machine, enabling AI-assisted penetration testing and CTF challenge solving.
Allows executing Metasploit Framework commands on the Kali machine for exploitation and penetration-testing workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Kali ServerRun an Nmap scan on 10.10.10.5 to find open ports"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Kali Server
MCP Kali Server (MKS) is a lightweight API bridge that connects MCP clients (e.g: Claude Desktop or 5ire) to the API server which allows executing commands on a Linux terminal.
This MCP is able to run terminal commands as well as interacting with web applications using:
Dirbenum4linuxgobusterHydraJohn the RipperMetasploit-FrameworkNiktoNmapsqlmapWPScanAs well as being able to execute raw commands.
As a result, this is able to perform AI-assisted penetration testing and solving CTF challenges in real time.
Articles Using This Tool

👉 How MCP is Revolutionizing Offensive Security
Related MCP server: Kali MCP Server
🔍 Use Case
The goal is to enable AI-driven offensive security testing by:
Letting the MCP interact with AI endpoints like OpenAI, Claude, DeepSeek, Ollama or any other models.
Exposing an API to execute commands on a Kali machine.
Using AI to suggest and run terminal commands to solve CTF challenges or automate recon/exploitation tasks.
Allowing MCP apps to send custom requests (e.g.
curl,nmap,ffuf, etc.) and receive structured outputs.
Here are some example (using Google's AI gemini 2.0 flash):
Example solving a web CTF challenge from RamadanCTF
https://github.com/user-attachments/assets/dc93b71d-9a4a-4ad5-8079-2c26c04e5397
Trying to solve machine "code" from HTB
https://github.com/user-attachments/assets/3ec06ff8-0bdf-4ad5-be71-2ec490b7ee27
🚀 Features
🧠 AI Endpoint Integration: Connect your Kali to any MCP of your liking such as Claude Desktop or 5ier.
🖥️ Command Execution API: Exposes a controlled API to execute terminal commands on your Kali Linux machine.
🕸️ Web Challenge Support: AI can interact with websites and APIs, capture flags via
curland any other tool AI the needs.🔐 Designed for Offensive Security Professionals: Ideal for red teamers, bug bounty hunters, or CTF players automating common tasks.
🛠️ Installation and Running
On your Kali Machine
sudo apt install mcp-kali-server
kali-server-mcpOtherwise for bleeding edge:
git clone https://github.com/Wh0am123/MCP-Kali-Server.git
cd MCP-Kali-Server
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
./server.pyCommand Line Options:
--ip <address>: Specify the IP address to bind the server to (default:127.0.0.1for localhost only)Use
127.0.0.1for local connections only (secure, recommended)Use
0.0.0.0to allow connections from any network interface (very dangerous; use with caution)Use a specific IP address to bind to a particular network interface
--port <port>: Specify the port number (default:5000)--debug: Enable debug mode for verbose logging
Examples:
# Run on localhost only (secure, default)
./server.py
# Run on all interfaces (less secure, useful for remote access)
./server.py --ip 0.0.0.0
# Run on a specific IP and custom port
./server.py --ip 192.168.1.100 --port 8080
# Run with debug mode
./server.py --debugOn your MCP client machine
This can be local (on the same Kali machine) or remote (another Linux machine, Windows or macOS).
If you're running the client and server on the same Kali machine (aka local), run either:
## OS package
kali-server-mcp --server http://127.0.0.1:5000
# ...OR...
## Bleeding edge
./client.py --server http://127.0.0.1:5000If separate machines (aka remote), create an SSH tunnel to your MCP server, then launch the client:
## Terminal 1 - Replace `LINUX_IP` with Kali's IP
ssh -L 5000:localhost:5000 user@LINUX_IP
## Terminal 2
git clone https://github.com/Wh0am123/MCP-Kali-Server.git
cd MCP-Kali-Server
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
./client.py --server http://127.0.0.1:5000If you're openly hosting the MCP Kali server on your network (server.py --IP...), you don't need the SSH tunnel (but we do recommend it!)
NOTE: ⚠️(THIS IS STRONGLY DISCOURAGED. WE RECOMMEND SSH)⚠️.
./client.py --server http://LINUX_IP:5000Configuration for Claude Desktop:
Edit:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration for 5ire Desktop Application:
Simply add an MCP with the command
python3 /absolute/path/to/client.py --server http://LINUX_IP:5000and it will automatically generate the needed configuration files.
🔮 Other Possibilities
There are more possibilities than described since the AI model can now execute commands on the terminal. Here are some examples:
Memory forensics using Volatility
Automating memory analysis tasks such as process enumeration, DLL injection checks, and registry extraction from memory dumps.
Disk forensics with SleuthKit
Automating analysis from disk images, timeline generation, file carving, and hash comparisons.
⚠️ Disclaimer:
This project is intended solely for educational and ethical testing purposes. Any misuse of the information or tools provided — including unauthorized access, exploitation, or malicious activity — is strictly prohibited.
The author assumes no responsibility for misuse.
This server cannot be deployed
Maintenance
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Paid remote MCP for LLM security scans, jailbreak checks, analytics, checkout, and readiness.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to execute Kali Linux security tools like nmap, sqlmap, and hydra in a secure, sandboxed environment. Provides both MCP and HTTP API interfaces for penetration testing and security assessment tasks.-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to execute penetration testing commands and security tools on Kali Linux remotely. Supports automated reconnaissance, vulnerability scanning, and CTF solving through integration with 25+ offensive security tools like nmap, gobuster, and nuclei.16-
- AlicenseNot gradedqualityNot gradedmaintenanceConnects MCP clients to a Kali Linux terminal API, enabling AI-assisted penetration testing, CTF challenge solving, and automated security reconnaissance through command execution.1MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to perform authorized penetration testing and security assessments by exposing 20+ Kali Linux security tools (nmap, sqlmap, gobuster, hydra, etc.) through a safe, validated interface with command allowlists, rate limiting, and input sanitization.191MIT