WM

wh0am123/mcp-kali-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

866 stars 178 forks 품질 61 트렌드 23MIT

AI 에이전트를 리눅스 머신에 연결하는 MCP 설정.

개요

MCP 클라이언트(예: Claude Desktop 또는 5ire)를 API 서버와 연결하여 Linux 터미널에서 명령을 실행할 수 있게 하는 경량 API 브리지입니다. 이 MCP는 터미널 명령어를 실행할 뿐만 아니라 웹 애플리케이션과 상호작용할 수 있습니다: - Dirb - enum4linux - gobuster - Hydra - John the Ripper - Metasploit-Framework - Nikto - Nmap - sqlmap - WPScan - 그리고 원시 명령어 실행 기능. 그 결과, 실시간으로 수행되고 해결할 수 있습니다. 목표는 다음과 같은 방식으로 AI 기반 공격적 보안 테스트를 가능하게 하는 것입니다: - MCP가 OpenAI, Claude, DeepSeek, Ollama 또는 기타 모델과 AI 엔드포인트를 상호작용할 수 있게 합니다. - Kali 머신에서 명령을 실행할 수 있는 API를 노출합니다. - AI를 활용해 CTF 문제를 해결하거나 정찰/악용 작업을 자동화하기 위해 터미널 명령을 제안하고 실행할 수 있습니다. - MCP 앱이 맞춤형 요청을 보내고 구조화된 출력을 받을 수 있도록 허용합니다. 다음은 구글의 AI Gemini 2.0 플래시를 사용한 예시입니다: https://github.

개요(AI 번역)

**MCP 칼리 서버(MKS)**는 MCP 클라이언트(예: Claude Desktop 또는 5ire)를 API 서버와 연결하여 Linux 터미널에서 명령을 실행할 수 있게 하는 경량 API 브리지입니다.

이 MCP는 터미널 명령어를 실행할 뿐만 아니라 웹 애플리케이션과 상호작용할 수 있습니다:

  • Dirb
  • enum4linux
  • gobuster
  • Hydra
  • John the Ripper
  • Metasploit-Framework
  • Nikto
  • Nmap
  • sqlmap
  • WPScan
  • 그리고 원시 명령어를 실행할 수 있는 능력도 있습니다.

그 결과, 이 시스템은 실시간으로 AI 지원 침투 테스트와 CTF 문제 해결을 수행할 수 있습니다.

이 도구를 사용하는 기사들

👉 MCP가 공격 보안을 혁신하는 방법


🔍 사용 사례

목표는 다음과 같은 방식으로 AI 기반 공격적 보안 테스트를 가능하게 하는 것입니다:

  • MCP가 OpenAI, Claude, DeepSeek, Ollama 또는 기타 모델과 같은 AI 엔드포인트와 상호작용할 수 있도록 하는 것.
  • Kali 머신에서 명령을 실행할 수 있도록 API를 노출하는 것
  • AI를 활용해 CTF 도전 과제를 해결하거나 정찰/착취 작업을 자동화하기 위해 터미널 명령을 제안하고 실행하는 것.
  • MCP 앱이 맞춤형 요청(예: curl, nmap, ffuf 등)을 보내고 구조화된 출력을 받을 수 있게 합니다.

다음은 몇 가지 예시입니다(구글의 AI gemini 2.0 flash를 사용해):

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Kali Server

MCP Kali Server (MKS) is a lightweight API bridge that connects MCP clients (e.g: Claude Desktop or 5ire) to the API server which allows executing commands on a Linux terminal.

This MCP is able to run terminal commands as well as interacting with web applications using:

  • Dirb
  • enum4linux
  • gobuster
  • Hydra
  • John the Ripper
  • Metasploit-Framework
  • Nikto
  • Nmap
  • sqlmap
  • WPScan
  • As well as being able to execute raw commands.

As a result, this is able to perform AI-assisted penetration testing and solving CTF challenges in real time.

Articles Using This Tool

👉 How MCP is Revolutionizing Offensive Security


🔍 Use Case

The goal is to enable AI-driven offensive security testing by:

  • Letting the MCP interact with AI endpoints like OpenAI, Claude, DeepSeek, Ollama or any other models.
  • Exposing an API to execute commands on a Kali machine.
  • Using AI to suggest and run terminal commands to solve CTF challenges or automate recon/exploitation tasks.
  • Allowing MCP apps to send custom requests (e.g. curl, nmap, ffuf, etc.) and receive structured outputs.

Here are some example (using Google’s AI gemini 2.0 flash):

Example solving a web CTF challenge from RamadanCTF

https://github.com/user-attachments/assets/dc93b71d-9a4a-4ad5-8079-2c26c04e5397

Trying to solve machine “code” from HTB

https://github.com/user-attachments/assets/3ec06ff8-0bdf-4ad5-be71-2ec490b7ee27


🚀 Features

  • 🧠 AI Endpoint Integration: Connect your Kali to any MCP of your liking such as Claude Desktop or 5ier.
  • 🖥️ Command Execution API: Exposes a controlled API to execute terminal commands on your Kali Linux machine.
  • 🕸️ Web Challenge Support: AI can interact with websites and APIs, capture flags via curl and any other tool AI the needs.
  • 🔐 Designed for Offensive Security Professionals: Ideal for red teamers, bug bounty hunters, or CTF players automating common tasks.

🛠️ Installation and Running

On your Kali Machine

sudo apt install mcp-kali-server
kali-server-mcp

Otherwise for 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
GitHub에서 전체 README 보기

설치

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

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →