API & MCP

Everything a person can do on Password & Passphrase Generator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Password & Passphrase Generator

Generates random passwords (length, character sets, no look-alike characters, at least one of each class) or passphrases from a 2048-word list with separators and capitalisation. Shows the exact entropy in bits and how long guessing would take.

Inputs of Password & Passphrase Generator
FieldTypeDefaultDescription
modeselect (password, passphrase)"password"Type
lengthinteger20Password length. Random password only. 16+ characters are recommended; 20+ for important accounts.
charsetsmultiselect (lower, upper, digits, symbols)["lower","upper","digits","symbols"]Character sets
excludeAmbiguousbooleanfalseAvoid look-alike characters (I l 1 O 0 o | ` ' ")
requireEachbooleantrueInclude at least one character from each selected set
wordsinteger6Number of words. Passphrase only. Each word adds 11 bits of entropy.
separatorselect (hyphen, space, period, underscore, none)"hyphen"Word separator
capitalizationselect (lower, title, upper, random)"lower"Capitalisation
includeNumberbooleanfalseAppend a random digit to one random word
countinteger5How many
seedtext—Demo seed (optional, makes output reproducible — never for real passwords). Leave empty for real use. With a seed, anyone who knows it can regenerate the same passwords.

Example request

5 passwords, 20 characters, all sets (demo seed)

curl -X POST https://passwordgenerator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"password","length":20,"count":5,"seed":"demo"}'

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": {
    "password-generator": { "type": "http", "url": "https://passwordgenerator.usefulweb.site/mcp" }
  }
}