npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mpx-scan

v1.3.1

Published

Website security scanner CLI. Headers, SSL, cookies, and DNS auditing. AI-native with JSON output and MCP server.

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.

npm version License: Dual Node.js

Features

  • Zero-config security scanning — just point it at a URL
  • Beautiful terminal output with color-coded results
  • Structured JSON output--json for 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--schema returns 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-scan

Or run directly with npx:

npx mpx-scan https://example.com

Requirements: 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 --full

Usage

Basic Scan

mpx-scan https://example.com

JSON Output

mpx-scan https://example.com --json

Returns 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 cloudflare

Brief Output

mpx-scan https://example.com --brief

PDF 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.pdf

Generates a professional PDF report with color-coded findings, severity grades, and actionable recommendations.

Batch Scanning

cat urls.txt | mpx-scan --batch --json

Reads one URL per line from stdin, outputs one JSON result per line (JSONL format). Lines starting with # are ignored.

Tool Schema

mpx-scan --schema

Returns 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 server

AI 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 results
  • generate_fixes — Scan and generate platform-specific fix config
  • get_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 --json for machine-parseable output (stdout only, no ANSI)
  • Use --quiet to suppress banners and progress info
  • Use --batch --json for 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 --json

Free 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 tier

Upgrade 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

Related Tools


Made with ❤️ by Mesaplex