pentester-mcp

v0.5.0
pentester-mcp Checked 6 hours ago Published 20 days ago

Authorization-gated penetration testing MCP server for agentic AI

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pentest_load_engagement

Load the signed engagement file (JSON) that defines authorised scope and rules. Must be the first call. The file records who authorised the test, the validity period, in-scope domains/IPs/CIDRs/URLs, exclusions, and the rules of engagement (active scanning, exploitation, rate limit, testing window).

ParameterTypeDescription
path *string

pentest_scope_check

Check whether a target is inside the loaded engagement scope, without touching it.

ParameterTypeDescription
target *string

pentest_rules

Return the currently enforced rules of engagement (what the plugin will and will not do).

pentest_recon_dns

Resolve DNS records (A/AAAA/MX/NS/TXT/CNAME) for an in-scope domain. Passive.

ParameterTypeDescription
domain *string

pentest_recon_whois

Fetch WHOIS registration data for an in-scope domain. Passive.

ParameterTypeDescription
domain *string

pentest_recon_subdomains

Resolve common subdomain prefixes for a scoped domain (bounded list, rate limited).

ParameterTypeDescription
domain *string
prefixes

pentest_recon_portscan

TCP connect port scan of an in-scope host. ports: 'top', '22,80,443' or '8000-8100'.

ParameterTypeDescription
target *string
concurrencyinteger
portsstring
timeoutnumber

pentest_recon_tech

Fingerprint the technology stack of an in-scope URL from headers and response body.

ParameterTypeDescription
url *string

pentest_vuln_nmap

Run nmap with optional NSE scripts against an in-scope target (requires nmap).

ParameterTypeDescription
target *string
portsstring
scriptsstring
service_detectionboolean
timinginteger

pentest_vuln_nuclei

Run nuclei templates against an in-scope target; hits are stored as findings (requires nuclei).

ParameterTypeDescription
target *string
recordboolean
severitystring
tagsstring
templatesstring

pentest_vuln_tls

Audit TLS: supported protocol versions, certificate details, deprecated-version findings.

ParameterTypeDescription
host *string
portinteger

pentest_vuln_sslscan

Run sslscan for cipher/certificate weaknesses against an in-scope host (requires sslscan).

ParameterTypeDescription
target *string

pentest_web_headers

Audit security headers and cookie flags on an in-scope URL; records findings.

ParameterTypeDescription
url *string

pentest_web_crawl

Bounded same-host crawl collecting URLs, forms and parameters.

ParameterTypeDescription
url *string
depthinteger
max_pagesinteger

pentest_web_dirbust

Probe sensitive paths (e.g. .git/HEAD, .env) on an in-scope URL: built-in wordlist, or ffuf with use_ffuf=True.

ParameterTypeDescription
url *string
paths
use_ffufboolean
wordlist

pentest_web_reflection

Check whether user input is reflected unencoded using a benign canary (no payloads).

ParameterTypeDescription
params *array
url *string
methodstring

pentest_web_sqlmap

Run sqlmap in batch mode at bounded level/risk against an in-scope URL (requires sqlmap).

ParameterTypeDescription
url *string
levelinteger
paramstring
riskinteger

pentest_exploit_msf_check

Run a Metasploit module in CHECK mode against an in-scope target. Non-destructive verification. Requires rules.exploit_authorized = true in the engagement file.

ParameterTypeDescription
module *string
target *string
options

pentest_exploit_msf_run

Run a Metasploit module for real against an in-scope target. Requires rules.exploit_authorized = true AND rules.allow_payload_execution = true, and confirm_phrase must equal the engagement_id. Do not call this without explicit human confirmation that exploitation is in scope for this engagement.

ParameterTypeDescription
module *string
target *string
confirm_phrasestring
options

pentest_add_finding

Record a verified finding (severity: info|low|medium|high|critical).

ParameterTypeDescription
severity *string
target *string
title *string
cvestring
cvss
cwestring
descriptionstring
evidencestring
recommendationstring
toolstring

pentest_list_findings

List recorded findings, optionally filtered by severity or status.

ParameterTypeDescription
severity
status

pentest_report

Render the Markdown engagement report into the evidence directory.

ParameterTypeDescription
output_pathstring

pentest_tool_status

Show which external security tools are installed and which are missing.

pentest_audit_tail

Return the last n audit log entries (every tool call is recorded).

ParameterTypeDescription
ninteger

pentest_assets

Return the aggregated asset inventory: discovered hosts, services and technologies.

pentest_osint_crtsh

Discover subdomains from certificate transparency logs (crt.sh). Passive: never touches the target.

ParameterTypeDescription
domain *string
limitinteger

pentest_osint_wayback

List historical URLs and old artifacts from the Wayback Machine. Passive.

ParameterTypeDescription
domain *string
limitinteger

pentest_osint_js_secrets

Analyse served JavaScript: extract API endpoints and secret material (values redacted).

ParameterTypeDescription
url *string
max_scriptsinteger

