This guide explains how to integrate MCP (Model Context Protocol) with Claude using Kali Linux.

1. Install Docker and Run Kali Container

First, install Docker and start a Kali Linux container.

docker run -dit \
--name kali \
--hostname kali-mcp \
-p 5000:5000 \
--cap-add=NET_RAW \
--cap-add=NET_ADMIN \
kalilinux/kali-rolling


2. Install Required Packages in Kali

Once the container is running, install the required tools.

apt install -y kali-linux-headless python3 python3-pip tmux

Start the MCP server on Kali:

kali-server-mcp

3. Install MCP Client on Windows

Clone the MCP Kali Server repository and set up the Python environment.

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

4. Configure Claude Desktop

Edit the Claude configuration file:

claude_desktop_config.json

{
"mcpServers": {
"kali": {
"command": "python",
"args": [
"C:\\Users\\B0273060\\Desktop\\AI\\MCP-Kali-Server\\client.py"
]
}
}
}

This configuration connects Claude Desktop to the MCP Kali Server client, enabling Claude to interact with Kali tools.


✅ After completing these steps, Claude can execute security tools in Kali via MCP.


About the Author
Shubham Goyal Certified Ethical Hacker, information security analyst, penetration tester and researcher. Can be Contact onLinkedin.


Leave a Reply

Your email address will not be published. Required fields are marked *