pentest-mcp-extended

pentest-mcp-extended

An MCP server that extends kali-mcp with cloud (AWS/Azure/GCP), API/GraphQL/JWT, OSINT, container/K8s, IaC/SAST, mobile, binary analysis, and reporting tools, all accessible via an HTTP MCP endpoint.

Category
访问服务器

README

pentest-mcp-extended

CI

An MCP server that extends kali-mcp into three areas it doesn't cover: Cloud (AWS/Azure/GCP), API / GraphQL / JWT, and OSINT depth. Same architecture as kali-mcp — a Dockerized toolbox exposed over an HTTP MCP endpoint with an execute_command escape hatch plus typed, per-technique tools — so it drops straight into the same agent workflow and runs alongside kali-mcp.

Authorized use only. This is red-team / penetration-testing tooling. Use it exclusively against systems you own or have written permission to test (engagement scope, your own lab, or a CTF). Set PENTEST_SCOPE and keep it accurate — network-facing tools refuse out-of-scope targets. You are responsible for staying within your authorization and the law.

What it adds

Category MCP tools
Cloud cloud_enum, aws_whoami, scoutsuite_scan, prowler_scan
API / GraphQL / JWT graphql_fingerprint, graphql_introspect, api_route_scan, param_discover, jwt_analyze, jwt_crack, jwt_tamper
OSINT harvester, subdomain_enum, username_hunt, email_recon
Container / K8s trivy_image, trivy_fs, kube_bench, kube_hunter, docker_bench
K8s / escape (deep-dive) kubectl_access_review, kubectl_enum, kubeaudit_scan, trivy_k8s, container_escape_check, amicontained
IaC / secrets / SAST checkov_scan, tfsec_scan, gitleaks_scan, trufflehog_scan, semgrep_scan
Mobile (static) apk_decode, apk_to_java, apk_manifest, mobile_sast
Binary / RE / exploit-dev bin_checksec, bin_info, bin_strings, rop_gadgets, r2_script
Reporting add_finding, list_findings, clear_findings, generate_report
Core execute_command (arbitrary tool), list_capabilities (self-test)

Underlying tools: cloud_enum, ScoutSuite, Prowler, awscli · graphw00f, kiterunner, arjun, jwt_tool · theHarvester, amass, sherlock, holehe · Trivy, kube-bench, kube-hunter, docker-bench · Checkov, tfsec, gitleaks, trufflehog, Semgrep · apktool, jadx, mobsfscan · checksec, radare2, ROPgadget, pwntools.

File-based scanners (IaC, mobile, binary) read from /work — drop the target code/APK/binary into ./work on the host.

Architecture

Agent (Claude Code / Cursor / …)
        │  MCP over HTTP
        ▼
http://localhost:6667/mcp   ── FastMCP (streamable-http)
        │
        ▼
Kali container ── cloud / api / osint CLI tools
  • app/common.py — shared FastMCP instance, command runner, scope guard.
  • app/tools_cloud.py, tools_api.py, tools_osint.py — typed tool wrappers.
  • app/server.py — registers modules, adds execute_command, serves MCP.

Quick start

cp .env.example .env       # set PENTEST_SCOPE to your engagement scope
docker compose up --build  # builds the toolbox, serves MCP on :6667

Register it with your agent (already provided in .mcp.json for Claude Code):

{ "mcpServers": { "pentest-extended": { "type": "http", "url": "http://localhost:6667/mcp" } } }

Then drive a session with the bundled commands:

/pentest-ext-audit acme-lab.com     # remote assessment: cloud / API / OSINT
/pentest-ext-artifacts              # static analysis of files dropped in ./work

Running natively on Kali (no Docker)

On a Kali host you can install every tool and run the server directly:

./setup-kali.sh          # install all tools (apt + pipx + release binaries)
./setup-kali.sh --run    # install, then start the MCP server on :6667

Then launch Claude Code in this directory — it auto-detects .mcp.json (localhost:6667). Docker (above) is still the most reproducible option; the script is the convenience path when you already live on Kali.

Starting the server by hand (not via setup-kali.sh --run)? Set a writable REPORTS_DIR, otherwise findings default to the absolute /reports and fail for a non-root user:

REPORTS_DIR=./reports python3 -m app.server

Smoke-testing the stack

Validate the whole thing in one command on the VM:

./test.sh --docker          # build + start Docker, then run all checks
./test.sh                    # server already running (Docker or native)
./test.sh --url http://VM-IP:6667/mcp   # test a remote endpoint

Three layers, no external target touched: (1) offline unit check of the CVSS 3.1

  • remediation logic, (2) server reachability + tool inventory via list_capabilities, (3) a safe add_finding -> generate_report dry-run.

CI vs. host validation. GitHub CI validates our code — it compiles every module, runs the reporting unit tests, and builds a slim image (Dockerfile.ci, python-slim + our code) to smoke-test the live MCP server, tool registration and report pipeline. It deliberately does not build the full Kali toolchain image (Dockerfile) — that's too heavy for a free runner and is validated on your Kali host instead, where ./test.sh --docker and list_capabilities confirm all 35+ tools are present.

Auditing your own cloud accounts

scoutsuite_scan / prowler_scan use the container's ambient credentials. Mount them read-only (uncomment in docker-compose.yml) and point them at accounts you own:

volumes:
  - ${HOME}/.aws:/root/.aws:ro

Scope enforcement

Set PENTEST_SCOPE=acme-lab.com,10.10.0.0 in .env. Any network-facing tool called with a target outside the list returns a [scope-block] refusal instead of running. Empty scope = tools run but append an authorization reminder.

Notes & extending

  • Add a tool: write a @mcp.tool() function in the relevant tools_*.py; it's auto-registered on import.
  • Reports (ScoutSuite/Prowler HTML) land in ./reports.
  • Out of scope by design: victim-facing phishing kits, malware distribution, and real-world detection-evasion payloads. Lab detection/evasion for purple-team exercises belongs in your kali-mcp knowledge base.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选