Research in practice

safe-web-audit-mcp: Consent-Based Defensive Web Audit

Defensive Model Context Protocol server for consent-based, non-invasive website security audits.

Released: v0.2.1Defensive AI · MCP · Consent-based Auditing · Security

Conceptual illustration of the project, not a measurement or product screenshot.

The question & approach

A defensive MCP server that performs non-invasive, consent-based safety checks on a single URL: security headers, cookie flags, redirect chains, TLS posture: without scanning, crawling, fuzzing, or active testing. Refuses to run unless authorisation is confirmed; SSRF-guarded against loopback, RFC1918, link-local, and cloud-metadata IPs. Ships six MCP tools, a one-click VS Code Agent Plugin, multi-arch GHCR Docker images, and stdio + Streamable HTTP transports.

Methods

MCP tooling, consent verification, SSRF guards, defensive audit checks.

Evidence & evaluation

How it was assessed

Released open-source; consent and SSRF guards validated against test scenarios.

Project-reported evaluation. See the source repository for implementation and experimental context.

Contributions

  • Six MCP tools for non-invasive, consent-based site audits.
  • Authorisation proof via DNS TXT, well-known file, or signed statement.
  • Fix generator with config snippets for Nginx, Apache, Caddy, Vercel, and more.
  • SSRF-guarded redirect handling with 5-hop cap.
  • One-click VS Code Agent Plugin and stdio + HTTP transports.

The hard parts

  • Designing a tool surface useful for auditors yet hard to weaponise as a scanner.
  • Building robust SSRF guards across IPv4/IPv6 and cloud-metadata ranges.
  • Shipping multi-arch Docker images with provenance via GitHub Actions.

Follow another question

More to explore.

Back to research