Skip to main content
Glama
rdriver001

mcp-kali-tools

by rdriver001

mcp-kali-tools

一个运行 Model Context Protocol 服务器的 Docker 镜像, 将常见的 Kali Linux 渗透测试工具暴露给 MCP 客户端(例如 Claude Desktop)。每个工具 都作为独立的 MCP 工具调用运行,直接以 argv 方式执行(无 shell),因此参数无法 用于串联或注入任意 shell 命令——但每个工具仍拥有其底层二进制程序的全部功能。

仅限授权使用。 此镜像捆绑了攻击性安全工具(nmap、sqlmap、hydra、 Metasploit 等)。只能将其指向你有权测试的系统与网络。

包含的工具

nmapsqlmapniktohydrajohnhashcatmsfconsolegobusterffufwhatwebwpscanaircrack-ngsearchsploit

aircrack-ng 可以破解现有的抓包文件,但实时无线抓包(监听模式)需要 将物理适配器传入容器(--device--net=host),默认情况下未设置。

Related MCP server: Kali MCP Server

构建

docker build -t mcp-kali-tools:latest .

手动运行(用于测试)

服务器通过 stdio 进行 MCP 通信——它不是用来独立长期运行的。要进行冒烟测试, 请直接通过管道输入 JSON-RPC 请求:

docker run -i --rm mcp-kali-tools:latest

在 Claude Desktop 中配置

创建一个主机目录,用于在多次运行之间持久保存字典/扫描输出,例如:

mkdir -p ~/mcp-data

将此内容添加到你的 claude_desktop_config.jsonmcpServers 中:

{
  "mcpServers": {
    "kali-tools": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "--cap-add=NET_RAW", "--cap-add=NET_ADMIN",
        "-v", "/home/YOUR_USER/mcp-data:/data",
        "mcp-kali-tools:latest"
      ]
    }
  }
}

--cap-add=NET_RAW --cap-add=NET_ADMIN 是充分发挥 nmap 功能(例如 SYN 扫描)所必需的。/data 挂载点用于存放字典(例如 rockyou.txt)和扫描输出—— 在工具参数中传入 /data/... 下的路径即可在那里读写。

编辑配置后请重启 Claude Desktop。如果 Docker 是刚安装的,或者你的用户刚刚被 添加到 docker 组,请先注销并重新登录——组成员资格仅对新登录会话生效。

备注

  • 每次容器运行都是临时的(--rm);除写入 /data 的内容外,不会有任何持久化数据。

  • 每次工具调用的输出上限为 20,000 个字符,每次调用默认在 180 秒后超时 (可通过任何工具调用上的 timeout 参数覆盖)。

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
  • F
    license
    A
    quality
    D
    maintenance
    Enables 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.
    19
    1
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to perform professional penetration testing through a containerized Kali Linux environment, exposing industry-standard offensive security tools as structured MCP tools.
    45
    4
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI-assisted penetration testing by connecting MCP clients to execute terminal commands on a Kali Linux machine, supporting tools like Nmap, Metasploit, and custom commands.
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.

  • Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.

  • Scans MCP servers for tool poisoning, prompt injection and supply chain risks.

View all MCP Connectors

Latest Blog Posts

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/rdriver001/mcp-kali-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server