# PentestMCP

> Call penetration testing tools through MCP.

- **URL**: https://followmcp.com/en/servers/pentestmcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 122
- **FMRS Score**: 35/100 (Grade D)
- **Source**: https://github.com/RamKansal/pentestMCP
- **Transports**: stdio (local process)
- **Runtimes**: Docker
- **Auth**: No credential needed

## Overview
PentestMCP is a server built with the Python MCP SDK that exposes security assessment utilities such as Nmap, Nuclei, ZAP, and SQLMap through Docker to compatible MCP clients. It does not embed or directly connect to a specific LLM. The README lists more than 20 tools for reconnaissance, vulnerability scanning, web analysis, exploitation support, and Active Directory analysis.

## Best for
- Penetration testers and security assessors with written authorization.
- Users who want to invoke Docker-packaged security utilities from an MCP client.

## Not for
- Scanning or testing targets without explicit written authorization.
- Users seeking an embedded LLM or a setup that runs without Docker.

## Required permissions
- Docker must be installed and running; tools inside the container run as appuser.
- Selected tools may need network access to targets; ZAP tools require a ZAP instance reachable from the container.
- Use the tools only against systems for which you have explicit prior written authorization.

## Risks
- Scans and Active Directory tools can affect target systems, accounts, or networks; unauthorized use may be illegal.
- Docker itself runs with host privileges; the README advises caution with tools that modify files or need elevated system access.
- The README notes that underlying tools may remain vulnerable to crafted arguments if wrapper input handling is not robust.
- Mapping the ZAP port can expose it to the network; restrict access with a firewall and configure a ZAP API key.

## Client config (JSON)
```json
{"mcpServers":{"pentestMCP":{"command":"docker","args":["run","--rm","-i","ramgameer/pentest-mcp:latest"]}}}
```

## Tools (35)
- `run_subfinder`: Discover subdomains using Subfinder.
- `launch_nmap_scan`: Start an Nmap network scan.
- `fetch_nmap_results`: Retrieve Nmap scan results.
- `run_gobuster_scan`: Run Gobuster directory, file, or DNS brute forcing asynchronously.
- `check_gobuster_status`: Check Gobuster scan status.
- `launch_gofang_scan`: Start gofang web crawling.
- `fetch_gofang_results`: Retrieve gofang scan results.
- `run_harvester`: Run theHarvester asynchronously for OSINT collection.
- `check_harvester_status`: Check theHarvester task status.
- `run_dig_tool`: Run DNS dig queries.
- `fetch_whois_data`: Retrieve WHOIS information.
- `run_curl_tool`: Perform HTTP interactions with cURL.
- `launch_nuclei_scan`: Start an asynchronous template-based Nuclei vulnerability scan.
- `fetch_nuclei_results`: Retrieve Nuclei scan results.
- `launch_arjun_scan`: Start an Arjun HTTP parameter discovery scan.
- `fetch_arjun_results`: Retrieve Arjun scan results.
- `run_searchsploit`: Search the local Exploit-DB database.
- `run_sqlmap_tool`: Run SQLmap SQL injection testing asynchronously.
- `check_sqlmap_status`: Check SQLmap task status.
- `ad_user_enum`: Enumerate Active Directory users.
- `ad_shares_enum`: Enumerate Active Directory shares.
- `ad_smb_signing_check`: Check SMB signing.
- `ad_certipy_enum`: Perform Active Directory enumeration with Certipy.
- `ad_ldap_dump`: Dump LDAP information.
- `ad_bloodhound_collect`: Collect BloodHound data.
- `ad_asreproast`: Perform AS-REP Roasting.
- `ad_kerberoast`: Perform Kerberoasting.
- `ad_password_spray`: Perform password spray testing.
- `ad_coerce_petitpotam`: Perform PetitPotam authentication coercion testing.
- `ad_coerce_printerbug`: Perform PrinterBug authentication coercion testing.
- `ad_responder_poison`: Perform Responder poisoning.
- `ad_relay_setup`: Set up relay operations.
- `ad_check_credentials`: Check credentials.
- `ad_secrets_dump`: Dump Active Directory secrets.
- `ad_dcsync`: Perform DCSync.
