mpx-scan
v1.3.1
Published
Website security scanner CLI. Headers, SSL, cookies, and DNS auditing. AI-native with JSON output and MCP server.
Maintainers
Readme
mpx-scan 🔍
Professional website security scanner for developers and AI agents.
Check your site's security headers, SSL/TLS configuration, DNS settings, and get actionable fix suggestions — all from your terminal.
Part of the Mesaplex developer toolchain.
Features
- Zero-config security scanning — just point it at a URL
- Beautiful terminal output with color-coded results
- Structured JSON output —
--jsonfor CI/CD and AI agent consumption - MCP server — integrates with any MCP-compatible AI agent (Claude, Cursor, Windsurf, etc.)
- Actionable fix suggestions — copy-paste config for nginx, Apache, Caddy, Cloudflare
- Batch scanning — pipe URLs from stdin
- Self-documenting —
--schemareturns machine-readable tool description - Zero native dependencies — installs cleanly everywhere
Security Checks
- ✅ HTTP security headers (CSP, HSTS, X-Frame-Options, etc.)
- ✅ SSL/TLS certificate validity, expiration, protocol version
- ✅ Cookie security flags (Secure, HttpOnly, SameSite)
- ✅ Server information leakage
- ✅ CORS misconfiguration
- ✅ Mixed content detection
- ✅ DNS security (DNSSEC, CAA records) — Pro
- ✅ Subresource Integrity (SRI) — Pro
- ✅ Open redirect detection — Pro
- ✅ Exposed sensitive files — Pro
Installation
npm install -g mpx-scanOr run directly with npx:
npx mpx-scan https://example.comRequirements: Node.js 18+ · No native dependencies · macOS, Linux, Windows
Quick Start
# Basic scan
mpx-scan https://example.com
# JSON output
mpx-scan https://example.com --json
# Fix suggestions for nginx
mpx-scan https://example.com --fix nginx
# Deep scan (Pro)
mpx-scan https://example.com --fullUsage
Basic Scan
mpx-scan https://example.comJSON Output
mpx-scan https://example.com --jsonReturns structured JSON to stdout (progress/status goes to stderr):
{
"mpxScan": {
"version": "1.3.0",
"scannedAt": "2026-02-16T22:00:00.000Z",
"scanDuration": 350
},
"target": {
"url": "https://example.com",
"hostname": "example.com"
},
"score": {
"grade": "B",
"numeric": 72.5,
"maxScore": 100,
"percentage": 73
},
"summary": {
"passed": 12,
"warnings": 3,
"failed": 2,
"info": 0
},
"sections": { ... },
"tier": "free"
}Fix Suggestions
mpx-scan https://example.com --fix nginx
mpx-scan https://example.com --fix apache
mpx-scan https://example.com --fix caddy
mpx-scan https://example.com --fix cloudflareBrief Output
mpx-scan https://example.com --briefPDF Export
# Generate PDF report (auto-named)
mpx-scan https://example.com --pdf
# Specify output filename
mpx-scan https://example.com --pdf report.pdf
# Combine with JSON output
mpx-scan https://example.com --json --pdf report.pdfGenerates a professional PDF report with color-coded findings, severity grades, and actionable recommendations.
Batch Scanning
cat urls.txt | mpx-scan --batch --jsonReads one URL per line from stdin, outputs one JSON result per line (JSONL format). Lines starting with # are ignored.
Tool Schema
mpx-scan --schemaReturns a JSON schema describing all commands, flags, inputs, and outputs — designed for AI agent tool discovery.
CLI Reference
Usage: mpx-scan [url] [options]
Arguments:
url URL to scan
Options:
-V, --version Output version number
--json Output as structured JSON
--full Run all checks (Pro only)
--brief Brief one-line output
--quiet, -q Minimal output (no banners)
--no-color Disable ANSI color codes
--batch Read URLs from stdin (one per line)
--schema Output JSON schema for tool discovery
--pdf [filename] Export results as a PDF report
--fix <platform> Generate fix config (nginx, apache, caddy, cloudflare)
--timeout <seconds> Connection timeout (default: 10)
--ci CI mode: exit 1 if below --min-score
--min-score <score> Minimum score for CI mode (default: 70)
-h, --help Display help
Commands:
license Show license status
activate <key> Activate Pro license
deactivate Return to free tier
mcp Start MCP stdio serverAI Agent Usage
mpx-scan is designed to be used by AI agents as well as humans.
MCP Integration
Add to your MCP client configuration (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"mpx-scan": {
"command": "npx",
"args": ["mpx-scan", "mcp"]
}
}
}The MCP server exposes these tools:
scan— Scan a URL and return structured resultsgenerate_fixes— Scan and generate platform-specific fix configget_schema— Get full tool schema
Exit Codes
| Code | Meaning | |------|---------| | 0 | Success, no issues found | | 1 | Issues found or error | | 2 | Invalid usage or bad arguments |
Error Responses (JSON mode)
{
"error": "Description of what went wrong",
"code": "ERR_NETWORK"
}Error codes: ERR_NETWORK, ERR_SCAN, ERR_RATE_LIMIT, ERR_PRO_REQUIRED, ERR_NO_INPUT
Automation Tips
- Use
--jsonfor machine-parseable output (stdout only, no ANSI) - Use
--quietto suppress banners and progress info - Use
--batch --jsonfor JSONL processing - Check exit codes for pass/fail decisions in CI/CD
CI/CD Integration
# .github/workflows/security.yml
name: Security Scan
on: [push]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- run: npx mpx-scan https://mysite.com --ci --min-score 70 --jsonFree vs Pro
| Feature | Free | Pro |
|---------|------|-----|
| Daily scans | 3 | Unlimited |
| Security headers | ✅ | ✅ |
| SSL/TLS checks | ✅ | ✅ |
| Server info checks | ✅ | ✅ |
| JSON output | ✅ | ✅ |
| Batch scanning | ✅ | ✅ |
| MCP server | ✅ | ✅ |
| DNS security | ❌ | ✅ |
| Cookie security | ❌ | ✅ |
| SRI checks | ❌ | ✅ |
| Exposed files | ❌ | ✅ |
| Mixed content | ❌ | ✅ |
| Full scan (--full) | ❌ | ✅ |
License Management
mpx-scan license # Check status
mpx-scan activate MPX-PRO-XXXXXXXX # Activate Pro
mpx-scan deactivate # Return to free tierUpgrade to Pro: https://mesaplex.com/mpx-scan
License
Dual License — Free tier for personal use, Pro license for commercial use and advanced features. See LICENSE for full terms.
Links
- Website: https://mesaplex.com
- npm: https://www.npmjs.com/package/mpx-scan
- GitHub: https://github.com/mesaplexdev/mpx-scan
- Support: [email protected]
Related Tools
- mpx-api — API testing, mocking, and documentation
- mpx-db — Database management CLI
- mpx-secrets-audit — Secret lifecycle tracking and audit
Made with ❤️ by Mesaplex
