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
POST https://securityconfigurationscanner.usefulweb.site/api/v1/calculate– run Security Configuration ScannerGET https://securityconfigurationscanner.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
domain (required) | text | — | Domain |
mode | select (live, pasted) | "live" | Mode |
authorized | boolean | false | I own this domain or am authorised to test it. Required for live scans. |
headers | textarea | — | Pasted: HTTP response headers |
dnsRecords | textarea | — | Pasted: DNS records |
certificate | textarea | — | Pasted: certificate summary |
securityTxt | textarea | — | Pasted: security.txt content |
httpsRedirect | select (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)
- Streamable HTTP endpoint:
https://securityconfigurationscanner.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
security_configuration_scanner - Local stdio connector:
node src/mcp-stdio.ts --tool=security-configuration-scanner
{
"mcpServers": {
"security-configuration-scanner": { "type": "http", "url": "https://securityconfigurationscanner.usefulweb.site/mcp" }
}
}