tooling-mcp (MCP wrappers for offensive-security CLIs)


What It Does

LLMs can’t run CLI tools without wrappers. tooling-mcp exposes seven security CLIs as MCP tools with:

  • Subprocess isolation โ€” never shell=True
  • Argument whitelisting โ€” only flags on an allowlist pass through
  • Timeout per tool โ€” long-running scans get killed, not hung
  • Output parsing โ€” each tool’s native output parsed into typed Pydantic models

Tools

ToolWhat it wrapsTypical use
nmap_scannmapPort + version scan with NSE scripts
nuclei_scannucleiTemplate-based vuln detection
gobuster_dirgobusterDirectory brute force
ffuf_fuzzffufFlexible fuzzer (dirs, params, vhosts)
httpx_probehttpxLive-host probing with metadata
semgrep_scansemgrepSAST on source code
trivy_scantrivyContainer + filesystem CVE scan

Example (from Claude Desktop)

“Scan this Dockerfile with Trivy, then run Semgrep over the Python code it builds.”

Claude chains trivy_scan โ†’ reads result โ†’ semgrep_scan โ†’ correlates findings.

Design Decisions

  • Subprocess not Python bindings โ€” one less failure mode (import drift, API shift).
  • Argument whitelist โ€” rejects shell metacharacters, path traversal, dangerous flags (-oG /etc/passwd).
  • Default-deny timeouts โ€” if a scan isn’t done in TIMEOUT_SEC, kill it and return partial.
  • Scope-aware โ€” refuses targets outside configured allowlist (RFC1918, localhost, user-provided CIDR).

Stack

Python 3.11+ ยท FastMCP ยท subprocess + asyncio ยท Pydantic schemas ยท each wrapped CLI installed separately.

โ† back