Make your AI coding agent check security headers and SSL expiry before it says "deployed" A developer who runs SiteDoctor released an MCP server that lets coding and ops agents run a pre-deploy check on HTTPS, SSL certificate expiry and standard security headers before declaring a deployment done. The scan_website tool reports missing headers such as CSP, HSTS and X-Frame-Options with weighted score deductions, and flags certificates expiring within 14 days; the author's own homepage scored 91 (grade A) but was flagged for a missing CSP header. The server is available at a Streamable HTTP endpoint with a free tier of 25 credits, enough for about eight full scans at 3 credits each, with paid packs from $9 to $99. Coding and ops agents are happy to call a deploy "done" once the build passes. A quick last check catches the boring failures that bite later: the site isn't on HTTPS, the certificate expires next week, or the standard security headers are missing. Disclosure: I run SiteDoctor, the MCP server used below. It has a free tier 25 credits, no signup , and this post shows exactly what it checks and what it doesn't. | Check | How it's reported | Score impact security, max 25 | |---|---|---| | HTTPS | Critical issue if the URL isn't https | -10 | | SSL certificate | https valid and ssl days remaining ; high-severity issue under 14 days | -6 when < 14 days | | Strict-Transport-Security | "Missing header" when absent | -4 | | Content-Security-Policy | same | -4 | | X-Frame-Options | same | -3 | | X-Content-Type-Options | same | -2 | | Referrer-Policy | same | -2 | | Permissions-Policy | same | -1 | | Server header with a version | "Server version exposed" | -1 | The same scan website call also scores SEO, performance, mobile readiness and broken links. scan website {"url": "https://manhourplan.com/"} , captured from the live server on 2026-11-21. My own homepage was missing a CSP header, and the scan said so trimmed : { "url": "https://manhourplan.com/", "score": 91, "grade": "A", "categories": {"seo": 28, "performance": 22, "security": 21, "mobile": 10, "content links": 10}, "metrics": {"https": true, "https valid": true, "ssl days remaining": 57, "response ms": 132}, "issues": {"cat": "security", "sev": "medium", "msg": "Missing header: CSP"}, {"cat": "seo", "sev": "low", "msg": "Title length 77 chars ideal 30-60 "}, {"cat": "performance", "sev": "low", "msg": "No Cache-Control header on HTML"} } Endpoint: https://manhourplan.com/doctor/mcp Streamable HTTP, official registry name com.manhourplan/sitedoctor . Claude Code: claude mcp add --transport http sitedoctor https://manhourplan.com/doctor/mcp Cursor ~/.cursor/mcp.json or any client that takes a remote URL: { "mcpServers": { "sitedoctor": { "url": "https://manhourplan.com/doctor/mcp" } } } Then ask the agent to call register free key and pass the returned key as api key . A full scan costs 3 credits, so the free key covers about 8 scans. If you need more than the free credits, packs are $9 1,000 , $29 10,000 and $99 100,000 , paid by card on the SiteDoctor page https://manhourplan.com/sitedoctor/?ref=devto d . Full guide: original post https://manhourplan.com/tools/security-headers-ssl-check-mcp/?ref=devto d .