API & MCP
Everything a person can do on Skyfold Local Eclipse Circumstances, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://skyfoldeclipselocal.usefulweb.app/api/v1/calculate– run Skyfold Local Eclipse CircumstancesGET https://skyfoldeclipselocal.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Skyfold Local Eclipse Circumstances
For a place, lists every solar and lunar eclipse from 2020 to 2040 with what you will see: partial, annular or total, contact times C1–C4, magnitude, obscuration, duration and the Sun or Moon altitude, computed from NASA Besselian elements.
| Field | Type | Default | Description |
|---|---|---|---|
location | text | "42.3439, -3.6969" | Location (latitude, longitude). Decimal degrees such as 52.09, 5.12 (north and east positive), or DMS, UTM, MGRS, Maidenhead or a plus code. |
elevation | number | 0 | Elevation above sea level |
timeZone | text | "Europe/Madrid" | Time zone. IANA name such as Europe/Berlin or America/New_York, or a fixed offset such as UTC+2. |
fromYear | integer | 2026 | From year |
toYear | integer | 2028 | To year |
kind | select (both, solar, lunar) | "both" | Eclipses |
visibleOnly | boolean | true | Only eclipses visible from this place |
Example request
Burgos, Spain: the 2026–2028 eclipses
curl -X POST https://skyfoldeclipselocal.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"location":"42.3439, -3.6969","elevation":860,"timeZone":"Europe/Madrid","fromYear":2026,"toYear":2028,"kind":"both","visibleOnly":true}'
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://skyfoldeclipselocal.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
skyfold_eclipse_local - Local stdio connector:
node src/mcp-stdio.ts --tool=skyfold-eclipse-local
{
"mcpServers": {
"skyfold-eclipse-local": { "type": "http", "url": "https://skyfoldeclipselocal.usefulweb.app/mcp" }
}
}