API & MCP
Everything a person can do on Password Entropy Race, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://passwordentropyrace.usefulweb.site/api/v1/calculate– run Password Entropy RaceGET https://passwordentropyrace.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Password Entropy Race
Compares passwords and passphrases side by side: naive charset entropy, a pattern-aware estimate that penalises common passwords, keyboard walks, repeats, sequences, dates and l33t speak, and the average time to crack each one at four attacker speeds.
| Field | Type | Default | Description |
|---|---|---|---|
passwords (required) | textarea | — | Passwords to compare (one per line). Between 2 and 6 lines, up to 128 characters each. Do not paste passwords you really use: use look-alikes with the same structure. Without JavaScript (and via the API/MCP) the text is sent to the server, used for the calculation and not stored. |
Example request
Classic password vs passphrase
curl -X POST https://passwordentropyrace.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"passwords":"P@ssw0rd2024\ncorrect horse battery staple\nTr0ub4dor&3"}'
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://passwordentropyrace.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
password_entropy_race - Local stdio connector:
node src/mcp-stdio.ts --tool=password-entropy-race
{
"mcpServers": {
"password-entropy-race": { "type": "http", "url": "https://passwordentropyrace.usefulweb.site/mcp" }
}
}