SiteVigil MCP Server
Generates ready-to-commit Apache security header configuration as part of an audit fix, helping remediate header findings.
Generates ready-to-commit Cloudflare Pages header configuration as part of an audit fix, helping remediate header findings.
Generates ready-to-commit Netlify header configuration as part of an audit fix, helping remediate header findings.
Generates ready-to-commit nginx security header configuration as part of an audit fix, helping remediate header findings.
Generates ready-to-commit Vercel header configuration as part of an audit fix, helping remediate header findings.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SiteVigil
. o . o .
______ _____ _______ ______ __ __ _____ ______ _____ _
/ ____/ |_ _||__ __|| ____|\ \ / /|_ _| / ____/ |_ _|| |
| (___ | | | | | |__ \ \ / / | | | | ___ | | | |
\___ \ | | | | | __| \ \/ / | | | | |_ | | | | |
____) | _| |_ | | | |____ \ / _| |_ | |___| | _| |_ | |____
|_____/ |_____| |_| |______| \/ |_____| \_____/ |_____||______|
| | |
. . \___/One command. A security audit of any website — scored, explained, and with the fix written out for you.
pip install sitevigil
sitevigil aqles.github.iohttps://aqles.github.io
Score: 75/100 Grade: C HTTP 200
[MEDIUM ] Missing Content-Security-Policy header
No CSP header; the page has no second line of defence against XSS.
Fix: Add a CSP that fits your site, starting strict, e.g. Content-Security-Policy: default-src 'self'
[LOW ] Missing X-Content-Type-Options: nosniff
Header absent or not set to 'nosniff'.
Fix: Add: X-Content-Type-Options: nosniff
[MEDIUM ] No clickjacking protection
Neither X-Frame-Options (DENY/SAMEORIGIN) nor CSP frame-ancestors is set.
Fix: Add: X-Frame-Options: DENY (or SAMEORIGIN), or frame-ancestors 'none' in your CSP.SiteVigil is a small Python tool with zero dependencies — standard library only. It runs the checks that turn up again and again when real websites get audited, it works as a plain CLI for humans, and it speaks MCP so AI coding agents (Claude Code, Cursor, …) can run the same audit and fix what it finds.
Why not just use a free web checker?
Fair question — sites like SecurityHeaders or Mozilla Observatory grade a page for free, and for a one-off look they're fine. SiteVigil exists for everything around that moment:
It hands you the patch, not just the grade.
--fixgenerates a ready-to-commit config for your actual platform (Vercel, Netlify, Cloudflare Pages, nginx, Apache). On GitHub Pages it tells you plainly that headers are a platform limit and gives you the portable_headersfile instead of a lecture.It lives where you work. Terminal, CI (
--fail-under,--baseline), and inside your AI agent via MCP — a web page can't fail your deploy or re-check a fix.It checks more than headers. Exposed
.env/.git(verified by content, not status codes), CORS reflection, cookie flags, mixed content, missing SRI, TRACE, TLS expiry, security.txt.It remembers. Save a report, come back next week, and
--baselineshows exactly what regressed and what got fixed — web checkers have no memory of your last scan.
Related MCP server: web-security-guard
What it checks
Area | Checks |
Transport | HTTPS in place, HTTP → HTTPS redirect, TLS protocol, certificate expiry, redirect chains (downgrade hops, chains over 3 hops), main-page response time (flagged over 3 s) |
Security headers | HSTS, Content-Security-Policy (incl. |
Cookies | Secure, HttpOnly (on session-like cookies), SameSite |
CORS | Arbitrary-origin reflection, |
Exposed files |
|
Exposed services | Database ports open to the internet — MySQL/MariaDB (3306), PostgreSQL (5432), Redis (6379), MongoDB (27017), plain TCP connect |
Page content | Mixed content (HTTP subresources on an HTTPS page), cross-origin scripts without Subresource Integrity |
Methods & discovery | HTTP TRACE enabled, missing |
Active probes | Reflected XSS canary, open-redirect parameters, SQL error messages (incl. MongoDB), PUT/DELETE in OPTIONS Allow, SSTI canary ( |
Isolation | Cross-Origin-Opener-Policy, Cross-Origin-Resource-Policy, CSP hardening directives (object-src / base-uri) |
Domain (via DNS) | SPF and DMARC (only when the domain receives mail), CAA |
OSINT | DNS records (A/AAAA/NS/CNAME), domain registration via RDAP (registrar, registered/expiry dates, nameservers; expiry within 30 days is a low finding), subdomains from Certificate Transparency logs (crt.sh), hosting IP location and network (ipwho.is). All passive, free, no API key; |
Known vulnerabilities | Software/version fingerprints (nginx, Apache, PHP, OpenSSL, IIS, WordPress, Drupal, Joomla) matched against NVD CVEs, verified against each CVE's vulnerable version ranges — plus jQuery and WordPress plugins (Elementor, WooCommerce, Contact Form 7, Akismet) fingerprinted from the page source. Every match is cross-checked against the CISA Known Exploited Vulnerabilities catalog and tagged |
Info disclosure |
|
The full catalog — 58 checks, each with its reference — is one command away: sitevigil --checks. Checks are versioned as a ruleset (currently 2026.11); every report names the ruleset that produced it, and changes land in CHANGELOG.md, never silently. To keep a site up to date automatically, drop in the weekly GitHub Action from examples/github-action: it re-audits on a schedule and fails on score drops or regressions.
Every finding includes what was actually observed and a concrete fix — not just a warning label.
Two details that took real-world pain to learn:
No soft-404 false positives. Many sites (SPAs, some hosts) answer
200with their homepage for every path. SiteVigil only reports an exposed file when the response content actually matches a real.env/ git file — a bare200is never enough.CVE matches are verified, not googled. NVD search happily returns CVEs that only mention your software. SiteVigil re-checks every candidate against the CVE's own vulnerable configurations and version ranges before reporting it, scores it with NVD's primary CVSS, and prints the backport caveat next to every match — a version string alone never proves a server is unpatched.
Proxy-aware TLS. If you sit behind a corporate proxy (
https_proxy), the TLS check tunnels through it withCONNECTinstead of dying withWRONG_VERSION_NUMBER.
Install
pip install sitevigil
# or straight from the repo:
pip install git+https://github.com/aqles/sitevigil
# or just run it from a clone, no install needed:
python -m sitevigil example.comRequires Python 3.10+. That's it — nothing else gets installed.
Use it
sitevigil example.com # human-readable report
sitevigil example.com --json # structured output, for scripts and agents
sitevigil example.com --markdown # a report you can paste into an issue
sitevigil example.com --html > report.html # one self-contained HTML report
sitevigil a.com b.com c.com # audit several sites, with a summary table
sitevigil example.com --fail-under 80 # CI mode: exit 1 if the score is below 80
sitevigil example.com --fix # + a ready-to-commit header config for your platform
sitevigil example.com --json > monday.json # save a baseline
sitevigil example.com --baseline monday.json # next week: what regressed? (exit 1 on new findings)
sitevigil example.com --crawl 10 # audit up to 10 pages (sitemap.xml, else homepage links)
sitevigil example.com --badge > badge.svg # an SVG score badge for your README
sitevigil example.com --no-cve # skip the CVE lookup (faster, fully offline)
sitevigil example.com --no-kev # skip the CISA KEV cross-check (no KNOWN EXPLOITED tags)
sitevigil example.com --no-probes # skip the active input probes
sitevigil example.com --no-osint # skip the OSINT lookups (DNS, RDAP, CT subdomains, IP location)
sitevigil example.com --pentest aggressive # aggressive probes (blind SQLi incl. MSSQL, command-injection sleep, boolean blind SQLi, path traversal, PUT canary); authorized targets only
sitevigil example.com --no-ports # skip the exposed-database-port check
sitevigil example.com --html --output report.html # write any format straight to a file
sitevigil 127.0.0.1:8000 --allow-private # audit a local dev site (private hosts are refused by default)SSRF protection. SiteVigil fetches arbitrary URLs by design, so private, loopback, link-local, and cloud-metadata hosts (including 169.254.169.254) are refused by default — the report comes back unreachable with an error explaining why. Every redirect hop is re-validated, so a public URL that redirects to an internal one cannot slip through either. --allow-private turns this off for local development and tests; audit_site takes the same allow_private argument over MCP. Behind an https_proxy, the target is resolved by the proxy, so the local DNS answer is not authoritative and proxied names are passed through to the proxy's CONNECT verdict.
Upgrading to 0.17.0. Two intentional breaking changes: audits of private/loopback hosts now need --allow-private, and a non-loopback --mcp-http bind now needs --allow-remote plus SITEVIGIL_MCP_TOKEN (see below). Everything else is a drop-in upgrade — see CHANGELOG.md.
Scoring starts at 100 and loses points per finding (critical 25, high 15, medium 8, low 3), ending in a grade from A to F.
In a terminal, output is coloured (severity tags, score, grade) and a spinner + progress bar walks through the ten audit phases while the scan runs — both switch off automatically for pipes, files, and --json/--markdown/--html, or with --no-color / --no-progress (NO_COLOR is honoured too). The HTML report is a dark theme with severity chips and a per-severity summary.
Let your AI agent use it
SiteVigil ships an MCP server (still stdlib-only). Local agents use stdio; hosted agents can use the HTTP transport:
sitevigil --mcp # stdio, for desktop/CLI agents
sitevigil --mcp-http 8900 # HTTP on localhost, for hosted agents
sitevigil --mcp-http 8900 --mcp-host 0.0.0.0 --allow-remote # remote bind, requires SITEVIGIL_MCP_TOKEN--mcp-http binds localhost only by default. To bind another interface, pass --allow-remote and set a bearer token — every POST /mcp must then carry Authorization: Bearer $SITEVIGIL_MCP_TOKEN:
SITEVIGIL_MCP_TOKEN="$(openssl rand -hex 32)" \
sitevigil --mcp-http 8900 --mcp-host 0.0.0.0 --allow-remoteMCP is a shared protocol, so one server works with every MCP-compatible agent — Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Gemini CLI — no per-agent builds. Only the config file's location changes; ready-to-paste snippets for each agent live in examples/mcp. Interoperability is not just claimed: the server is tested against the official MCP Python SDK client (initialize → tool list → a real audit_site call).
Your agent gets two tools: audit_site (the full scored report) and suggest_fix (the audit plus a ready-to-commit, platform-specific header config). It can check a site before telling you it's "secure" — or audit the fix it just deployed.
Honest limits
It audits the response of the URL you give it (plus
/.env//.gitprobes). It is not a vulnerability scanner and it does not fuzz, brute-force, or log in anywhere.The database-port check is a plain TCP connect to four well-known ports: no banner grabbing, no login attempts. A firewalled port counts as closed — the check claims reachability, nothing more.
Only audit sites you own or have permission to test. The probes are read-only
GETs, but scanning other people's property without permission is still a bad idea.A high score means these basics are in place. It is not a guarantee that a site is secure.
OSINT lookups (RDAP, Certificate Transparency, IP location) walk up to the parent domain when the audited host is a subdomain: mail and certificate records are usually only published on the parent, so checking the bare subdomain alone produced false "missing DMARC / CAA" findings. The hosting-IP lookup now also works for IPv6-only hosts (IPv4 first, then IPv6).
Development
git clone https://github.com/aqles/sitevigil
cd sitevigil
PYTHONPATH=src python -m unittest discover -s tests -vThe test fixture is a local HTTP server that deliberately serves a soft-404 for unknown paths and a real-looking .env file — the audit has to catch one and ignore the other.
License
MIT — see LICENSE. Use it, fork it, ship it; just keep the copyright notice. If SiteVigil saves you from shipping a site with an exposed .env, a star is the going rate.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Website QA for your coding agent: audit SEO, performance, security, accessibility over MCP.
Security, SEO and AI-visibility scanner for web apps · free scans and focused checks via MCP.
Checks a website for AI agents: robots.txt, llms.txt, MCP, A2A. Ranked fixes, text to paste.
Scan any website or MCP server for agent readiness: 0-100 score, a fix per failing check. Free.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceExposes website auditing, finding retrieval, and safe fix application as MCP tools so AI agents can diagnose and remediate SEO, accessibility, and technical web issues.7MIT
- AlicenseBqualityBmaintenanceEnables AI agents to audit URLs for security headers, generate CSP Level 3 policies, compute SRI hashes, evaluate WCAG 2.2 contrast, and remediate headers.12MIT

io.github.spalofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents and CI systems to run deterministic website QA audits over MCP, with every finding backed by evidence and every result hashed and signed. It checks HTTP, TLS, security headers, SEO, links, accessibility, and robots.txt, with configurable pass/fail verdicts.MIT- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to scan any website's HTTP security headers — HSTS, CSP, framing, COOP/CORP, and cookies — returning a score along with fix snippets.MIT