Grade a website's HTTP security headers (A-F)

$0.002 per call20 free calls/day via MCP

Grade a website's HTTP security headers (A-F): HSTS, Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP, plus leaked server/version headers, with a fix hint for each missing one. Fast (under 2 s).

securityheadershstscspauditpentestcompliance

Call it from an AI agent (MCP)

Add the remote MCP server https://www.aypiai.online/mcp (Streamable HTTP, no auth) to Claude, Cursor, ChatGPT or any MCP client, then call the tool security_headers:

{
  "name": "security_headers",
  "arguments": {
    "url": "https://stripe.com"
  }
}

Call it over HTTP

curl -X POST https://www.aypiai.online/api/security-headers \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: YOUR_CREDIT_KEY" \
  -d '{"url":"https://stripe.com"}'

No key? Without one the endpoint answers 402 Payment Required with an x402 PAYMENT-REQUIRED header: any x402 client (USDC on Base, gasless) pays $0.002 and retries automatically. Or buy card credits at /credits (from $5, valid on all tools). Failed calls are never charged.

Input

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Public http(s) URL"
    }
  },
  "required": [
    "url"
  ]
}

Example output

{
  "url": "https://example.com/",
  "grade": "C",
  "score": 57,
  "missing": [
    "content-security-policy"
  ],
  "present": {
    "strict-transport-security": "max-age=31536000"
  }
}

Related tools

Read and parse a website's robots.txt ($0.002) · Check a site's HTTPS setup ($0.002) · Get the raw HTTP response headers of any URL, with status code, final URL after redirects and response time ($0.001) · Quick on-page SEO audit with a 0-100 score ($0.005) · Check a domain's email setup and spoofing protection ($0.003) · Detect analytics, ad and tracking scripts on a web page (Google Analytics/Tag Manager, Meta Pixel, TikTok, LinkedIn, Hotjar, Clarity, Segment, Mixpanel, HubSpot, Plausible...), cookie-consent tools and all third-party script domains ($0.003) · Page performance basics without a browser ($0.002)

Rever: website intelligence for AI agents. MCP server: https://www.aypiai.online/mcp · x402 catalog: /.well-known/x402