API & MCP
Everything a person can do on TLS Cipher-Suite Simulator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://tlsciphersuitesimulator.usefulweb.site/api/v1/calculate– run TLS Cipher-Suite SimulatorGET https://tlsciphersuitesimulator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
TLS Cipher-Suite Simulator
Pick a Mozilla server preset (modern, intermediate, old) or paste your own cipher list in OpenSSL or IANA names, and see what 34 recorded clients (browsers, Android, Java, OpenSSL, plus curl) would negotiate: protocol version, cipher suite, key-exchange group, signature algorithm, forward secrecy and AEAD, or why the handshake fails. Includes an IANA ↔ OpenSSL name table and a configuration grade. Offline simulation from documented data, no connection is made.
| Field | Type | Default | Description |
|---|---|---|---|
serverPreset | select (modern, intermediate, old, custom) | "intermediate" | Server configuration |
customSuites | textarea | — | Custom cipher suites (in server preference order). OpenSSL names (ECDHE-RSA-AES128-GCM-SHA256), IANA names (TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) or hex codes (0xC02F), separated by colons, commas or new lines. OpenSSL keywords like HIGH or !aNULL are not expanded. Used only with "Custom cipher list". |
customProtocols | multiselect (SSLv3, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3) | ["TLSv1.2","TLSv1.3"] | Custom: enabled protocol versions |
customGroups | text | "X25519, prime256v1, secp384r1" | Custom: key-exchange groups. Curve/group names in preference order, e.g. X25519MLKEM768, X25519, prime256v1, secp384r1, ffdhe2048. |
certificate | select (preset, ecdsa, rsa, both) | "preset" | Server certificate |
rsaBits | integer | 2048 | RSA key size |
dhBits | integer | — | DHE parameter size. Optional. Defaults to the preset value (old: 1024, intermediate: 2048) or 2048 for custom lists. |
order | select (preset, server, client) | "preset" | Cipher order |
clients | multiselect (android-2.3.7, android-4.4.2, android-5.0.0, android-7.0, android-8.1, android-9.0, chrome-49-xp-sp3, chrome-70-win-10, chrome-80-win-10, chrome-131-win-10, firefox-31.3.0-esr-win-7, fire | — | Clients to simulate. Leave empty to simulate all clients. |
Example request
Mozilla intermediate against all clients
curl -X POST https://tlsciphersuitesimulator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"serverPreset":"intermediate"}'
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://tlsciphersuitesimulator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
tls_cipher_suite_simulator - Local stdio connector:
node src/mcp-stdio.ts --tool=tls-cipher-suite-simulator
{
"mcpServers": {
"tls-cipher-suite-simulator": { "type": "http", "url": "https://tlsciphersuitesimulator.usefulweb.site/mcp" }
}
}