Claude_Kali_HexStrike
Install scripts to set up HexStrike AI as an MCP server in Claude Desktop on Kali Linux (Claude Desktop + HexStrike + Python 3.13 venv + autostart).
Three small scripts that set up HexStrike AI as an MCP server inside Claude Desktop on Kali Linux (and other Debian/Ubuntu systems). Grab everything in one file from the latest release: Or clone the repo directly (see Usage below).
Summary extracted from the README.
Claude Desktop + HexStrike AI on Kali
Three small scripts that set up HexStrike AI as an MCP server inside Claude Desktop on Kali Linux (and other Debian/Ubuntu systems).
"Claude Code" vs "Claude Desktop": these scripts install Claude Desktop, the desktop GUI app — that's the one that reads
~/.config/Claude/claude_desktop_config.jsonand hosts MCP servers. It is not theclaudecommand-line tool (Claude Code CLI), which uses a different config. If you want the CLI instead, script 1 would differ.
Download
Grab everything in one file from the latest release:
curl -L -o Claude_Kali_HexStrike.zip \
https://github.com/AjpSh00t3r/Claude_Kali_HexStrike/releases/latest/download/Claude_Kali_HexStrike-v1.0.0.zip
unzip Claude_Kali_HexStrike.zip && cd Claude_Kali_HexStrike
Or clone the repo directly (see Usage below).
What you get
- Claude Desktop (official Linux beta) installed from Anthropic's apt repo
- HexStrike AI cloned with a working Python 3.13 virtualenv
- Claude Desktop configured to launch the HexStrike MCP bridge and talk to the
HexStrike server on
http://localhost:8888 - A
hexstrike.shcontrol script and an optionalsystemd --userservice that auto-starts the server at login
Requirements
- A Debian-based distro with
apt(built/tested on Kali rolling) sudorights, run as your normal user (not root)- Internet access
- ~1.5 GB free disk (Claude Desktop + HexStrike deps)
Usage
Clone the repo and run the first two scripts:
git clone https://github.com/AjpSh00t3r/Claude_Kali_HexStrike.git
cd Claude_Kali_HexStrike
chmod +x *.sh
./01-install-claude-desktop.sh # Claude Desktop via official apt repo
./02-install-hexstrike.sh # HexStrike + Python 3.13 venv
Now launch Claude Desktop once, sign in, then fully quit it (tray icon → Quit). Claude writes its own config on first run and on exit, so signing in before the next step lets it establish its baseline config — otherwise that first sign-in can overwrite the MCP settings. (Script 3 also force-quits a running Claude Desktop as a safeguard, but it can't do the sign-in for you.)
Then configure the MCP server and relaunch:
./03-configure-mcp.sh # MCP config + control script + autostart service
Finally, launch Claude Desktop again and confirm hexstrike-ai appears as a connected MCP server with its tools.
To skip the autostart service and start the server manually instead:
NO_SERVICE=1 ./03-configure-mcp.sh
~/hexstrike-ai/hexstrike.sh start
Managing the server
With the systemd service (recommended):
systemctl --user status hexstrike
systemctl --user restart hexstrike
systemctl --user stop hexstrike
Or with the control script (also good for logs):
~/hexstrike-ai/hexstrike.sh status
~/hexstrike-ai/hexstrike.sh logs # live tail of server.log
~/hexstrike-ai/hexstrike.sh restart
How it starts (server vs. MCP bridge)
There are two separate pieces, and it's worth knowing which starts what:
- HexStrike server (
hexstrike_server.py, listens on:8888) — the actual engine. It is started by the systemd--userservice that script 3 enabled, which runs automatically when you log in to the desktop (and restarts it on crash). You do not start it by hand in normal use. - MCP bridge (
hexstrike_mcp.py) — a thin client that Claude Desktop launches automatically on startup (via thecommandinclaude_desktop_config.json). The bridge connects to the server on:8888; it does not start the server.
In other words: launching Claude Desktop does not start the HexStrike server — it
only starts the bridge, which expects the server to already be running. The systemd
service is what guarantees that. If you skipped the service (NO_SERVICE=1), start
the server yourself first with ~/hexstrike-ai/hexstrike.sh start.
First login is slow: on a cold start the server probes 150+ tools, so it can take ~30–60s before it answers. If you open Claude Desktop immediately after login,
hexstrike-aimay show as failed on the first try — wait until~/hexstrike-ai/hexstrike.sh statussaysRUNNING, then (re)launch Claude Desktop.
Why Python 3.13?
Kali rolling currently ships Python 3.14. HexStrike's dependency set (notably
angr and its binary deps) has no 3.14 wheels yet, so pip backtracks
endlessly and never finishes. Script 2 installs and builds the venv with
Python 3.13, where everything installs cleanly from prebuilt wheels.
Known quirks
- First start is slow. On a cold start HexStrike probes 150+ tools (
which ...), so/healthcan take ~30-60 s to first respond, then it's fast. Not a hang. - pwntools + bitstring.
pwntoolswithbitstring 5.xcan raiseAttributeError: module 'bitstring' has no attribute 'ConstBitStream'on some imports. The HexStrike server and MCP bridge still start fine; only certain pwntools binary-exploit features are affected. If you need them:~/hexstrike-ai/hexstrike-env/bin/pip install 'bitstring<4.3'. - Config gets overwritten. Claude Desktop rewrites its config on exit, so script 3 quits a running Claude Desktop before writing. Quit Claude Desktop before re-running script 3.
Files
| File | Purpose |
|---|---|
01-install-claude-desktop.sh |
Install Claude Desktop (apt repo) |
02-install-hexstrike.sh |
Clone HexStrike, build Python 3.13 venv, install deps |
03-configure-mcp.sh |
Write MCP config, install control script + autostart service |
hexstrike.sh |
Server control helper (copied to ~/hexstrike-ai/ by script 3) |
Responsible use
HexStrike AI is an offensive security toolkit. Only use it against systems you own or are explicitly authorized to test. You are responsible for complying with all applicable laws and rules of engagement.
Credits
- HexStrike AI - https://github.com/0x4m4/hexstrike-ai
- Claude Desktop - https://www.anthropic.com