# Pentest MCP

> An MCP server for authorized security assessments.

- **URL**: https://followmcp.com/en/servers/pentest-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 149
- **FMRS Score**: 53/100 (Grade D)
- **Source**: https://github.com/DMontgomery40/pentest-mcp
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Node.js 22.19.0+, Docker
- **Auth**: No credential needed

## Overview
Pentest MCP is a TypeScript MCP server that gives professional testers a unified interface for authorized security assessments, including discovery, validation, traffic capture, credential checks, local audits, evidence retrieval, and report preparation. Active tool calls are tied to an engagement and durable records; targets and time windows are checked, and researchers must verify findings before publication. It is intended only for systems covered by explicit written authorization.

## Best for
- Experienced penetration testers with explicit authorization who can review scan results.
- Security teams that need engagement scope, tool allowlists, audit records, and evidence-backed reports.

## Not for
- Educational demonstrations, unauthorized scanning, or testing without written permission from the asset owner.
- Workflows that expect the server to determine vulnerability severity or automatically verify findings.
- Users who expect remote HTTP scanning to be enabled by default or want to bypass scope, time, and authentication gates.

## Required permissions
- Scans require a registered engagement and checks against allowed and excluded targets, time windows, and the assessment plan's tool allowlist.
- Stdio uses the local process and inherited pipes as its trust boundary; HTTP /mcp requests require configured, verified bearer authentication and the relevant read, write, or execute scope.
- Remote HTTP scanning also requires MCP_REMOTE_EXECUTION_ENABLED to be explicitly enabled; non-loopback listeners require an exact origin list, OIDC configuration, an HTTPS public URL, and network policy.
- Traffic capture requires network capabilities and interface access; local privilege audits are stdio-only; hash cracking and input files are constrained by local permissions and wordlist-directory rules.

## Risks
- Target checks cannot guarantee that third-party tools, DNS, redirects, scripts, or templates will not cause secondary network requests; align configuration with egress policy and operator review.
- Raw output, hashes, captured traffic, and reports are sensitive client data; protect access, retention, and backups.
- Scan output is an observation requiring analyst verification; timed out, failed, or truncated commands do not establish that a target is clean.
- Nuclei templates may contact other ports on a host or other destinations, so template review and network egress controls remain necessary.

## Client config (JSON)
```json
{
  "mcpServers": {
    "pentest-mcp": {
      "command": "pentest-mcp"
    }
  }
}
```

## Tools (36)
- `createEngagement`: Register an assessment engagement, its targets, exclusions, and testing window from authorization details.
- `getEngagement`: Inspect a registered engagement.
- `listEngagements`: List registered engagements.
- `closeEngagement`: Close an engagement and revoke later execution.
- `nmapScan`: Run an Nmap network scan and store evidence.
- `gobuster`: Run directory or resource enumeration with Gobuster.
- `nikto`: Check a web server with Nikto.
- `subfinderEnum`: Enumerate subdomains with Subfinder.
- `httpxProbe`: Probe HTTP services with ProjectDiscovery HTTPX.
- `ffufScan`: Run web fuzzing with ffuf.
- `nucleiScan`: Scan with operator-reviewed Nuclei HTTP templates.
- `trafficCapture`: Capture network traffic; requires suitable network capabilities and interface access.
- `hydraBruteforce`: Run credential testing with Hydra, subject to authorized engagement methods.
- `runJohnTheRipper`: Check password hashes with John the Ripper.
- `runHashcat`: Check password hashes with Hashcat.
- `generateWordlist`: Generate a wordlist from authorized clues; current passwords and patient data are excluded.
- `privEscAudit`: Audit privilege escalation risks on the local host or container over stdio.
- `extractionSweep`: Run a local data extraction sweep.
- `saveAssessmentPlan`: Save an assessment plan with allowed tools, methods, data handling, and stop conditions.
- `getAssessmentPlan`: Read the latest assessment plan version.
- `listAgentProfiles`: List configured assessment agent profiles.
- `runAgentAssessment`: Start a tool-using agent assessment subject to plan, target, and time checks.
- `reconcileAgentAssessment`: Reconcile an interrupted agent assessment after an operator confirms the prior process stopped.
- `recordResearchActivity`: Record external research activity as evidence.
- `draftAssessmentReport`: Draft a report or deterministic evidence inventory from bounded evidence.
- `listAgentReportDrafts`: List agent-generated report drafts.
- `getAgentReportDraft`: Read an agent report draft.
- `publishAgentReport`: Publish a report with findings explicitly verified by a reviewer.
- `listEngagementRecords`: Page through assessment evidence record summaries.
- `getEngagementRecord`: Read a specified evidence record when permitted.
- `createClientReport`: Create a client report from explicitly selected evidence and analyst-confirmed findings.
- `listClientReports`: List client reports for an engagement.
- `getClientReport`: Retrieve a client report as Markdown or JSON.
- `getRuntimeStatus`: Inspect transport, execution gates, command limits, and tool availability.
- `listActiveScans`: List active Nmap scans for an engagement.
- `cancelScan`: Cancel a scan for the specified engagement.
