← Back to directory
P

Pentest MCP

Community
An MCP server for authorized security assessments.
Category
Other #288 of 678
Stars
★ 149 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js 22.19.0+ · Docker
Credentials
No credential needed
License
AGPL-3.0
Last commit
Tools
36
53FMRS · D

The README documents a broad tool catalog, engagement target and time gates, durable evidence, analyst-reviewed reporting, and stdio plus authenticated Streamable HTTP. SSE is explicitly disabled. Operators still need to configure network policy, authorization, and evidence protection; the server cannot validate that authorization is genuine or guarantee that third-party tools will not generate out-of-scope traffic.

Strongest · Documentation 15/20 Weakest · Maintenance 7/20

Reliability
8/20
Security and permissions
13/20
Maintenance
7/20
Documentation
15/20
Setup experience
10/20
Why each score
Reliability 8/20
The README describes the tool catalog, authorization and scope checks, audit records, cancellation, and failure records, and names a real acceptance script with stated requirements. However, no manifest, CI workflow, or committed tests are supplied to verify initialization, tool behavior, or edge cases. Static calibration caps reliability at 12, and the lack of reviewable execution evidence warrants a deduction.
Security and permissions 13/20
The README describes engagement, target, time-window, and plan-based call limits; bearer/OIDC checks for HTTP; remote execution disabled by default; private evidence storage; and disclosure of secondary scanner traffic and template risks. Deductions reflect that these controls are asserted only in the README without implementation files for corroboration, target checks are not a complete network boundary, and there is no evidence of per-call confirmation for dangerous scans. The supplied material does not establish a listed red line.
Maintenance 7/20
An AGPL-3.0 license and project/tool descriptions are provided, but there is no evidence of releases, commit history, dependency update policy, security response channel, or maintainer response. The stated 150 stars and zero open issues are discovery signals only and do not demonstrate sustained maintenance, so the score is substantially reduced.
Documentation 15/20
The README covers the workflow, installation, engagement registration, tools and evidence records, plan allowlists, reports, HTTP authentication, Docker configuration, and operational limits. It also discloses limitations of scope checks and network isolation. Deductions reflect the absence of a manifest and source files to verify the claims, plus no clear cost information or evidence of comprehensive troubleshooting guidance.
Setup experience 10/20
The README gives a Node.js version requirement, global npm install and launch commands, and explains the default stdio mode plus Docker and HTTP configuration. However, it lacks a ready-to-use configuration for a mainstream MCP client; HTTP setup requires several identity-provider settings, and native setup depends on multiple external binaries. No CI and key-path test evidence is supplied, so static calibration keeps setup at or below 15.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

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 and side effects

  • 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.

Setup

Before you start

Runtime:Node.js 22.19.0+ · Docker

MCP_OAUTH_CLIENT_SECRET optionalsecret Client secret used when the identity provider requires introspection client credentials.
Other optional settings (25)
PENTEST_DATA_DIR optional Sets the local evidence directory; otherwise the server uses a pentest-mcp directory under XDG_DATA_HOME or ~/.pentest-mcp.
XDG_DATA_HOME optional Optional data root used to determine the default local evidence directory.
MCP_NUCLEI_TEMPLATES_DIR optional Absolute path to operator-reviewed, signed Nuclei HTTP templates.
MCP_TRANSPORT optional Selects the transport, such as stdio or http.
MCP_SERVER_HOST optional Server listening host.
MCP_SERVER_PORT optional Server listening port.
MCP_AUTH_ENABLED optional Enables HTTP bearer authentication.
MCP_AUTH_MODE optional HTTP authentication mode; the documented example uses bearer.
MCP_ALLOWED_ORIGINS optional Exact list of allowed origins.
MCP_PUBLIC_BASE_URL optional HTTPS public base URL for the server.
MCP_OIDC_ISSUER optional OIDC issuer URL.
MCP_OIDC_JWKS_URL optional OIDC JWKS URL for bearer-token verification; an introspection URL can be used instead.
MCP_AUTH_AUDIENCE optional Audience required for authentication tokens.
MCP_AUTH_READ_SCOPE optional Maps the token scope required for evidence reads.
MCP_AUTH_WRITE_SCOPE optional Maps the token scope required for engagement and report changes.
MCP_AUTH_EXECUTE_SCOPE optional Maps the token scope required for scanners and command cancellation.
MCP_REMOTE_EXECUTION_ENABLED optional Set to true to permit authenticated HTTP clients to run assessment commands.
MCP_OIDC_INTROSPECTION_URL optional OIDC introspection endpoint URL that can be used instead of JWKS.
MCP_OAUTH_CLIENT_ID optional Client ID used when the identity provider requires introspection client credentials.
MCP_AUTH_SCOPES optional Legacy setting; the documentation says it is ignored.
MCP_COMMAND_TIMEOUT_MS optional Bounds command execution time.
MCP_COMMAND_OUTPUT_LIMIT_BYTES optional Bounds captured command output size.
MCP_BIND_ADDRESS optional Sets the HTTP bind address; non-loopback addresses require corresponding authentication and network configuration.
PENTEST_DATA_HOST_DIR optional Host evidence directory for Docker Compose; defaults to ./\.pentest-data.
MCP_NUCLEI_TEMPLATES_HOST_DIR optional Host directory of reviewed templates for Docker Compose; mounted at /reviewed-nuclei.

Requires Node.js 22.19.0 or newer and host binaries for the tools in use; the Docker image includes the listed tools. Install the npm package globally and run pentest-mcp for the default stdio transport. HTTP uses Streamable HTTP at /mcp and requires bearer authentication to be configured first; remote scanner execution is off by default. The README does not provide a server manifest, so no additional client configuration is confirmed.

MCP config · JSON
{
  "mcpServers": {
    "pentest-mcp": {
      "command": "pentest-mcp"
    }
  }
}

Works in clients that read an "mcpServers" key. For clients such as VS Code that use a different key, the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "pentest-mcp": {
      "command": "pentest-mcp"
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.pentest-mcp]
command = "pentest-mcp"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add pentest-mcp -- pentest-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm the Pentest MCP tool catalog appears in your MCP client, including getRuntimeStatus and listEngagements. Calling getRuntimeStatus should return the server's transport and runtime status.

Troubleshooting

  1. Check the Node.js version and whether required host tools are installed and on PATH; missing binaries or command failures do not mean the target is clear.
  2. Confirm the engagement is registered and open, and that the target, exclusions, time window, and plan allow the requested tool.
  3. For HTTP 401 responses, check bearer verification configuration; if remote scanning cannot start, check token scopes and MCP_REMOTE_EXECUTION_ENABLED.
  4. Check evidence-directory permissions, access to selected wordlist files, and that the Nuclei template directory is absolute and contains reviewed templates.
  5. If traffic capture or privileged Nmap scans fail, check container capabilities, host interface access, and permissions; the default container does not grant privileges required for SYN or OS detection.

Things to try

Once connected, you can ask your AI assistant things like:

  • Run an Nmap connect scan against app.example.com for my registered, in-scope engagement and report the evidence record ID.
  • List the evidence records for an engagement and retrieve one record.
  • Draft an assessment report from the saved evidence and list candidate findings for analyst review.

Tools 36

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

Use cases

Run scoped discovery and security validation in an engagement with written authorization.
Tie scans, credential checks, and external research activity to durable evidence records.
Review evidence and prepare client reports for analyst verification before publication.

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.

Similar servers

Source revision 88984ab54a16 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/pentest-mcp.svg)](https://followmcp.com/en/servers/pentest-mcp)