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 targetsrun_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
-
Clone this repository:
-
Build and start the Docker container:
docker-compose up -d -
Configure Claude Desktop to use this MCP server:
Edit your Claude Desktop configuration file located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\\Claude\\claude_desktop_config.json
Add the following configuration:
{ "mcpServers": { "pentest-mcp": { "command": "docker", "args": ["exec", "-i", "pentest-mcp", "python3", "/app/pentest_mcp.py"] } } } - macOS:
-
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.
Recommend MCP Servers 💡
@rad-security/mcp-server
Rad Security MCP Server
asgardeo-mcp-server
Manages Asgardeo organization or WSO2 Identity Server deployments using LLM tools, enabling natural language interactions for various configuration tasks.
mcp-ipfs-server
A MCP server that integrates IPFS for decentralized data storage and sharing interactions
@johnpapa/mcp-starwars
An MCP server that integrates with the SWAPI Star Wars API to provide access to Star Wars characters, planets, films, species, vehicles, and starships data, demonstrating MCP server interaction with external APIs.
mac-messages-mcp
An MCP server that securely interfaces with your iMessage database via the Model Context Protocol (MCP), allowing LLMs to query and analyze iMessage conversations. It includes robust phone number validation, attachment processing, contact management, group chat handling, and full support for sending and receiving messages.
@kennyckk/mcp_hkbus
A MCP server providing real-time access to Hong Kong's KMB and Long Win Bus route information and arrival times.