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
| Tool | What it wraps | Typical use |
|---|---|---|
nmap_scan | nmap | Port + version scan with NSE scripts |
nuclei_scan | nuclei | Template-based vuln detection |
gobuster_dir | gobuster | Directory brute force |
ffuf_fuzz | ffuf | Flexible fuzzer (dirs, params, vhosts) |
httpx_probe | httpx | Live-host probing with metadata |
semgrep_scan | semgrep | SAST on source code |
trivy_scan | trivy | Container + 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.