REST API • OpenAPI 3.0.3 • HTTP MCP

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.

Built for AI Assistants

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.

Remote HTTP MCP Connection Config
{
  "mcpServers": {
    "waqti": {
      "url": "https://api.waqti.app/mcp"
    }
  }
}
SSE fallback: https://api.waqti.app/mcp/sse•RFC 9727 API Catalog•MCP Server Card
10 Exposed MCP Tools
getPrayerTimesgetPrayerTimesMonthgetPrayerTimesRamadangetPrayerTimelinegetMethodParametersgetPrayerTimesWithOverridesanalyzeExternalTimetableevaluateMethodDiagnosticsgetCalculationStandardsGuidelistCalculationMethodsAndEnums

Prayer Calculation Endpoints (https://api.waqti.app)

High-precision astronomical prayer times, method parameter inspection, timetable reverse-engineering, and automated Fiqh validity diagnostics.

MethodEndpointCapabilities
GET/prayer/timesSingle-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_monthFull Gregorian monthly prayer schedule for any global location and calculation standard.
GET/prayer/times_ramadan31-day Ramadan Suhur & Iftar schedule starting from a target Gregorian date.
GET/prayer/timelineChronological daily event stream (astronomical baseline vs. active method transitions).
POST/prayer/timesCustom & /prayer/times_monthCustomEvaluate single-day, monthly, Ramadan, or timeline requests with granular CalculationOverrides (angles, Tamkin refraction/elevation, Zawal, Asr, security offsets, rounding).
POST/prayer/methodOverridesInspect the complete resolved CalculationParameters snapshot of any preset method plus optional overrides.
POST/prayer/analyzeReverse-engineer an unknown CSV, TSV, TXT, or JSON prayer timetable to recover underlying solar angles, offsets, high-latitude rules, and Fiqh validity.
POST/prayer/diagnosticsAudit any method and overrides at a location against 41 astronomical and Fiqh rules (overallScore 0–100, isPrayerValid, localized findings, recommendedOverrides).
GET/prayer/standardsMachine-readable guide classifying Tier 1 global standards (Ihtiyat, Fusul, Diyanet, Mwl2007, Mwl2009, AqrabAlBiladAlNisb) vs. regional institutional conventions (Fazilet, UnityThirdNight, Polar, UmmAlQura, etc.).
Example: Single-Day Query with Elevation
curl -s "https://api.waqti.app/prayer/times?\
latitude=52.52&longitude=13.405&elevation=34\
&timezone=Europe/Berlin&method=Ihtiyat"
Example: 41-Rule Method Diagnostics Audit
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:

Daytime & Horizon Calibration

Resolves sunrise boundary rules (Earliest vs Latest), local elevation dip, atmospheric refraction conventions, Zawal clearance, and Asr shadow ratios.

Fixed-Interval & Ramadan Detection

Identifies fixed-minute conventions and seasonal Ramadan shifts (such as 90-minute standard vs. 120-minute Ramadan Isha intervals).

Solar Depression Angle Recovery

Recovers underlying Fajr and Isha solar depression angles alongside per-prayer safety margins and minute-rounding conventions.

High-Latitude Regime Classification

Detects high-latitude twilight estimation rules across Fusul, Proportion45, YearAverage, Diyanet, Fazilet, and UnityThirdNight conventions.

Spatial Boundary & 41-Rule Fiqh Audit

Detects municipal reference shifts or city-wide precautionary radii and returns a complete 41-rule Fiqh validity report with recommended fixes.

Access Tiers & Database Copyright
  • 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.
Waqti Attribution License

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.

Read Full Terms of Service