MCP Kali
Enables exporting telemetry data (traces) from tool executions to OpenTelemetry-compatible backends for observability.
Click on "Install 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 Kaliscan 10.0.0.1 for 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
Give your AI agent a full Kali Linux arsenal, not just a handful of wrapped CLI tools.
A Model Context Protocol (MCP) server that runs inside a Kali Linux Docker container, giving AI agents full access to offensive security tooling through a standardized interface.
Built for real-world offensive security and CTF work, battle-tested through hundreds of Hack The Box machines, contributing to a Top #100 global ranking on the platform.
✨ Features at a Glance
Feature | What It Means |
Unrestricted Command Execution | Run any command — not limited to a predefined list of tools |
Interactive PTY Sessions | SSH, telnet, netcat, SQL shells, reverse shells — full back-and-forth interaction |
Background Tasks | Fire off long-running scans without blocking the conversation |
HTTP Intercepting Proxy | Capture, inspect, export, and replay HTTP traffic (built on mitmproxy) |
Dynamic Tool Discovery | Find, install, and register new tools at runtime — zero restarts |
OpenTelemetry (OTLP) Ready | Trace and capture every tool execution for full observability |
Batteries Included | Ships with 1000+ security tools pre-installed in a Kali container |
Related MCP server: K-MCP: Kali Model Context Protocol Server
🤔 Why MCP Kali?
MCP Kali isn't a wrapper around security tools — it's a full Kali Linux environment exposed to your AI agent through MCP primitives. Instead of one MCP function per tool, it provides building blocks that let the agent operate freely:
Execute any command available in Kali, not just a predefined list
Open interactive sessions for services that need back-and-forth (SSH, SQL shells, reverse shells)
Run scans in the background while continuing other work
Intercept and replay HTTP traffic for web testing
Install new tools on the fly without restarting the server
The agent decides how to combine them, just like working in a real terminal.
🚀 Quick Start
1. Build the Docker image
docker build -t mcp-kali .2. Run the container
docker run -d --name mcp-kali --privileged mcp-kali3. Configure Claude Code
Add to your .mcp.json:
{
"mcpServers": {
"kali": {
"type": "stdio",
"command": "docker",
"args": ["exec", "-i", "mcp-kali", "python3", "/opt/mcp_server.py"]
}
}
}📖 Documentation
Tools Reference — full list of MCP tools, sessions, background tasks, proxy, and meta-tools
Architecture & Container — internals, design decisions, pre-installed packages, and OTLP tracing
🧪 Running Tests
Tests run inside Docker to match the production environment:
docker build -t mcp-kali .
docker run --rm -v $(pwd):/mcp-kali -w /mcp-kali mcp-kali \
bash -c "pip3 install --quiet --break-system-packages pytest && python3 -m pytest tests/ -v"140 tests covering the tool registry, JSON-RPC protocol, session management, concurrent execution, meta-tools, resources, and dynamic registration.
⚠️ Disclaimer
This project is shared for educational and research purposes only. It provides unrestricted command execution inside a Kali Linux container — use it responsibly and at your own risk. The authors assume no liability for misuse. Always ensure you have proper authorization before testing any target.
📄 License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-quality-maintenanceEnables 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.Last updated16
- Alicense-qualityDmaintenanceConnects AI assistants to a Kali Linux terminal for executing security tools, managing interactive shell sessions, and performing penetration testing, CTF challenges, and security research tasks.Last updated1MIT
- Alicense-qualityDmaintenanceEnables AI assistants to perform penetration testing and security assessments by exposing 60+ Kali Linux security tools including network scanning, web security testing, password cracking, exploitation frameworks, and OSINT capabilities through an AI-friendly interface.Last updated2MIT
- FlicenseAqualityDmaintenanceEnables 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.Last updated191
Related MCP Connectors
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Operate your Linux servers from your LLM. Every action runs through an auditable allowlist.
Pay-per-call cybersecurity for AI agents: vuln scans, threat intel, compliance, code security.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/d0gesec/mcp-kali'
If you have feedback or need assistance with the MCP directory API, please join our Discord server