API & MCP
Everything a person can do on Jet Lag Planner, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://jetlagplanner.usefulweb.site/api/v1/calculate– run Jet Lag PlannerGET https://jetlagplanner.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Jet Lag Planner
Pick your home and destination time zones, travel date and usual sleep times. The planner computes the real time difference for that date (including daylight saving), shifts your sleep before departure, and lists when to seek or avoid bright light and when to stop caffeine until you are adapted. Download it as a calendar file.
| Field | Type | Default | Description |
|---|---|---|---|
homeZone | select (Pacific/Honolulu, America/Anchorage, America/Los_Angeles, America/Denver, America/Phoenix, America/Chicago, America/Mexico_City, America/New_York, America/Toronto, America/Bogota, America/Lima | "Europe/Berlin" | Home time zone |
destinationZone | select (Pacific/Honolulu, America/Anchorage, America/Los_Angeles, America/Denver, America/Phoenix, America/Chicago, America/Mexico_City, America/New_York, America/Toronto, America/Bogota, America/Lima | "America/New_York" | Destination time zone |
homeZoneCustom | text | — | Other home zone (IANA name). Overrides the list if filled in. |
destinationZoneCustom | text | — | Other destination zone (IANA name). Overrides the list if filled in. |
departureDate (required) | date | — | Departure date |
arrivalDate | date | — | Arrival date (local). Defaults to the departure date. |
bedtime | time | "23:00" | Usual bedtime |
wakeTime | time | "07:00" | Usual wake time |
daysBefore | integer | 3 | Days to pre-adjust before departure |
chronotype | select (early, intermediate, late) | "intermediate" | Chronotype |
Example request
Berlin → New York (westward, 6 h)
curl -X POST https://jetlagplanner.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"homeZone":"Europe/Berlin","destinationZone":"America/New_York","departureDate":"2026-11-10","bedtime":"23:00","wakeTime":"07:00","daysBefore":3,"chronotype":"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://jetlagplanner.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
jet_lag_planner - Local stdio connector:
node src/mcp-stdio.ts --tool=jet-lag-planner
{
"mcpServers": {
"jet-lag-planner": { "type": "http", "url": "https://jetlagplanner.usefulweb.site/mcp" }
}
}