
wh0am123/mcp-kali-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
AIエージェントをLinuxマシンに接続するための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アプリがカスタムリクエスト(例:curl、nmap、ffufなど)を送信し、構造化された出力を受け取ることを可能にする。 以下は(GoogleのAI Gemini 2.0フラッシュを使った)いくつかの例です: https://github.
概要(AI 翻訳)
**MCP Kali Server(MKS)**は、MCPクライアント(例:Claude Desktopや5ire)をAPIサーバーに接続し、Linux端末上でコマンドを実行することを可能にする軽量APIブリッジです。
このMCPはターミナルコマンドの実行や、以下を用いてウェブアプリケーションとやり取りすることが可能です:
Dirbenum4linuxgobusterHydraJohn the RipperMetasploit-FrameworkNiktoNmapsqlmapWPScan- さらに生のコマンドを実行することも可能です。
その結果、AI支援によるペネトレーションテストやリアルタイムでCTFチャレンジの解決が可能となります。
このツールを使った記事
👉 **MCPが攻撃警備を革命的に変える方法 **
🔍 ユースケース
目標は、以下によってAI駆動の攻撃的セキュリティテストを可能にすることです:
- MCPがOpenAI、Claude、DeepSeek、OllamaなどのAIエンドポイントとやり取りできるようにすること。
- Kaliマシン上でコマンドを実行するためのAPIを公開すること。
- AIを活用してCTFチャレンジを解決したり、偵察・悪用タスクを自動化したりするための端末コマンドを提案・実行すること。
- MCPアプリがカスタムリクエスト(例:
curl、nmap、ffufなど)を送信し、構造化された出力を受け取ること。
以下は(GoogleのAIgemini 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:
Dirbenum4linuxgobusterHydraJohn the RipperMetasploit-FrameworkNiktoNmapsqlmapWPScan- 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
curland 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
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →