API & MCP
Everything a person can do on Quiet Week Finder, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://hearthquietweeks.usefulweb.app/api/v1/calculate– run Quiet Week FinderGET https://hearthquietweeks.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Quiet Week Finder
Name the countries most visitors to a place come from, with weights, and get a crowd index for every week: how much of each country is on school or public holiday. The lowest weeks are the quiet ones for a trip, a booking or an errand.
| Field | Type | Default | Description |
|---|---|---|---|
visitors (required) | text | "DE:3, NL:2, BE:1" | Visitor countries with weights. Two-letter codes, optional weights, for example “DE:3, NL:2, BE:1”. Include the destination’s own country for local visitors. |
from (required) | date | "2027-01-04" | Period from |
to (required) | date | "2027-12-27" | Period to |
Example request
Dutch coast: Germans, Dutch and Belgians, 2027
curl -X POST https://hearthquietweeks.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"visitors":"DE:3, NL:2, BE:1","from":"2027-01-04","to":"2027-12-27"}'
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://hearthquietweeks.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
hearth_quiet_weeks - Local stdio connector:
node src/mcp-stdio.ts --tool=hearth-quiet-weeks
{
"mcpServers": {
"hearth-quiet-weeks": { "type": "http", "url": "https://hearthquietweeks.usefulweb.app/mcp" }
}
}