API & MCP
Everything a person can do on Private Breach Checker, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://privatebreachchecker.usefulweb.site/api/v1/calculate– run Private Breach CheckerGET https://privatebreachchecker.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Private Breach Checker
Checks a password against the Have I Been Pwned Pwned Passwords collection using k-anonymity: your browser hashes the password with SHA-1 and sends only the first 5 of 40 hex characters. The server and API accept only a SHA-1 hash or 5-character prefix, never a password.
| Field | Type | Default | Description |
|---|---|---|---|
hash (required) | text | — | SHA-1 hash or 5-character prefix. Hex only. Never enter a password here. With JavaScript on, use the password box above. |
Example request
SHA-1 of the password "password"
curl -X POST https://privatebreachchecker.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"hash":"5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8"}'
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://privatebreachchecker.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
private_breach_checker - Local stdio connector:
node src/mcp-stdio.ts --tool=private-breach-checker
{
"mcpServers": {
"private-breach-checker": { "type": "http", "url": "https://privatebreachchecker.usefulweb.site/mcp" }
}
}