Pentest-mcp
Click on "Install 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-mcpScan 192.168.1.1 for open ports"
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
Unified Penetration Testing MCP Server for Claude Desktop
Overview
A comprehensive penetration testing toolkit using Model Context Protocol (MCP). Works as a single unified MCP server that can be used directly from Claude Desktop.
Features
Claude Desktop Integration: All tools available via single MCP connection
34 Security Tools: Reconnaissance, web scanning, SAST, SCA, taint analysis, 0-day discovery, AI security testing, authenticated testing
Pure MCP Architecture: No LangChain, simple and lightweight
Docker Ready: Easy deployment with Docker
Quick Start
Docker Setup (Recommended)
Build the image:
docker build -t pentest-mcp .Configure Claude Desktop:
Edit your Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{ "mcpServers": { "pentest-mcp": { "command": "docker", "args": ["run", "--rm", "-i", "pentest-mcp"] } } }Restart Claude Desktop
Local Setup
# Install dependencies
pip install -r requirements.txt
# Run server
python pentest_mcp_server_stdio.pyAvailable Tools (34 total)
Network Scanning (4)
Tool | Description |
| Nmap network scan (basic/full/quick) |
| DNS resolution |
| Single port scan |
| HTTP header security analysis |
SSH/Access (5)
Tool | Description |
| SSH connection test |
| Execute remote commands via SSH |
| System enumeration (users, network, SUID, etc.) |
| CTF flag file search |
| FTP connection and directory listing |
Web Vulnerability Scanning (4)
Tool | Description |
| CMS/Framework detection |
| Directory/file brute force |
| SQL injection testing |
| XSS vulnerability testing |
Exploit/Intelligence (3)
Tool | Description |
| CVE vulnerability search |
| Product vulnerability lookup |
| Reverse shell payload generation |
Code Security (5)
Tool | Description |
| Check installed security tool availability |
| SAST - Static code analysis for vulnerabilities |
| SCA - Dependency/container vulnerability scan |
| Secret detection in Git repos/filesystems |
| High-speed web application fuzzing |
Code Analysis / 0-day Discovery (5)
Tool | Description |
| Map repository structure - entry points, key files |
| Extract function/class definitions |
| Analyze function calls, identify dangerous sinks |
| Find input sources → dangerous sinks |
| Generate security-focused code summary |
Taint Analysis (1)
Tool | Description |
| Track data flow from sources to sinks, determine exploitability |
AI Security Testing (3)
Tool | Description |
| Test AI APIs for prompt injection vulnerabilities |
| Attempt to extract system prompts from AI services |
| Test content filter bypass techniques (leetspeak, homoglyphs, etc.) |
Authenticated Testing (4)
Tool | Description |
| Make authenticated HTTP requests with OAuth/API key |
| Test for Insecure Direct Object Reference vulnerabilities |
| Test authentication/authorization bypass (token manipulation, header injection) |
| Test rate limiting implementation |
0-day Discovery Workflow
1. repo_map → Understand project structure
2. find_attack_surface → Identify inputs and dangerous operations
3. taint_analysis → Track actual data flow (source → sink)
4. semgrep_scan → Pattern-based vulnerability detection
5. [AI analysis] → Verify exploitabilityUsage Examples
Use natural language in Claude Desktop:
Scan 192.168.1.1 for open portsCheck security headers for https://example.comSearch for CVE-2021-44228 detailsAnalyze /path/to/repo for 0-day vulnerabilitiesRun taint analysis on /path/to/python/projectPenetration Testing Phases
Phase | Status | Tools |
Reconnaissance | ✅ | nmap, DNS, port scanning |
Web Application Testing | ✅ | Headers, SQLi, XSS, directory enumeration |
Vulnerability Assessment | ✅ | CVE search, product vulnerabilities |
Code Analysis (SAST/SCA) | ✅ | Semgrep, Trivy, TruffleHog |
0-day Discovery | ✅ | Taint analysis, attack surface mapping |
Exploitation | ✅ | Payload generation |
Gaining Access | ✅ | SSH, FTP connection |
Post-Exploitation | ✅ | System exploration, flag search |
AI Security Testing | ✅ | Prompt injection, system prompt extraction, filter bypass |
Authenticated Testing | ✅ | IDOR, auth bypass, rate limiting |
Security Warning
This tool is for authorized security testing only.
Permitted Use
Systems you own or manage
Systems with explicit written permission
CTF competition environments
Research/educational lab environments
Prohibited Use
Scanning systems without permission
Malicious purposes
Unauthorized access attempts
Use responsibly. We are not liable for illegal activities.
Project Structure
.
├── pentest_mcp_server_stdio.py # Main MCP server
├── tools/ # Tool implementations
│ ├── __init__.py # Package exports
│ ├── network.py # Network scanning (4 tools)
│ ├── ssh_access.py # SSH/access (4 tools)
│ ├── ftp_access.py # FTP (1 tool)
│ ├── web_scanner.py # Web vulnerability (4 tools)
│ ├── exploit.py # Exploit/intelligence (3 tools)
│ ├── code_security.py # SAST/SCA/Secret/Fuzzing (5 tools)
│ ├── code_analysis.py # 0-day discovery (5 tools)
│ ├── taint_analysis.py # Taint analysis (1 tool)
│ ├── ai_security.py # AI security testing (3 tools)
│ └── auth_testing.py # Authenticated testing (4 tools)
├── wordlists/ # Bundled wordlists (Docker)
├── requirements.txt # Python dependencies
├── Dockerfile # Docker build
└── README.md # This fileTechnical Stack
Protocol: Model Context Protocol (MCP)
Language: Python 3.10+
Libraries: mcp, nmap, asyncssh, httpx, ast (taint analysis)
External Tools: Semgrep, Trivy, TruffleHog, ffuf (optional)
Troubleshooting
MCP Server Not Recognized
Fully quit Claude Desktop (check task manager)
Restart Claude Desktop
Verify MCP server appears in settings
Dependency Errors
Use a virtual environment:
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtNmap Not Found
# Ubuntu/Debian
sudo apt-get install nmap
# macOS
brew install nmap
# Windows: Download from https://nmap.org/download.htmlLicense
MIT License
Contributing
Pull requests welcome. For major changes, please open an issue first to discuss.
Support
Report issues on GitHub Issues section.
Author: d01ki Repository: https://github.com/d01ki/Pentest-mcp License: MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/d01ki/Pentest-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server