kali-mcp-server
A Kali Linux MCP server that integrates network security and penetration testing tools like Nmap, Whois, Dig, Ping, Nikto, Hydra, and SQLMap into a Dockerized environment for use with LLMs.
README
kali-mcp-server
A Kali Linux MCP (Model Context Protocol) Server built with Node.js for seamless integration with LLMs such as Claude, or any MCP-compatible client. It offers powerful network security and penetration testing tools like Nmap, Whois, Dig, Ping, Nikto, Hydra, and SQLMap inside a Dockerized Kali Linux setup.
DISCLAIMER !! IMPORTANT LEGAL NOTICE: This repository and the tools, code, scripts, configurations, documentation, and other materials contained herein (collectively, the “Materials”) are provided solely for lawful, educational, and authorized security-testing purposes. The author(s) and maintainers make no representations or warranties regarding the suitability, accuracy, completeness, or fitness of the Materials for any particular purpose.
Features
nmap_scan: Network scanning & host discoverywhois_lookup: Domain registration info lookupdig_dns: DNS record queryingping_host: ICMP ping testnetcat_connect: TCP/UDP port testingnikto_scan: Web vulnerability scanningsqlmap_scan: SQL Injection testinghydra_bruteforce: Login brute force attacks (controlled environment)dns_enum: DNS enumerationsubdomain_enum: Subdomain discoveryssl_scan: SSL/TLS certificate inspectionmetasploit_search: Search exploits from Metasploit DBmetasploit_exploit_info: Get detailed exploit module infoset_info: Check if Social Engineering Toolkit is installedtraceroute: Network path tracinghost_discovery: Active host discovery
Project Structure
kali-mcp-server/
├── Dockerfile
├── server.js
├── package.json
├── claude-config.json
├── .dockerignore
├── FEATURES.md
├── README.md
├── DISCLAIMER.md
├── LICENSE
└── screenshots/
├── scan_report.png
├── ssh_bruteforce.png
├── tools_list_1.png
├── tools_list_2.png
└── tools_menu.png
Quick Start
# Prequisitives
node server.js
Docker
1. Clone and Build Docker Image
git clone https://github.com/rangta10/kali-mcp-server.git
cd kali-mcp-server
docker build -t kali-mcp-server .
2. Run the Server
docker run -it kali-mcp-server
3. Config Claude AI
*Install Claude Desktop
*Turn on Claude Dveloper from settings
*Navigate To
C:\Users\<YourUsername>\AppData\Roaming\Claude
Edit this File
claude_desktop_config.json
Claude_desktop_config.json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"C:\\Users\\annan\\Desktop",
"C:\\Users\\annan\\Downloads"
]
},
"kali-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--privileged",
"--cap-add=NET_ADMIN",
"--cap-add=NET_RAW",
"kali-mcp-server:latest",
"node",
"/app/server.js"
]
}
}
}
Dockerfile
# kali-mcp-server (by rangta)
FROM kalilinux/kali-rolling
RUN apt update && apt install -y \
nmap whois dnsutils netcat-traditional nikto sqlmap hydra dnsenum sslscan metasploit-framework set traceroute nodejs npm
WORKDIR /app
COPY . .
RUN npm install || true
CMD ["node", "server.js"]
server.js
(unchanged from the repository — contains your MCP tool definitions and handlers, with copyright signature rangta)
LICENSE
License
Copyright (c) 2025 rangta
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
Screenshots
nmap scan
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.