Prayer times and sun times

Prayer times for any town or coordinates (fajr, sunrise, dhuhr, asr, maghrib, isha), one day or a month, and sunrise, sunset and twilight. Local time, 34,000 towns (English or Arabic names), 20+ calculation methods. Free, no key.

Examples: Riyadh · London · Karachi, 7 days · القاهرة · Sunrise in Auckland · Methods

Use it from your AI agent (MCP)

Remote MCP server, Streamable HTTP: https://prayer-times.mnpi.workers.dev/mcp. Tools: prayer_times, sun_times, prayer_methods.

claude mcp add --transport http prayer-times https://prayer-times.mnpi.workers.dev/mcp
{ "mcpServers": { "prayer-times": { "url": "https://prayer-times.mnpi.workers.dev/mcp" } } }

REST API

curl "https://prayer-times.mnpi.workers.dev/v1/prayer?place=Riyadh"
curl "https://prayer-times.mnpi.workers.dev/v1/prayer?place=Birmingham&country=GB&method=mwl&days=30"
curl "https://prayer-times.mnpi.workers.dev/v1/prayer?lat=21.4225&lon=39.8262&tz=Asia/Riyadh"
curl "https://prayer-times.mnpi.workers.dev/v1/sun?place=Auckland&date=2026-12-21"

OpenAPI: /openapi.json · llms.txt

How times are computed

Standard solar-position formulas (as used by PrayTimes and most apps). The method sets the sun angles for fajr and isha; the default follows the country (Umm al-Qura in Saudi Arabia, Egyptian in Egypt, Karachi in South Asia, ISNA in North America, MWL elsewhere) and is always named in the answer. Local mosques may differ by a few minutes. Places from GeoNames (CC BY 4.0), snapshot 2026-11-19.