TM

triv3/mcp-kali-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

40 stars 19 forks 质量 58 趋势 0MIT

triv3/mcp-kali-server 是从 https://github.com/triv3/mcp-kali-server. 导入的 MCP 服务器候选

概览

triv3/mcp-kali-server 是从 https://github.com/triv3/mcp-kali-server. 导入的 MCP 服务器候选

概述(AI 翻译)

一台全面的模型上下文协议(MCP)服务器,用于渗透测试和网络安全操作,实现Kali Linux工具与兼容MCP客户端的无缝集成。

🎥 演示视频

用MCP(模型上下文协议)自动化Kali Linux——HTB演示

在本视频中,我展示了我的MCP如何自动化WSL2中的Kali Linux工作流程,并协助解决Hack The Box挑战——从枚举到利用再到自动生成文档。

在YouTube上观看演示


🚀 概述

该项目提供了一个强大的MCP服务器,通过标准化接口实现对Kali Linux渗透测试工具的安全程序访问。它包含了反向壳管理、SSH会话处理以及带完整性验证的全面文件操作等高级功能。

🏗️ 建筑

该项目设计用于跨越不同环境:

1.Kali服务器(kali-server/)

仅运行于Kali Linux——核心服务器应用,提供实际渗透测试功能。

特色:

  • Docker 测试模式([--test 选项)——自动管理测试容器

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Kali Server

A comprehensive Model Context Protocol (MCP) server for penetration testing and cybersecurity operations, providing seamless integration between Kali Linux tools and MCP-compatible clients.

🎥 Demo Video

Automating Kali Linux with an MCP (Model Context Protocol) — HTB Demo

In this video, I showcase how my MCP automates a Kali Linux workflow inside WSL2 and assists with solving a Hack The Box challenge — from enumeration to exploitation to auto-generated documentation.

Watch the demo on YouTube


🚀 Overview

This project provides a powerful MCP server that enables secure, programmatic access to Kali Linux penetration testing tools through a standardized interface. It includes advanced features like reverse shell management, SSH session handling, and comprehensive file operations with integrity verification.

🏗️ Architecture

This project is designed to work across different environments:

1. Kali Server (kali-server/)

Runs on Kali Linux only - The core server application that provides the actual penetration testing capabilities.

kali-server/
├── api/           # REST API routes and endpoints
├── core/          # Core functionality (SSH, reverse shells, config, Docker)
├── tools/         # Penetration testing tools integration
└── utils/         # Utility functions and file operations

Features:

  • Docker test mode (--test option) - automatically manages test containers
  • All penetration testing tools (nmap, gobuster, etc.)
  • SSH and reverse shell session management
  • File operations with integrity verification

2. MCP Server (mcp-server/)

Can run on any system - The Model Context Protocol server that provides a standardized interface for MCP clients.

mcp-server/
└── mcp_server.py  # MCP protocol implementation

Note: The MCP server communicates with the Kali server via HTTP, so they can be on different systems.

Deployment Architecture

┌─────────────────┐    HTTP     ┌──────────────────┐    HTTP     ┌──────────────────┐
│   MCP Client    │ ◄─────────► │   MCP Server     │ ◄─────────► │   Kali Server    │
│  (Any system)   │             │  (Any system)    │             │  (Kali Linux)    │
└─────────────────┘             └──────────────────┘             │                  │
                                                                  │ ┌──────────────┐ │
                                                                  │ │   Docker     │ │
                                                                  │ │ (test mode)  │ │
                                                                  │ └──────────────┘ │
                                                                  └──────────────────┘
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →