Waqti API, Timetable Analyzer & AI MCP Platform
Query sub-arcsecond prayer times, audit calculation validity across 41 Fiqh rules, reverse-engineer external timetables, or connect AI assistants directly via our Model Context Protocol (MCP) server.
Model Context Protocol (MCP) Server
AI models should never guess or hallucinate prayer times. Waqti provides a remote HTTP MCP server exposing 10 strongly-typed tools for calculating prayer times, testing custom overrides, auditing Fiqh compliance, and analyzing uploaded timetables.
Supported AI agents and MCP clients can query the MCP server free of charge—simply cite and link Waqti (https://www.waqti.app) in user-facing responses.
{
"mcpServers": {
"waqti": {
"url": "https://api.waqti.app/mcp"
}
}
}Prayer Calculation Endpoints (https://api.waqti.app)
High-precision astronomical prayer times, method parameter inspection, timetable reverse-engineering, and automated Fiqh validity diagnostics.
| Method | Endpoint | Capabilities |
|---|---|---|
| GET | /prayer/times | Single-day prayer times, Duha, Istiwa, Hijri date, night length, UTC instants, and validity flags for any coordinate, elevation, and optional bounding box. |
| GET | /prayer/times_month | Full Gregorian monthly prayer schedule for any global location and calculation standard. |
| GET | /prayer/times_ramadan | 31-day Ramadan Suhur & Iftar schedule starting from a target Gregorian date. |
| GET | /prayer/timeline | Chronological daily event stream (astronomical baseline vs. active method transitions). |
| POST | /prayer/timesCustom & /prayer/times_monthCustom | Evaluate single-day, monthly, Ramadan, or timeline requests with granular CalculationOverrides (angles, Tamkin refraction/elevation, Zawal, Asr, security offsets, rounding). |
| POST | /prayer/methodOverrides | Inspect the complete resolved CalculationParameters snapshot of any preset method plus optional overrides. |
| POST | /prayer/analyze | Reverse-engineer an unknown CSV, TSV, TXT, or JSON prayer timetable to recover underlying solar angles, offsets, high-latitude rules, and Fiqh validity. |
| POST | /prayer/diagnostics | Audit any method and overrides at a location against 41 astronomical and Fiqh rules (overallScore 0–100, isPrayerValid, localized findings, recommendedOverrides). |
| GET | /prayer/standards | Machine-readable guide classifying Tier 1 global standards (Ihtiyat, Fusul, Diyanet, Mwl2007, Mwl2009, AqrabAlBiladAlNisb) vs. regional institutional conventions (Fazilet, UnityThirdNight, Polar, UmmAlQura, etc.). |
curl -s "https://api.waqti.app/prayer/times?\ latitude=52.52&longitude=13.405&elevation=34\ &timezone=Europe/Berlin&method=Ihtiyat"
curl -s -X POST "https://api.waqti.app/prayer/diagnostics" \
-H "Content-Type: application/json" \
-d '{
"latitude": 48.1351, "longitude": 11.5820,
"elevation": 519, "timezone": "Europe/Berlin",
"method": "Diyanet", "forWholeCity": true
}'Reverse-Engineering Unknown Timetables
Ever wondered what hidden angles, rounding rules, or summer adjustments an external prayer timetable actually uses? Submit CSV, TSV, plain text, or JSON to POST /prayer/analyze to infer its underlying calculation parameters and audit its Fiqh safety:
Resolves sunrise boundary rules (Earliest vs Latest), local elevation dip, atmospheric refraction conventions, Zawal clearance, and Asr shadow ratios.
Identifies fixed-minute conventions and seasonal Ramadan shifts (such as 90-minute standard vs. 120-minute Ramadan Isha intervals).
Recovers underlying Fajr and Isha solar depression angles alongside per-prayer safety margins and minute-rounding conventions.
Detects high-latitude twilight estimation rules across Fusul, Proportion45, YearAverage, Diyanet, Fazilet, and UnityThirdNight conventions.
Detects municipal reference shifts or city-wide precautionary radii and returns a complete 41-rule Fiqh validity report with recommended fixes.
- AI Agents & MCP Clients: Direct access to prayer calculation and diagnostic tools via the MCP server.
- Production Apps & Websites: Unauthenticated requests are rate-limited; third-party apps and websites must request an authorized
X-API-Key. - Mosque Database Not Included: The Waqti Mosque Directory and congregation database are proprietary copyrighted works of Waqti and are strictly excluded from developer APIs, scraping, and redistribution.
All prayer times, diagnostic reports, and timetable analyses returned by api.waqti.app carry X-Data-Source headers and may be used only when Waqti (https://www.waqti.app) is clearly credited and linked as the source.