pentest_osint_cloud_assets

Probe common cloud storage bucket names derived from the domain (S3, Azure, GCS, Spaces).

ParameterTypeDescription
domain *string

pentest_osint_takeover

Check for dangling CNAMEs pointing at claimable services (subdomain takeover).

ParameterTypeDescription
domain *string
candidates

pentest_osint_shodan

Query the Shodan API for exposed services (requires SHODAN_API_KEY in the environment).

ParameterTypeDescription
query *string
limitinteger

pentest_web_cors

Test CORS handling: origin reflection, wildcard, null origin, credentialed responses.

ParameterTypeDescription
url *string

pentest_web_jwt

Analyse a captured JWT offline: algorithm risks, missing claims, weak HMAC secret cracking.

ParameterTypeDescription
token *string
wordlist

pentest_web_open_redirect

Test whether a parameter controls the redirect target (open redirect).

ParameterTypeDescription
param *string
url *string
canarystring

pentest_web_host_header

Test Host / X-Forwarded-Host handling for cache poisoning and password-reset poisoning.

ParameterTypeDescription
url *string

pentest_web_param_discovery

Detect hidden or dynamic parameters by diffing responses with and without each parameter.

ParameterTypeDescription
params *array
url *string
methodstring

pentest_web_secrets_scan

Scan a page and its linked resources for credential material (values redacted).

ParameterTypeDescription
url *string
max_resourcesinteger

pentest_vuln_cve_lookup

Look up published CVEs for a product/version via the NVD API. Passive.

ParameterTypeDescription
product *string
limitinteger
recordboolean
versionstring

pentest_vuln_nmap_preset

Run nmap with a curated preset: web, smb, db, mail, remote, full-safe.

ParameterTypeDescription
preset *string
target *string
timinginteger

pentest_vuln_wpscan

Run WPScan against a WordPress site (requires wpscan). enumerate: subset of v,p,c,t,e.

ParameterTypeDescription
url *string
enumeratestring

pentest_vuln_testssl

Run testssl.sh for a deep TLS/cipher audit (requires testssl.sh or testssl).

ParameterTypeDescription
target *string

pentest_vuln_nikto

Run nikto web scanner (requires nikto). tuning: nikto tuning string like '12b' (6/DoS is blocked).

ParameterTypeDescription
target *string
tuningstring

pentest_exploit_payload_generate

Generate a payload with msfvenom into the engagement evidence directory. Requires rules.allow_payload_execution = true and confirm_phrase == engagement_id. Ask the human for explicit confirmation before calling this.

ParameterTypeDescription
lhost *string
lport *integer
payload *string
confirm_phrasestring
encoderstring
iterationsinteger
output_formatstring

pentest_exploit_credential_test

Test a small credential list against one service with hydra (max 50 users / 50 passwords). Requires rules.credential_testing = true and confirm_phrase == engagement_id. Successful passwords are redacted in the output.

ParameterTypeDescription
passwords *array
service *string
target *string
users *array
confirm_phrasestring
portinteger

pentest_assess_web

One-call web application assessment: headers, tech, crawl, sensitive paths, TLS, CORS, secrets. deep=True adds reflection testing and hidden parameter discovery on the parameters found.

ParameterTypeDescription
url *string
deepboolean

pentest_attack_surface

Map the external attack surface: DNS, WHOIS, certificate transparency, Wayback, takeover, cloud assets. Active steps run only when the engagement allows active scanning.

ParameterTypeDescription
domain *string
include_activeboolean

pentest_cvss

Compute the CVSS v3.x base score and severity for a vector string.

ParameterTypeDescription
vector *string

pentest_report_sarif

Export findings as SARIF 2.1.0 for security dashboards and code scanning.

ParameterTypeDescription
output_pathstring

pentest_report_html

Render a standalone HTML report with severity colouring and remediation notes.

ParameterTypeDescription
output_pathstring

pentest_remediation_plan

Prioritised remediation roadmap in waves: immediate, short-term, scheduled.

pentest_report_generic_json

Write findings as DefectDojo 'Generic Findings Import' JSON.

ParameterTypeDescription
output_pathstring

pentest_burp_import

Import a Burp Suite XML report/export and convert the issues into findings. Works with any Burp edition (Report -> XML export). No API required.

ParameterTypeDescription
path *string
recordboolean

pentest_burp_status

Probe the Burp REST API configured via BURP_API_URL/BURP_API_KEY (Burp Suite DAST/Enterprise).

pentest_burp_api

Controlled GET/POST passthrough to the Burp REST API on the configured base URL only.

ParameterTypeDescription
method *string
path *string
body

pentest_zap_status

Check ZAP API reachability and version (ZAP_API_URL, optional ZAP_API_KEY).

pentest_zap_import

Import a ZAP JSON report (Report -> Generate -> JSON) and convert alerts into findings.

ParameterTypeDescription
path *string
recordboolean

pentest_zap_spider

