pentester-mcp
v0.5.0Authorization-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).
| Parameter | Type | Description |
|---|---|---|
path * | string |
pentest_scope_check
Check whether a target is inside the loaded engagement scope, without touching it.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
domain * | string |
pentest_recon_whois
Fetch WHOIS registration data for an in-scope domain. Passive.
| Parameter | Type | Description |
|---|---|---|
domain * | string |
pentest_recon_subdomains
Resolve common subdomain prefixes for a scoped domain (bounded list, rate limited).
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
prefixes |
pentest_recon_portscan
TCP connect port scan of an in-scope host. ports: 'top', '22,80,443' or '8000-8100'.
| Parameter | Type | Description |
|---|---|---|
target * | string | |
concurrency | integer | |
ports | string | |
timeout | number |
pentest_recon_tech
Fingerprint the technology stack of an in-scope URL from headers and response body.
| Parameter | Type | Description |
|---|---|---|
url * | string |
pentest_vuln_nmap
Run nmap with optional NSE scripts against an in-scope target (requires nmap).
| Parameter | Type | Description |
|---|---|---|
target * | string | |
ports | string | |
scripts | string | |
service_detection | boolean | |
timing | integer |
pentest_vuln_nuclei
Run nuclei templates against an in-scope target; hits are stored as findings (requires nuclei).
| Parameter | Type | Description |
|---|---|---|
target * | string | |
record | boolean | |
severity | string | |
tags | string | |
templates | string |
pentest_vuln_tls
Audit TLS: supported protocol versions, certificate details, deprecated-version findings.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port | integer |
pentest_vuln_sslscan
Run sslscan for cipher/certificate weaknesses against an in-scope host (requires sslscan).
| Parameter | Type | Description |
|---|---|---|
target * | string |
pentest_web_headers
Audit security headers and cookie flags on an in-scope URL; records findings.
| Parameter | Type | Description |
|---|---|---|
url * | string |
pentest_web_crawl
Bounded same-host crawl collecting URLs, forms and parameters.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
depth | integer | |
max_pages | integer |
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
paths | ||
use_ffuf | boolean | |
wordlist |
pentest_web_reflection
Check whether user input is reflected unencoded using a benign canary (no payloads).
| Parameter | Type | Description |
|---|---|---|
params * | array | |
url * | string | |
method | string |
pentest_web_sqlmap
Run sqlmap in batch mode at bounded level/risk against an in-scope URL (requires sqlmap).
| Parameter | Type | Description |
|---|---|---|
url * | string | |
level | integer | |
param | string | |
risk | integer |
pentest_exploit_search
Search the local exploit-db archive (searchsploit). Read-only, no target contact.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
module * | string | |
target * | string | |
confirm_phrase | string | |
options |
pentest_add_finding
Record a verified finding (severity: info|low|medium|high|critical).
| Parameter | Type | Description |
|---|---|---|
severity * | string | |
target * | string | |
title * | string | |
cve | string | |
cvss | ||
cwe | string | |
description | string | |
evidence | string | |
recommendation | string | |
tool | string |
pentest_list_findings
List recorded findings, optionally filtered by severity or status.
| Parameter | Type | Description |
|---|---|---|
severity | ||
status |
pentest_report
Render the Markdown engagement report into the evidence directory.
| Parameter | Type | Description |
|---|---|---|
output_path | string |
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).
| Parameter | Type | Description |
|---|---|---|
n | integer |
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.
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
limit | integer |
pentest_osint_wayback
List historical URLs and old artifacts from the Wayback Machine. Passive.
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
limit | integer |
pentest_osint_js_secrets
Analyse served JavaScript: extract API endpoints and secret material (values redacted).
| Parameter | Type | Description |
|---|---|---|
url * | string | |
max_scripts | integer |
pentest_osint_cloud_assets
Probe common cloud storage bucket names derived from the domain (S3, Azure, GCS, Spaces).
| Parameter | Type | Description |
|---|---|---|
domain * | string |
pentest_osint_takeover
Check for dangling CNAMEs pointing at claimable services (subdomain takeover).
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
candidates |
pentest_osint_shodan
Query the Shodan API for exposed services (requires SHODAN_API_KEY in the environment).
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer |
pentest_web_cors
Test CORS handling: origin reflection, wildcard, null origin, credentialed responses.
| Parameter | Type | Description |
|---|---|---|
url * | string |
pentest_web_jwt
Analyse a captured JWT offline: algorithm risks, missing claims, weak HMAC secret cracking.
| Parameter | Type | Description |
|---|---|---|
token * | string | |
wordlist |
pentest_web_open_redirect
Test whether a parameter controls the redirect target (open redirect).
| Parameter | Type | Description |
|---|---|---|
param * | string | |
url * | string | |
canary | string |
pentest_web_host_header
Test Host / X-Forwarded-Host handling for cache poisoning and password-reset poisoning.
| Parameter | Type | Description |
|---|---|---|
url * | string |
pentest_web_param_discovery
Detect hidden or dynamic parameters by diffing responses with and without each parameter.
| Parameter | Type | Description |
|---|---|---|
params * | array | |
url * | string | |
method | string |
pentest_web_secrets_scan
Scan a page and its linked resources for credential material (values redacted).
| Parameter | Type | Description |
|---|---|---|
url * | string | |
max_resources | integer |
pentest_vuln_cve_lookup
Look up published CVEs for a product/version via the NVD API. Passive.
| Parameter | Type | Description |
|---|---|---|
product * | string | |
limit | integer | |
record | boolean | |
version | string |
pentest_vuln_nmap_preset
Run nmap with a curated preset: web, smb, db, mail, remote, full-safe.
| Parameter | Type | Description |
|---|---|---|
preset * | string | |
target * | string | |
timing | integer |
pentest_vuln_wpscan
Run WPScan against a WordPress site (requires wpscan). enumerate: subset of v,p,c,t,e.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
enumerate | string |
pentest_vuln_testssl
Run testssl.sh for a deep TLS/cipher audit (requires testssl.sh or testssl).
| Parameter | Type | Description |
|---|---|---|
target * | string |
pentest_vuln_nikto
Run nikto web scanner (requires nikto). tuning: nikto tuning string like '12b' (6/DoS is blocked).
| Parameter | Type | Description |
|---|---|---|
target * | string | |
tuning | string |
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.
| Parameter | Type | Description |
|---|---|---|
lhost * | string | |
lport * | integer | |
payload * | string | |
confirm_phrase | string | |
encoder | string | |
iterations | integer | |
output_format | string |
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.
| Parameter | Type | Description |
|---|---|---|
passwords * | array | |
service * | string | |
target * | string | |
users * | array | |
confirm_phrase | string | |
port | integer |
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
deep | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
include_active | boolean |
pentest_cvss
Compute the CVSS v3.x base score and severity for a vector string.
| Parameter | Type | Description |
|---|---|---|
vector * | string |
pentest_report_sarif
Export findings as SARIF 2.1.0 for security dashboards and code scanning.
| Parameter | Type | Description |
|---|---|---|
output_path | string |
pentest_report_html
Render a standalone HTML report with severity colouring and remediation notes.
| Parameter | Type | Description |
|---|---|---|
output_path | string |
pentest_remediation_plan
Prioritised remediation roadmap in waves: immediate, short-term, scheduled.
pentest_report_generic_json
Write findings as DefectDojo 'Generic Findings Import' JSON.
| Parameter | Type | Description |
|---|---|---|
output_path | string |
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.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
record | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
record | boolean |
pentest_zap_spider
Start a ZAP spider against an in-scope URL; returns the scan id for polling.
| Parameter | Type | Description |
|---|---|---|
url * | string |
pentest_zap_active_scan
Start a ZAP active scan against an in-scope URL (attack traffic; respect the testing window).
| Parameter | Type | Description |
|---|---|---|
url * | string |
pentest_zap_scan_status
Poll a ZAP scan by id. kind: 'spider' or 'ascan'.
| Parameter | Type | Description |
|---|---|---|
scan_id * | string | |
kind | string |
pentest_zap_alerts
Pull alerts from ZAP (optionally for one base URL) and store them as findings.
| Parameter | Type | Description |
|---|---|---|
base_url | string | |
record | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
engagement_name * | string | |
product * | string | |
close_old | boolean | |
dry_run | boolean | |
minimum_severity | string | |
report_path | string | |
scan_type | string |
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.
| Parameter | Type | Description |
|---|---|---|
target * | string | |
engagement_id | string | |
hours | integer | |
path | string |
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.
| Parameter | Type | Description |
|---|---|---|
data * | string | |
input_format | string | |
to | string |
pentest_ctf_encode
Encode data (hex, base64, base32, url, rot13, binary, reverse).
| Parameter | Type | Description |
|---|---|---|
data * | string | |
encoding * | string | |
input_format | string |
pentest_ctf_xor
XOR with a known key, or (key empty) brute-force single-byte keys ranked by plausibility.
| Parameter | Type | Description |
|---|---|---|
data * | string | |
input_format | string | |
key | string | |
key_format | string |
pentest_ctf_cipher_brute
Brute-force Caesar/ROT shifts and rank candidates by letter-frequency plausibility.
| Parameter | Type | Description |
|---|---|---|
data * | string | |
input_format | string |
pentest_ctf_hash_identify
Identify a hash by format and suggest hashcat modes.
| Parameter | Type | Description |
|---|---|---|
value * | string |
pentest_ctf_hash_crack
Crack MD5/SHA1/SHA256/SHA512 against a built-in + provided wordlist (offline).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
e * | string | |
n * | string | |
c | string |
pentest_ctf_file_info
Forensics on a challenge file: magic bytes, entropy blocks, embedded file signatures.
| Parameter | Type | Description |
|---|---|---|
path * | string |
pentest_ctf_strings
Extract ASCII and UTF-16 strings from a binary.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
limit | integer | |
min_len | integer |
pentest_ctf_binwalk
Run binwalk for embedded-file/signature analysis (requires binwalk).
| Parameter | Type | Description |
|---|---|---|
path * | string |
pentest_ctf_exif
Dump file metadata with exiftool (requires exiftool).
| Parameter | Type | Description |
|---|---|---|
path * | string |
pentest_ctf_stego
Stego quick checks: zsteg (PNG/BMP), steghide info, keyword strings.
| Parameter | Type | Description |
|---|---|---|
path * | string |
pentest_ctf_pcap
PCAP analysis via tshark: summary, endpoints, http, or follow first TCP stream.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
mode | string |
pentest_ctf_cyclic
De Bruijn cyclic pattern: generate one, or find a crash value's offset (mode='find').
| Parameter | Type | Description |
|---|---|---|
length | integer | |
mode | string | |
n | integer | |
value | string |
pentest_ctf_checksec
Binary mitigations (RELRO, canary, NX, PIE, stripped) via checksec or readelf. Offline.
| Parameter | Type | Description |
|---|---|---|
path * | string |
pentest_ctf_ropgadget
ROP gadget listing via ROPgadget, capped at 500. filter: regex to select gadgets (e.g. 'pop|ret'). Offline.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
filter |
pentest_ctf_cheatsheet
Payload families for a topic: ssti, lfi, cmdi, sqli, deserialization, xss, traversal, format_string, rop.
| Parameter | Type | Description |
|---|---|---|
topic * | string |
pentest_ctf_web_probe
CTF web probes: SSTI evaluation, LFI traversal, command-injection echo. Requires a loaded engagement.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
params |
pentest_ctf_remote
Send bytes to a challenge service and read the response (pwn/rev interaction). Requires a loaded engagement.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port * | integer | |
input_format | string | |
payload | string | |
timeout | number |