HP

halilkirazkaya/pentester-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

63 stars 9 forks 质量 77 趋势 15MIT

halilkirazkaya/pentester-mcp 是从 https://github.com/halilkirazkaya/pentester-mcp. 导入的 MCP 服务器候选

概览

halilkirazkaya/pentester-mcp 是从 https://github.com/halilkirazkaya/pentester-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

Pentester-MCP

为您的AI助手提供终极开源渗透测试武器库。


概述

Pentester-MCP 提供 模型上下文协议(MCP) 集成,支持超过 200+ 款最流行的开源网络安全和渗透测试工具。

通过将Pentester-MCP添加到AI助手(如Claude Desktop、光标或专用代理),AI获得了自主作为渗透测试者的能力:

  • 它可以运行nmap扫描,分析未开端口,并自动决定在发现的网络服务器上运行ffuf。
  • 它可以对其识别为易受攻击的参数执行sqlmap。
  • 通过注入每个MCP工具的AI优化文档字符串,它能够理解工具参数、所需标志和语法。

所有235个Python*_mcp.py工具都是从速查表智能生成的,以确保安全执行(例如防止shell注入、强制超时和处理大终端输出)。

兵工厂

tools/ 目录几乎包含了所有类别的 MCP 服务器:

  • 侦察: nmap, masscan, recon-ng, amass, subfinder, nuclei

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Pentester-MCP

Empower your AI assistants with the ultimate open-source penetration testing arsenal.

Overview

Pentester-MCP provides Model Context Protocol (MCP) integration for over 200 of the most popular open-source cybersecurity and penetration testing tools.

By adding Pentester-MCP to an AI assistant (like Claude Desktop, Cursor, or specialized agents), the AI gains the autonomous ability to act as a penetration tester:

  • It can run nmap scans, analyze open ports, and automatically decide to run ffuf on discovered web servers.
  • It can execute sqlmap against parameters it identifies as vulnerable.
  • It understands tool arguments, required flags, and syntaxes thanks to AI-optimized documentation strings injected into every MCP tool.

All 217 Python *_mcp.py tools were generated intelligently from cheat sheets to ensure safe execution (e.g., preventing shell injection, enforcing timeouts, and handling huge terminal outputs).

The Arsenal

The tools/ directory includes MCP servers for almost every category:

  • Reconnaissance: nmap, masscan, recon-ng, amass, subfinder, nuclei
  • Web Exploitation: sqlmap, commix, ffuf, gobuster, dirsearch, nikto
  • Active Directory & Network: impacket (full suite), bloodhound, responder, evil-winrm
  • Brute-Forcing & Password: hydra, medusa, john, hashcat, nxc
  • And 180+ more covering WiFi, Cloud, Kubernetes, and reversing.

Installation & Usage

Because of the massive amount of tools, installing everything on your host machine can be messy. Therefore, Pentester-MCP offers two primary ways to run: Docker Sandbox (Recommended) and Local Execution. Both use uv for dependency management — the project is defined in pyproject.toml, locked in uv.lock, and everything lives under src/.

The sandbox is based on Exegol — a well-known, curated set of Docker build recipes for pentesters (shell history, wordlists, custom tool configs). Exegol’s prebuilt Docker Hub tags are stale (frozen at v3.1.6 while upstream is at 3.2), so Pentester-MCP builds Exegol from source: the src/exegol-images git submodule pins the upstream recipe tree, and each src/docker/Dockerfile. runs Exegol’s own entrypoint.sh package installers on top of debian:13-slim. You always get the current Exegol tree — update it with one command and rebuild:

在 GitHub 查看完整 README

安装

docker exec -i pentester-mcp uv run --no-sync --project /app pentester-mcp configs/example-config.yaml
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "pentester_mcp": { "command": "docker", "args": [ "exec", "-i", "pentester-mcp", "uv", "run", "--no-sync", "--project", "/app", "pentester-mcp", "configs/example-config.yaml" ] } } }