Start a ZAP spider against an in-scope URL; returns the scan id for polling.

ParameterTypeDescription
url *string

pentest_zap_active_scan

Start a ZAP active scan against an in-scope URL (attack traffic; respect the testing window).

ParameterTypeDescription
url *string

pentest_zap_scan_status

Poll a ZAP scan by id. kind: 'spider' or 'ascan'.

ParameterTypeDescription
scan_id *string
kindstring

pentest_zap_alerts

Pull alerts from ZAP (optionally for one base URL) and store them as findings.

ParameterTypeDescription
base_urlstring
recordboolean

pentest_defectdojo_status

Check DefectDojo API reachability (DEFECTDOJO_URL, DEFECTDOJO_API_KEY).

pentest_defectdojo_export

Export findings to DefectDojo: ensure product + engagement exist, then import scan results. scan_type examples: 'Generic Findings Import' (generated automatically), 'SARIF', 'Burp Scan', 'ZAP Scan' (with report_path pointing to the matching file). dry_run=True previews the request plan without contacting DefectDojo.

ParameterTypeDescription
engagement_name *string
product *string
close_oldboolean
dry_runboolean
minimum_severitystring
report_pathstring
scan_typestring

pentest_ctf_init

Create a ready-made engagement file for a CTF challenge box and return its path. A CTF platform handing you the target is the authorization; the statement is pre-filled. Load the result with pentest_load_engagement.

ParameterTypeDescription
target *string
engagement_idstring
hoursinteger
pathstring

pentest_ctf_decode

Decode challenge data (hex/base64/base32/url/rot13/atbash/binary/morse/reverse). to='auto' tries every applicable decoding and keeps printable results. Offline, no target contact.

ParameterTypeDescription
data *string
input_formatstring
tostring

pentest_ctf_encode

Encode data (hex, base64, base32, url, rot13, binary, reverse).

ParameterTypeDescription
data *string
encoding *string
input_formatstring

pentest_ctf_xor

XOR with a known key, or (key empty) brute-force single-byte keys ranked by plausibility.

ParameterTypeDescription
data *string
input_formatstring
keystring
key_formatstring

pentest_ctf_cipher_brute

Brute-force Caesar/ROT shifts and rank candidates by letter-frequency plausibility.

ParameterTypeDescription
data *string
input_formatstring

pentest_ctf_hash_identify

Identify a hash by format and suggest hashcat modes.

ParameterTypeDescription
value *string

pentest_ctf_hash_crack

Crack MD5/SHA1/SHA256/SHA512 against a built-in + provided wordlist (offline).

ParameterTypeDescription
value *string
wordlist

pentest_ctf_rsa

RSA analysis: factor small n (trial/Fermat/Pollard rho), Wiener, perfect square; decrypt if c given. Integers as decimal or 0x-hex strings to preserve precision.

ParameterTypeDescription
e *string
n *string
cstring

pentest_ctf_file_info

Forensics on a challenge file: magic bytes, entropy blocks, embedded file signatures.

ParameterTypeDescription
path *string

pentest_ctf_strings

Extract ASCII and UTF-16 strings from a binary.

ParameterTypeDescription
path *string
limitinteger
min_leninteger

pentest_ctf_binwalk

Run binwalk for embedded-file/signature analysis (requires binwalk).

ParameterTypeDescription
path *string

pentest_ctf_exif

Dump file metadata with exiftool (requires exiftool).

ParameterTypeDescription
path *string

pentest_ctf_stego

Stego quick checks: zsteg (PNG/BMP), steghide info, keyword strings.

ParameterTypeDescription
path *string

pentest_ctf_pcap

PCAP analysis via tshark: summary, endpoints, http, or follow first TCP stream.

ParameterTypeDescription
path *string
modestring

pentest_ctf_cyclic

De Bruijn cyclic pattern: generate one, or find a crash value's offset (mode='find').

ParameterTypeDescription
lengthinteger
modestring
ninteger
valuestring

pentest_ctf_checksec

Binary mitigations (RELRO, canary, NX, PIE, stripped) via checksec or readelf. Offline.

ParameterTypeDescription
path *string

pentest_ctf_ropgadget

ROP gadget listing via ROPgadget, capped at 500. filter: regex to select gadgets (e.g. 'pop|ret'). Offline.

ParameterTypeDescription
path *string
filter

pentest_ctf_cheatsheet

Payload families for a topic: ssti, lfi, cmdi, sqli, deserialization, xss, traversal, format_string, rop.

ParameterTypeDescription
topic *string

pentest_ctf_web_probe

CTF web probes: SSTI evaluation, LFI traversal, command-injection echo. Requires a loaded engagement.

ParameterTypeDescription
url *string
params

pentest_ctf_remote

Send bytes to a challenge service and read the response (pwn/rev interaction). Requires a loaded engagement.

ParameterTypeDescription
host *string
port *integer
input_formatstring
payloadstring
timeoutnumber