Kali

SecurityDesign and media

MCP configuration to connect AI agent to a Linux machine.

Your AI app calls the Kali MCP server, which does the security and design and media work and sends the result back to the chat.

About Kali

Kali is a community MCP server from Wh0am123, filed in our directory under security and design and media. MCP configuration to connect AI agent to a Linux machine.

At a glance

Publisher
Wh0am123 (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
889

How to set up Kali

  1. Follow the install steps in the Kali README; it is written in Python, so have that toolchain ready.
  2. Check the Kali README for keys or settings; the registry lists none that Kali requires.
  3. Add Kali to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Kali tools to confirm the connection.
  5. Run one read-only task with Kali first, and keep your app asking before each tool call until the results look right.

Kali compared with similar servers

  • Golf by golf-mcp has fewer GitHub stars than Kali (841 against 889); both are community servers, and both run locally.
  • Ida MCP Rs by blacktop has more GitHub stars than Kali (917 against 889); both are community servers, and both run locally.
  • Security Checklist by slowmist has fewer GitHub stars than Kali (836 against 889); both are community servers, and both run locally.

Before you connect Kali

  • Give Kali its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Kali tool call until you trust what it does with them.
  • Treat text that Kali fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Kali on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Kali

How marketing and sales teams put Kali to work, by company size. Pick the size closest to yours and start Kali on one use case.

Small business

  • A small business can use Kali to check its domains, logins and site for common gaps before they cost a customer's trust.
  • Owners can ask Kali whether a tool or vendor has known issues before connecting it to customer data.
  • A small business can use Kali to resize and adapt one design for every channel instead of hiring for each version.
  • Kali runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can use Kali to review what each connected app can access and remove keys nobody uses.
  • Security and web teams can connect Kali to scan campaign sites and forms before launch, not after an incident.
  • Creative teams can connect Kali so agents produce variants for testing while designers keep control of the master files.
  • Start Kali on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Kali in the security team's tooling, so marketing's agents and apps are reviewed like any other system.
  • Large orgs can use Kali to keep evidence for audits, showing which agents reached which data and when.
  • Enterprises can use Kali with brand rules and approved assets only, so generated work stays inside the brand system.
  • Kali is a community server, so have security review the code and pin a version before Kali touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Kali README

From Wh0am123/MCP-Kali-Server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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
./server.py

Command Line Options:

  • --ip <address>: Specify the IP address to bind the server to (default: 127.0.0.1 for localhost only)
    • Use 127.0.0.1 for local connections only (secure, recommended)
    • Use 0.0.0.0 to allow connections from any network interface (very dangerous; use with caution)
    • Use a specific IP address to bind to a particular network interface
  • --port <port>: Specify the port number (default: 5000)
  • --debug: Enable debug mode for verbose logging

Examples:

# Run on localhost only (secure, default)
./server.py

# Run on all interfaces (less secure, useful for remote access)
./server.py --ip 0.0.0.0

# Run on a specific IP and custom port
./server.py --ip 192.168.1.100 --port 8080

# Run with debug mode
./server.py --debug
On your MCP client machine

This can be local (on the same Kali machine) or remote (another Linux machine, Windows or macOS).

If you're running the client and server on the same Kali machine (aka local), run either:

## OS package
kali-server-mcp --server http://127.0.0.1:5000

# ...OR...

## Bleeding edge
./client.py --server http://127.0.0.1:5000

If separate machines (aka remote), create an SSH tunnel to your MCP server, then launch the client:

## Terminal 1 - Replace `LINUX_IP` with Kali's IP
ssh -L 5000:localhost:5000 user@LINUX_IP

## Terminal 2
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
./client.py --server http://127.0.0.1:5000

If you're openly hosting the MCP Kali server on your network (server.py --IP...), you don't need the SSH tunnel (but we do recommend it!) NOTE: ⚠️(THIS IS STRONGLY DISCOURAGED. WE RECOMMEND SSH)⚠️.

./client.py --server http://LINUX_IP:5000
Configuration for Claude Desktop:

Edit:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Example MCP-Kali-Server.json

Configuration for 5ire Desktop Application:
  • Simply add an MCP with the command python3 /absolute/path/to/client.py --server http://LINUX_IP:5000 and it will automatically generate the needed configuration files.

🔮 Other Possibilities

There are more possibilities than described since the AI model can now execute commands on the terminal. Here are some examples:

  • Memory forensics using Volatility

    • Automating memory analysis tasks such as process enumeration, DLL injection checks, and registry extraction from memory dumps.
  • Disk forensics with SleuthKit

    • Automating analysis from disk images, timeline generation, file carving, and hash comparisons.

⚠️ Disclaimer:

This project is intended solely for educational and ethical testing purposes. Any misuse of the information or tools provided, including unauthorized access, exploitation, or malicious activity, is strictly prohibited.

The author assumes no responsibility for misuse.

Questions about Kali

What is the Kali MCP server?

MCP configuration to connect AI agent to a Linux machine. Kali is maintained by Wh0am123 on GitHub at Wh0am123/MCP-Kali-Server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Kali MCP server?

Kali doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (Wh0am123/MCP-Kali-Server). Like most servers, Kali ends with a command or URL you paste into your AI app's MCP config.

Does Kali need an API key?

The registry lists no required keys for Kali. Check the Kali README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Kali an official MCP server?

No. Kali is a community server maintained by Wh0am123. Community servers can be excellent; read the code and the open issues before you give Kali access to company data.

What license is Kali under?

Kali is released under the MIT license, according to its GitHub repository. The license covers the code of Kali; the service it connects to has its own terms.