Cockpit Lite MCP Server
by kom9
README.md
<div align="center">
# ๐ Cockpit Lite โ MCP Server
**Lightweight, single-file MCP Server for pentesting โ packed with *rare* features most MCPs don't have.**
[](https://modelcontextprotocol.io)
[](https://www.python.org/)
[](LICENSE)
[]()
Only **471 lines of code**, a single file, yet it ships features usually found only in much larger frameworks.
</div>
---
## ๐ฌ Demo

*Live terminal demo: parallel recon โ attack-path analysis โ report generation.*

*Self-contained HTML report with compliance auto-tagging (OWASP / PCI-DSS / CWE).*
---
## โจ Rare Features (seldom seen in other MCPs)
- ๐ **Parallel Recon** โ run `nmap`, `httpx`, `whatweb`, `subfinder` simultaneously via a thread pool
- ๐๏ธ **Findings DB + Dedup** โ SQLite-backed, automatic deduplication via SHA-256 hashing
- ๐ท๏ธ **COMPLIANCE Auto-Tag** โ every finding is auto-mapped to **OWASP Top 10 + PCI-DSS + CWE**
- ๐ต๏ธ **Intel Correlation** โ automatic Shodan & CVE enrichment after scans
- ๐งญ **Attack Path Analyzer** โ per-open-port exploit advice (MITRE-informed)
- ๐ **Scan Diff Engine** โ compare two scans to detect environment changes over time
- ๐ **Self-contained HTML Report** โ no WeasyPrint, pure Python (lighter & zero native deps)
## ๐งฐ Wrapped Tools
`nmap` ยท `rustscan` ยท `httpx` ยท `whatweb` ยท `subfinder` ยท `dnsenum` ยท `whois` ยท `nuclei` ยท `nikto` ยท `gobuster` ยท `ffuf` ยท `sqlmap` ยท `arjun` ยท `wafw00f` ยท `theharvester` ยท `searchsploit`
## ๐ฆ Installation
```bash
git clone https://github.com/kom9/-hacking-cockpit-lite-.git
cd -hacking-cockpit-lite-
pip install -r requirements.txt
```
Install the pentest tools you want to use (the server invokes tools **natively** on the host โ Kali / Parrot OS recommended):
```bash
sudo apt install -y nmap sqlmap nuclei nikto gobuster ffuf whatweb httpx subfinder
```
## โ๏ธ MCP Client Configuration
Add to your MCP client config (e.g. `claude_desktop_config.json`):
```json
{
"mcpServers": {
"cockpit-lite": {
"command": "python3",
"args": ["/absolute/path/to/hacking_cockpit_lite.py"],
"env": { "SHODAN_API_KEY": "", "VIRUSTOTAL_API_KEY": "" }
}
}
}
```
**Optional environment variables:** `SHODAN_API_KEY`, `VIRUSTOTAL_API_KEY` โ enable intel correlation.
## ๐ Exposed MCP Tools
| Tool | Description |
|------|-------------|
| `cockpit_status` | System health & installed tools |
| `run_recon` | **Parallel** recon + auto intel correlation |
| `run_web_scan` | whatweb + nikto + nuclei chain |
| `run_tool` | Run a single allowlisted tool |
| `project_create` | Create a new project |
| `findings_list` | List findings with compliance tags |
| `analyze_attack_path` | Attack path analyzer |
| `scan_diff` | Diff engine between two scans |
| `generate_report` | Self-contained HTML report |
### Usage example
```
> Create project "acme" with scope 192.168.1.0/24
> run_recon against 192.168.1.10 (parallel)
> analyze attack path for project "acme"
> generate HTML report for project "acme"
```
## ๐ Storage
Data is stored in `~/cockpit_lite/` (database `cockpit_lite.db`, reports, workspace).
## โ ๏ธ Legal & Responsible Use
For **authorized** security testing and education only. You are solely responsible for complying with all applicable laws and for having explicit written permission before testing any system or network. The author assumes **no liability** for misuse.
## ๐ License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivitySlowing
ResponsivenessNo issues