API & MCP

Everything a person can do on Security Configuration Scanner, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Security Configuration Scanner

For a domain you are authorised to test, checks the live TLS certificate, HTTP security headers, HTTP→HTTPS redirect, DNSSEC (validated via Google Public DNS), CAA, SPF and DMARC, and /.well-known/security.txt (RFC 9116 Contact and Expires), then grades the result and lists concrete fixes. Passive single requests only. You can also paste headers, DNS records and a certificate summary for an offline review, including cookie flags.

Inputs of Security Configuration Scanner
FieldTypeDefaultDescription
domain (required)text—Domain
modeselect (live, pasted)"live"Mode
authorizedbooleanfalseI own this domain or am authorised to test it. Required for live scans.
headerstextarea—Pasted: HTTP response headers
dnsRecordstextarea—Pasted: DNS records
certificatetextarea—Pasted: certificate summary
securityTxttextarea—Pasted: security.txt content
httpsRedirectselect (unknown, yes, no)"unknown"Pasted: does http:// redirect to https://?

Example request

Offline review of pasted findings

curl -X POST https://securityconfigurationscanner.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"domain":"shop.example.net","mode":"pasted","headers":"HTTP/2 200\ncontent-type: text/html\nstrict-transport-security: max-age=300\nx-content-type-options: nosniff\nserver: nginx/1.18.0\nset-cookie: session=abc; Path=/; HttpOnly\nset-cookie: __Host-csrf=x; Path=/; Secure; HttpOnly; SameSite=Strict","dnsRecords":"CAA 0 issue \"letsencrypt.org\"\nTXT v=spf1 include:_spf.example.net ~all\nDMARC v=DMARC1; p=none\nDNSSEC no","certificate":"issuer: CN=R11, O=Let's Encrypt, C=US\nvalidTo: 2026-10-20T12:00:00Z\nprotocol: TLSv1.3\nkeyType: ec\nhostnameMatches: yes\nauthorized: yes","securityTxt":"Contact: mailto:security@example.net\nExpires: 2026-03-01T00:00:00Z\nPreferred-Languages: en","httpsRedirect":"yes"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "security-configuration-scanner": { "type": "http", "url": "https://securityconfigurationscanner.usefulweb.site/mcp" }
  }
}