Perufitlife/web-exposure-mcp

πŸ”’ Security
0 Views
0 Installs

πŸ“‡ 🏠 🍎 πŸͺŸ 🐧 - Points an AI agent at a live URL and confirms publicly-served secret files by fetching the bytes β€” exposed .git, .env, JS source maps, backup/SQL dumps, directory listing, and dotfiles. Zero dependencies, read-only.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "perufitlife-web-exposure-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "perufitlife-web-exposure-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

web-exposure-mcp

An MCP server that lets an AI agent point at a live deployed URL and confirm whether sensitive files are actually being served to the public β€” exposed .git, .env secrets, JavaScript source maps, backup/SQL dumps, directory listing, and dotfiles β€” by fetching the bytes and validating the content. Other tools give you a checklist of maybes; this reports only what is genuinely reachable, with evidence.

⚑ Run it in one line, no install, no API key:

npx web-exposure-mcp        # MCP server (stdio) for your AI client
npx -p web-exposure-mcp web-exposure-scan --url https://your-site.com   # one-shot CLI

🀝 Want it done for you? Fixed-scope external-exposure audit β€” $99 / 24h: I verify every finding live and send a written report with the exact fixes and which credentials to rotate.

npm downloads license node deps

$ npx -p web-exposure-mcp web-exposure-scan --url https://demo.example.com
2 critical, 2 high, 1 medium β€” 5 CONFIRMED via anonymous fetch (39 requests)
  CRITICAL  /.git/config   valid .git served β€” full source history downloadable
  CRITICAL  /.env          5 env vars served β€” API_KEY, DATABASE_URL, JWT_SECRET…
  HIGH      /main.js.map   valid source map β€” 142 original sources reconstructable
  HIGH      /backup.sql    SQL dump content served
  MEDIUM    /uploads/      directory listing enabled (Index of /uploads)

Why this exists

Publicly-served .git and .env files are routinely called one of the most common high-impact findings in external attack-surface management β€” Acunetix, Invicti and Legba all ship dedicated detections, and live HackerOne reports for exposed .git/.env are filed continuously. June 2026 saw record leaked-credential dumps, a large share sourced from live, misconfigured servers rather than breached databases.

The MCP ecosystem already covers SSL, CORS, security-headers, SEO audits, and code/commit secret scanning (GitHub MCP, GitGuardian) β€” but no MCP server probes a deployed URL for publicly-served secret files. This fills that gap: your agent can audit the live edge of any deployment, the way an attacker actually sees it.

The hard part isn't requesting /.env β€” it's avoiding false positives. Most modern sites answer 200 OK with index.html for every unknown path (SPA catch-all). web-exposure-mcp therefore reads the bytes and fingerprints the content (e.g. .git/config must parse as a git config, .env must contain KEY=VALUE secret lines, an archive must start with the real magic bytes) β€” so it flags facts, not guesses.

Tools (MCP)

ToolWhat it does
scan_web_exposureProbe a live URL and return only the secret files genuinely served, with evidence. Args: url (required), only (optional check filter), timeout_ms.
list_exposure_checksList every check id, severity and the paths it probes β€” feed ids into only.

What it confirms

Check idSeverityConfirmed by
git_exposedcritical/.git/config parses as a git config, or /.git/HEAD is a valid ref/sha
env_exposedcriticaldotenv served with β‰₯2 KEY=VALUE secret lines (not HTML)
source_maphigh.js.map parses as a source map with a sources[] array
backup_artifacthighSQL-dump fingerprints, or ZIP/gzip magic bytes in the body
directory_listingmediumthe autoindex signature (Index of /…) is returned
dotfile_servedhigh.htpasswd hashes, .npmrc/.netrc tokens, .aws/credentials, .ssh/id_rsa, .DS_Store, docker auth

Every check fires at most once and only when the served bytes prove it. Read-only: the scanner never writes anything to the target, follows no redirects into other hosts, and reads at most 64 KB per file (so it fingerprints a multi-GB backup without downloading it).

Add to your AI client

Claude Desktop / Cursor / any MCP client β€” add to your mcpServers config:

{
  "mcpServers": {
    "web-exposure": {
      "command": "npx",
      "args": ["-y", "web-exposure-mcp"]
    }
  }
}

Then ask your agent: β€œScan https://staging.myapp.com for publicly exposed secret files.”

CLI usage

# Probe a live deployment
npx -p web-exposure-mcp web-exposure-scan --url https://your-site.com

# Run only specific checks
npx -p web-exposure-mcp web-exposure-scan --url https://your-site.com --only git_exposed,env_exposed

# Tighter per-request timeout
npx -p web-exposure-mcp web-exposure-scan --url https://your-site.com --timeout 8000

Output is JSON on stdout (pipe into CI) and a one-line summary on stderr.

Install (optional)

npm i -g web-exposure-mcp
web-exposure-mcp                       # start the MCP server (stdio)
web-exposure-scan --url https://site.com   # one-shot scan

Zero dependencies, pure Node β‰₯18. Every request goes straight from the tool to the target you name β€” nothing leaves your machine.

Sister tools

Same active-probe philosophy β€” confirm the real issue by fetching it, not by trusting a checklist. All MIT:

supabase-security Β· strapi-security Β· pocketbase-security Β· firebase-security Β· appwrite-security Β· nhost-security

License

MIT Β© Renzo Madueno


πŸ“š Part of Awesome Backend Security Auditors β€” the full collection of keyless active-probe auditors.

Related MCP Servers

13bm/GhidraMCP

🐍 β˜• 🏠 - MCP server for integrating Ghidra with AI assistants. This plugin enables binary analysis, providing tools for function inspection, decompilation, memory exploration, and import/export analysis via the Model Context Protocol.

πŸ”’ Security1 views
123Ergo/unphurl-mcp

πŸ“‡ ☁️ - URL intelligence for AI agents. 13 tools for security signals and data quality: redirect behaviour, brand impersonation detection, domain age, SSL validation, parked detection, URL structural analysis, DNS enrichment.

πŸ”’ Security0 views
82ch/MCP-Dandan

🐍 πŸ“‡ 🏠 🍎 πŸͺŸ 🐧 - Real-time security framework for MCP servers that detects and blocks malicious AI agent behavior by analyzing tool call patterns and intent across multiple threat detection engines.

πŸ”’ Security0 views
9hannahnine-jpg/arc-gate-mcp

🐍 - Runtime governance for MCP tool calls. Blocks prompt injection and capability abuse before tool results reach your agent.

πŸ”’ Security0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it β†’
β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.