pentool-mcp-server
中文 · Русский (RU)
🧠 pentool-mcp-server
MCP 服务器,用于 Pentool —— 本地 AI 助手,助力 Web 渗透测试
一个自包含的 stdio JSON-RPC 2.0 服务器,为任何 MCP 客户端(尤其是 Pentool)带来 AI 能力(BYO-LLM:选择检查项、绕过 WAF、发现非明显端点)。通过 uv 一条命令安装。
为何单独打包
MCP 是连接 LLM 模型与工具的开放协议。pentool-mcp-server 将 Pentool 的 MCP 层封装为可复用的 PyPI 包:本地 stdio 附加,无网络,无端口,秒级安装,无重量级依赖。
Related MCP server: pentestMCP
🔗 专为 Pentool 打造
此服务器是 Pentool 的 MCP 组件,Pentool 是一个专业的 Web 安全测试终端(兼容 Burp 的代理、扫描器、爬虫、入侵器——全部在 TUI 中)。它为 Pentool 的 AI 提供能力:
🎯 针对具体目标选择相关的 扫描检查项;
🛡 WAF 绕过 / 载荷建议;
🕷 在爬虫爬取过程中发现 非明显端点。
尝试完整栈:
uv tool install "pentool[ai]"→pentool ai setup→pentool。
⚡ 快速开始(uv)
# Install uv (if not present): https://docs.astral.sh/uv/
curl -LsSf https://astral.sh/uv/install.sh | sh
# Standalone — just the MCP server
uv tool install pentool-mcp-server
pentool-mcp-server --version
# Or together with Pentool and its AI extras
uv tool install "pentool[ai]"健康检查(stdio):
echo '{"jsonrpc":"2.0","id":1,"method":"ping"}' | pentool-mcp-server
# → {"jsonrpc": "2.0", "id": 1, "result": {"status": "ok"}}uv 是标准安装路径——隔离环境,与 Pentool 自身的安装方式完全一致。它使服务器远离系统 Python。
🚀 在 VPS / 容器中部署
服务器不开放任何端口,作为本地子进程运行——在任何主机上均安全。使用 uv 可使其远离系统 Python:
uv tool install pentool-mcp-server完整用户指南——docs/GUIDE.md。俄语版——README.ru。
🧩 MCP 工具
工具 | 描述 |
| MCP 协议握手 |
| 列出可用工具 |
| 为任务生成 LLM 回答( |
| 就绪检查(模型是否已安装) |
| 指向 GGUF 模型路径 |
| 进程存活检查 |
🔒 安全性
默认无网络。
pentool-mcp-server仅在本地进程内监听 stdio(标准输入→标准输出)。外部访问不可能——既不能从其他进程,也不能从其他主机。未经认证,请勿通过 TCP/0.0.0.0 暴露。 如果在外部网络端口上运行,任何能够写入标准输入/端口的人都可以调用
tools/call generate(资源消耗 + 向 LLM 发送目标数据)。MCP 没有内置认证——请绑定到127.0.0.1并通过防火墙进行防护。目标隐私。 数据(URL、载荷)仅在连接外部 LLM 提供商时才会离开主机;使用本地 GGUF 模型时,流量保留在机器上。
更多——docs/GUIDE.md。
🗺 路线图
stdio JSON-RPC 2.0 服务器(initialize / tools/list / tools/call / ping)
generate、health、configure工具在
model.py中实现真正的 LLM 运行器(llama-cpp-python)可选的 TCP 模式,带 HMAC 认证
📄 许可证
AGPL-3.0 —— 与 Pentool 相同的许可证。
Available Tools
3 toolsconfigureC
Принять параметры конфигурации сервера (напр. путь модели).
Inputs: model.
generateB
Сгенерировать ответ LLM по задаче. payload — строка запроса (данные цели), model — путь к GGUF-файлу модели (необязательно). При отсутствии модели вернёт ошибку setup required.
Inputs: task (required), payload (required), model.
healthB
Проверка готовности: вернёт статус, установлена ли модель.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: 'generate' for LLM inference, 'health' for readiness checking, and 'configure' for setting parameters. There is no overlap or ambiguity between them.
All tool names are simple, lowercase verbs that accurately describe their action ('generate', 'health', 'configure'). The pattern is uniform and predictable.
With 3 tools, the count is appropriate for a minimal MCP server focused on LLM inference. It could potentially benefit from a status tool or a list-models tool, but the current set is sufficient for its core purpose.
The tool surface covers basic lifecycle: configure (setup), health (readiness), and generate (infer). However, there is no tool for cancelling generation, listing available models, or inspecting current configuration, which are notable gaps for a production server.
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Security scanner for AI agents and MCP servers: injection, jailbreak, tool abuse.
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Related MCP Servers
- AlicenseDqualityCmaintenanceA Model Context Protocol server that integrates essential penetration testing tools (Nmap, Gobuster, Nikto, John the Ripper) into a unified natural language interface, allowing security professionals to execute and chain multiple tools through conversational commands.9133 npm150AGPL 3.0
- FlicenseNot gradedqualityCmaintenanceAn MCP server that exposes over 20 standard penetration testing utilities, such as Nmap, SQLMap, and OWASP ZAP, as callable tools for AI agents. It enables natural language control over complex security workflows for automated and interactive penetration testing.123-
- AlicenseAqualityCmaintenanceMCP server for TurboPentest — run AI-powered penetration tests and review findings from your coding assistant.1248 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server that connects an LLM via Ollama to security tools for autonomous or guided penetration testing from a terminal interface.14GPL 3.0