kali-mcp-bridge
What it does
This skill explains how to set up and use a bridge that lets an AI agent run Kali Linux testing tools in a controlled way. It is for security testers working only on systems they are authorized to test.
When to use it
- βWhen an authorized engagement needs an AI agent to run Kali tools through a structured interface.
- βWhen you need to set up a secure tunnel between a tester's machine and a Kali server.
- βWhen tool output from Kali will be shown to an AI and you need safe handling rules.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/decepticon/kali-mcp-bridge/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you help me connect our AI assistant to a Kali server for an authorized test, using a secure tunnel?β
5 new skills a week. 1 minute to read.
How it works
The agent sets up a server on the Kali machine, connects it through an encrypted tunnel, and passes tool calls through a standard interface that returns structured results.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Kali MCP Bridge β Operator Playbook
Drive Kali Linux tools (nmap, gobuster, sqlmap, metasploit, hydra, john, nikto, enum4linux, raw commands) through a FastMCP bridge during authorized engagements. This skill covers server deployment, SSH tunnel hardening, tool-call interface, and the critical prompt-injection hygiene rules required when Kali output re-enters the AI context.
AUTHORIZED USE ONLY. This skill is for use exclusively on systems you own or have explicit written authorization to test. Unauthorized use is illegal.
1. Architecture
ββββββββββββββββ MCP stdio βββββββββββββββββββ HTTP/REST ββββββββββββββββββββ
β Decepticon β ββββββββββββββΊ β client.py (MCP) β ββββββββββββββΊ β server.py (Kali) β
β (AI agent) β β on attacker hostβ β Flask API :5000 β
ββββββββββββββββ βββββββββββββββββββ ββββββββββββββββββββ
- server.py: Flask API on Kali, wraps each tool, exposes
/api/tools/<tool>and/api/command. - client.py: FastMCP server that registers tools and relays calls to server.py via HTTP.
- AI agent: Calls MCP tools; receives structured JSON output.
2. Deployment
2a. Kali server (on engagement jump box / VM)
# OS package (Kali 2024.1+)
sudo apt install mcp-kali-server
kali-server-mcp --ip 127.0.0.1 --port 5000 # localhost only β NEVER bind 0.0.0.0
# OR 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.py --ip 127.0.0.1 --port 5000 --debug
Verify health:
curl -s http://127.0.0.1:5000/health | python3 -m json.tool
# Expected: {"status": "healthy", "all_essential_tools_available": true, "tools_status": {...}}
2b. SSH tunnel (when client and server are on different machines)
Always route through SSH β never expose server.py directly on a routable interface.
# On attacker/orchestrator host β forward local :5000 to Kali :5000
ssh -N -L 5000:localhost:5000 <user>@<KALI_IP>
# Keep tunnel alive for long engagements
ssh -N -o ServerAliveInterval=60 -o ServerAliveCountMax=3 \
-L 5000:localhost:5000 <user>@<KALI_IP>
2c. MCP client registration (Claude Desktop / Decepticon)
claude_desktop_config.json or equivalent:
{
"mcpServers": {
"kali": {
"command": "python3",
"args": ["/abs/path/to/client.py", "--server", "http://127.0.0.1:5000"],
"timeout": 300
}
}
}
3. Tool Call Reference
All tools return {"success": bool, "output": str, ...}. Check success before using output.
3.1 nmap_scan
target: str # IP, hostname, CIDR
scan_type: str # "-sV" (default), "-sS", "-sU", "-sC", "-A"
ports: str # "22,80,443" or "1-1024" (empty = default)
additional_args: str # "-T2 -oX /tmp/scan.xml"
3.2 gobuster_scan
url: str # "http://target.local"
mode: str # "dir" (default), "dns", "vhost", "fuzz"
wordlist: str # "/usr/share/wordlists/dirb/common.txt"
additional_args: str # "-x php,html -o /tmp/gobuster.txt"
3.3 dirb_scan
url: str
wordlist: str
additional_args: str # "-r -z 100" (-z = ms delay between requests)
3.4 nikto_scan
target: str # URL or IP
additional_args: str # "-Tuning 1234" (1=files, 2=misconfigs, 3=info, 4=inject)
3.5 sqlmap_scan
url: str # "http://target/page?id=1"
data: str # POST body: "user=foo&pass=bar" (empty for GET)
additional_args: str # "--level=3 --risk=2 --batch --dbs"
3.6 metasploit_run
module: str # "auxiliary/scanner/portscan/tcp"
options: dict # {"RHOSTS": "10.0.0.1", "PORTS": "22,80"}
Common module patterns:
# SMB version detection
module: "auxiliary/scanner/smb/smb_version"
options: {"RHOSTS": "<target>", "THREADS": "4"}
# EternalBlue check (scan only β do NOT exploit without explicit RoE auth)
module: "auxiliary/scanner/smb/smb_ms17_010"
options: {"RHOSTS": "<target>"}
3.7 hydra_attack
target: str # IP or hostname
service: str # "ssh", "ftp", "http-post-form", "smb"
username: str # single user (mutually exclusive with username_file)
username_file: str # path to userlist
password: str # single pass
password_file: str # "/usr/share/wordlists/rockyou.txt"
additional_args: str # "-t 4 -V" (
FAQ
Can it be used on any system?
No. The skill is for systems you own or have written permission to test.
Why does the tunnel setup matter?
The skill stresses keeping the Kali server bound to localhost and reachable only through a secured tunnel.
What is prompt-injection hygiene?
Rules for handling tool output so that text inside scan results cannot steer the AI.
Details
Original description by the author
Deploy and drive Kali Linux tools via MCP-Kali-Server β structured tool-call interface, SSH tunnel setup, prompt-injection hygiene for AI-assisted engagements.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14016
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.