pentestmcp
MCP for interacting with Kali Linux using LLMs like Claude
Documentation
PentestMCP Server
This is a simple MCP (Model Context Protocol) server that runs within a Docker container based on Kali Linux. The server provides tools to run security scans:
- `run_nmap`: Run nmap scans on targets
- `run_gobuster`: Run directory brute force scans on web servers
It is an early POC and will be extended with more tools and features soon. To goal is to run pentests with just natural language without having to memorize long commands and lots of tools.
Requirements
- Docker
- Docker Compose
Setup
1. Clone this repository:
2. Build and start the Docker container:
docker-compose up -d3. Configure Claude Desktop to use this MCP server:
Edit your Claude Desktop configuration file located at:
Add the following configuration:
{
"mcpServers": {
"pentest-mcp": {
"command": "docker",
"args": ["exec", "-i", "pentest-mcp", "python3", "/app/pentest_mcp.py"]
}
}
}4. Restart Claude Desktop to load the new configuration.
Usage Examples
Once connected to Claude Desktop, you can ask questions like:
- "Can you scan 192.168.1.1 with nmap to find open ports?"
- "What services run on 192.168.1.1?"
- "Use gobuster to find hidden directories on http://example.com"
Note
This server includes very basic input validation, but you should only use it in trusted environments and on targets you have permission to scan.
Customization
To add custom wordlists, uncomment the volumes section in docker-compose.yml and add your wordlists to a local directory.
Frequently asked questions
What is pentestmcp?
pentestmcp is MCP for interacting with Kali Linux using LLMs like Claude
How do I install pentestmcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is pentestmcp open source?
Yes — it is hosted on GitHub at https://github.com/dev-lu/PentestMCP and has 4 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP