PenTest MCP Server
The PenTest MCP Server is an AI-powered penetration testing assistant that exposes 25+ professional security tools to AI agents (e.g., Claude Desktop), enabling natural language-driven security assessments.
Session & Reporting
Initialize assessment sessions for a target (
init_session)Generate AI-powered, CVE-enriched security reports (
get_report)
Preset Scan Modes
Quick Scan (10โ15 min): WAF detection, subdomain enum, port scan, TLS audit, header analysis, SSRF/CSRF checks
Extensive Scan (20โ45 min): Full recon, top-1000 port scan, directory discovery, XSS, SQLi, CSRF, TLS audit, and more
Reconnaissance & OSINT
Subdomain enumeration:
subfinder,amassDNS recon:
dnsreconOSINT gathering:
theharvesterWeb tech fingerprinting:
whatwebWAF detection:
wafw00f
Network Scanning
Port/service scanning:
nmap,masscanTLS/SSL analysis:
sslyze,testssl
Vulnerability Scanning
Template-based scanning:
nucleiSQL injection:
sqlmapXSS:
dalfoxCommand injection:
commixWeb server scanning:
niktoCORS misconfigurations:
corscannerGraphQL security:
graphql_copJS library CVEs:
retire
Web Fuzzing & Discovery
Directory/file/vhost discovery:
ffuf,gobuster,wfuzzHTTP parameter discovery:
arjun
Secrets & Auth Testing
Secret/credential scanning:
trufflehogExposed
.gitdumping:git_dumperJWT security testing:
jwt_tool
Note: All active scanning tools require explicit
consent: trueto ensure ethical and authorized testing.
Provides capabilities to detect and analyze exposed Git repositories on target servers to identify potential source code leaks.
Integrates security tools like graphql-cop to perform vulnerability assessments and security auditing of GraphQL endpoints.
Maps penetration testing findings to the OWASP Top 10 security standards for comprehensive and industry-aligned reporting.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PenTest MCP Server Run a quick security scan on example.com and analyze the findings."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ก๏ธ PenTest MCP
AI-Powered Security Scanning via Model Context Protocol (MCP)
PenTest MCP is a specialized MCP server that exposes 25+ professional security tools to AI agents like Claude Desktop. It enables security researchers and developers to orchestrate penetration testing through natural language, automating complex tool chains and generating professional reports.
๐ Quick Start (Claude Desktop)
Install dependencies:
pip install -e .Configure Claude Desktop: Add the following to your
claude_desktop_config.json:{ "mcpServers": { "pentest": { "command": "python3", "args": [ "-m", "pentest_mcp.mcp_server" ], "cwd": "/absolute/path/to/pentest-mcp" } } }Restart Claude Desktop and start scanning:
"Initialize a security assessment for http://localhost:3001"
"Run a quick scan on http://localhost:3001 with consent"
"Check if the site has a WAF"
"Generate the final security report"
Claude Desktop Integration - Full orchestration via the Model Context Protocol.
25+ Security Tools - Including
nmap,sqlmap,nuclei,ffuf,nikto,testssl, and more.Natural Language Orchestration - Ask security questions, Claude picks the right tools.
Preset Scan Modes - Quick Triage and Extensive Assessment modes.
AI-Generated Reports - Professional markdown reports powered by Gemini AI.
CVE Enrichment - Findings are automatically cross-referenced with CVE data.
Related MCP server: Pentest-mcp
๐ ๏ธ Supported Tools (25)
Category | Tools |
Reconnaissance |
|
Vulnerability Scanning |
|
Web Fuzzing |
|
TLS/SSL |
|
Advanced/OSINT |
|
๐ง Installation & Setup
Prerequisites
Python 3.11+
Gemini API Key (for reports and analysis)
(Recommended) External tools installed:
nmap,sqlmap,ffuf,nuclei, etc.
Configuration
Create a .env file in the project root:
GEMINI_API_KEY=your_api_key_here
GEMINI_MODEL=gemini-flash-lite-latest๐ Project Structure
pentest-mcp/
โโโ pentest_mcp/
โ โโโ mcp_server.py # Main MCP server entry point
โ โโโ scan_modes.py # Quick & Extensive scan logic
โ โโโ session.py # Session & DB management
โ โโโ report_engine.py # AI report generation
โ โโโ llm_providers.py # Gemini API integration
โ โโโ tools/ # Tool wrappers & logic
โ โโโ models.py # Pydantic data models
โโโ vulnerable-app/ # Local test target (Node.js)
โโโ reports/ # Generated scan reports
โโโ pyproject.toml # Project dependencies๐ Security Notice
This tool is for authorized security testing only.
Always obtain explicit written permission before scanning any target.
Unauthorized testing is illegal and unethical.
The
consentflag is a mandatory requirement for all active scanning tools.
Built with ๐ Python ยท ๐ง Gemini AI ยท ๐ก๏ธ MCP
Available Tools
29 toolsamassD
Advanced subdomain enumeration
Inputs: domain (required), session_id (required).
arjunD
HTTP parameter discovery
Inputs: url (required), session_id (required).
commixC
Command injection vulnerability scanner
Inputs: url (required), session_id (required).
corscannerC
CORS misconfiguration scanner
Inputs: url (required), session_id (required).
dalfoxD
XSS vulnerability scanner
Inputs: url (required), session_id (required), params, consent.
dnsreconC
DNS enumeration and reconnaissance
Inputs: domain (required), session_id (required).
extensive_scanA
Comprehensive scan (20-45 min): WAF detection, full recon, top-1000 port scan, tech fingerprinting, TLS audit, directory discovery, XSS, SQLi, CSRF, sensitive file discovery
Inputs: target (required), consent (required).
ffufC
Fast web fuzzer for directory/file discovery
Inputs: url (required), session_id (required), mode, consent.
get_reportC
Generate final security assessment report
Inputs: session_id (required).
git_dumperC
Exposed .git directory dumper
Inputs: url (required), session_id (required).
gobusterC
Directory/file brute forcing
Inputs: url (required), session_id (required), mode.
graphql_copC
GraphQL security scanner
Inputs: url (required), session_id (required).
init_sessionC
Initialize new security assessment session
Inputs: target (required).
jwt_toolC
JWT security testing
Inputs: token (required), session_id (required), url.
masscanC
Fast port scanner
Inputs: target (required), session_id (required), ports.
niktoC
Web server vulnerability scanner
Inputs: url (required), session_id (required), consent.
nmapC
Port scanning and service detection
Inputs: host (required), session_id (required), ports, consent.
nucleiC
Fast vulnerability scanner with templates
Inputs: url (required), session_id (required).
quick_scanB
Fast triage scan (10-15 min): WAF detection, subdomain enum, top-port scan, header analysis, TLS audit, tech fingerprinting, sensitive file discovery, SSRF probe, CSRF check
Inputs: target (required), consent (required).
retireC
JavaScript library vulnerability scanner
Inputs: url (required), session_id (required).
sqlmapC
SQL injection detection and exploitation
Inputs: url (required), session_id (required), params, consent.
sslyzeC
TLS/SSL configuration analyzer
Inputs: host (required), session_id (required), port, consent.
subfinderC
Passive subdomain enumeration
Inputs: domain (required), session_id (required), consent.
testsslC
TLS/SSL security testing
Inputs: host (required), session_id (required), port.
theharvesterD
OSINT gathering from public sources
Inputs: domain (required), session_id (required).
trufflehogC
Secret and credential scanner
Inputs: target (required), session_id (required), scan_type.
wafw00fD
Web Application Firewall detection
Inputs: url (required), session_id (required).
wfuzzC
Web application fuzzer
Inputs: url (required), session_id (required), fuzz_param.
whatwebC
Web technology fingerprinting
Inputs: url (required), session_id (required), consent.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 29 tools
Most tools have distinct purposes (e.g., sqlmap vs nmap), but some overlap exists between masscan and nmap for port scanning, and multiple fuzzing tools like ffuf, wfuzz, and gobuster may cause confusion for an agent. Descriptions help differentiate but are not entirely unambiguous.
Tool names are consistently lowercase with underscores for multi-word names, but they do not follow a strict verb_noun pattern. Some are single words (e.g., amass, nikto) while others are compound (e.g., git_dumper, jwt_tool), which is consistent but not highly patterned.
With 29 tools, the server covers a broad range of penetration testing tasks, which is appropriate for a comprehensive tool set. While on the higher end, the count is justified by the diversity of functionality and does not feel excessive.
The tool set covers most key areas of penetration testing: reconnaissance, scanning, web fuzzing, vulnerability detection, and reporting. However, it lacks network vulnerability scanners (e.g., OpenVAS) and exploitation tools, leaving minor gaps. The inclusion of quick_scan and extensive_scan helps cover comprehensive workflows.
Maintenance
Related MCP Connectors
AI pentesting: run scans, triage vulnerabilities, review PRs, manage schedules and assets.
Governed security assessments, findings and signed reports for your domains, from your AI agent.
Pay-per-call cybersecurity for AI agents: vuln scans, threat intel, compliance, code security.
Security scanner for AI agents and MCP servers: injection, jailbreak, tool abuse.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that integrates various penetration testing tools, enabling security professionals to perform reconnaissance, vulnerability scanning, and API testing through natural language commands in compatible LLM clients like Claude Desktop.7-
- FlicenseNot gradedqualityDmaintenanceUnified penetration testing MCP server for Claude Desktop providing 34 security tools for reconnaissance, web scanning, code analysis, and authenticated testing.1-
- FlicenseNot gradedqualityDmaintenanceAI-powered Attack Surface Intelligence server that exposes industry-standard penetration testing tools via MCP, enabling AI agents to perform comprehensive security assessments.3-
- AlicenseNot gradedqualityDmaintenanceAI-driven penetration testing MCP server that equips Claude with 13 tools for automated reconnaissance, analysis, vulnerability validation, and exploitation.4GPL 3.0