← Wasilah

Build with Wasilah

Take Wasilah's prayer engine into your own tools.

The same offline engine behind the app is open for anyone to use, free. Add it to Claude and other AI assistants, call it from your code, or drop live prayer times onto any website. It is read only, needs no key, and makes no external calls. Wasilah is sadaqah jariyah, so the reward reaches whoever builds on it too.

Base URL
https://wasilah-mcp.aykiz.workers.dev

No sign-up, no rate-limit key. Please be reasonable with volume. Source is open at github.com/mumullickm/wasilah-mcp.

1. Add it to Claude (MCP connector)

Wasilah is a Model Context Protocol server, so Claude and any MCP-compatible client can call it directly in a conversation.

https://wasilah-mcp.aykiz.workers.dev/mcp
  1. Open Claude, then Settings, then Connectors.
  2. Choose Add custom connector.
  3. Paste the URL above and save. There is no sign-in; it connects immediately.
  4. In a chat, turn Wasilah on, then ask something like "What time is Maghrib in Dhaka today?" or "Which way is the Qibla from London?"

Five tools are available: get_prayer_times, get_next_prayer, get_qibla, get_hijri_date, and get_quran_audio. They also work in Claude Code and other MCP clients.

2. Free JSON API

Plain HTTPS, JSON responses, CORS open, no key. Every location endpoint accepts a city name, explicit latitude, longitude and timezone, or city=auto to use the caller's own approximate location. Prayer endpoints also accept method and asr.

Prayer times

GET /api/prayer-times?city=Dhaka
{
  "location": { "name": "Dhaka", "country": "Bangladesh", "timezone": "Asia/Dhaka" },
  "date": "2026-07-30",
  "method": "Karachi",
  "asr": "Hanafi",
  "jumuah": false,
  "timings": {
    "fajr": "04:04", "sunrise": "05:27", "dhuhr": "12:05",
    "asr": "16:43", "maghrib": "18:43", "isha": "20:06"
  }
}
ParameterValues
cityAny city name, e.g. Dhaka, Madinah, London. Or auto for the caller's own location. Or use latitude + longitude + timezone.
methodkarachi (default), isna, mwl, makkah, egypt, tehran, gulf, kuwait, qatar, singapore, france, turkey, russia
asrauto (default), shafii, hanafi
dateYYYY-MM-DD. Defaults to today in the location's timezone.

Next prayer

GET /api/next-prayer?city=Madinah
{ "next": "Asr", "time": "17:07", "minutesUntil": 55, "method": "Karachi" }

Qibla direction

GET /api/qibla?city=London
{ "bearing": 119, "compass": "ESE", "target": "Kaaba, Makkah" }

Hijri date

GET /api/hijri
{ "gregorian": "2026-07-30", "hijri": { "day": 16, "monthName": "Safar", "year": 1448, "formatted": "16 Safar 1448 AH" } }

Quran audio

GET /api/quran-audio?surah=36
{ "surah": 36, "name": "Ya-Sin", "ayahs": 83, "reciter": "Mishary Rashid Alafasy",
  "audioUrl": "https://cdn.islamic.network/quran/audio-surah/128/ar.alafasy/36.mp3" }

Three reciters have a single full-surah file and return audioUrl. The other nine are recorded ayah by ayah and return ayahAudio instead, with the numbering to build a playlist from. Some return both.

GET /api/reciters
{ "edition": "ar.husary", "name": "Mahmoud Khalil Al-Husary",
  "fullSurah": false, "perAyah": true }

3. Embed a live widget

Paste one line to show today's prayer times on any website, a masjid page, a blog, anywhere. The countdown to the next prayer updates on its own.

<iframe src="https://wasilah-mcp.aykiz.workers.dev/embed?city=Dhaka" width="360" height="440" style="border:0;border-radius:18px"></iframe>
ParameterValues
cityCity name, auto to show each visitor their own city, or lat + lon + tz for exact coordinates.
langen (default), bn for Bangla, ar for Arabic. Arabic renders right to left.
methodCalculation method (same list as the API). Default karachi.
asrauto, shafii, hanafi.
themelight or dark (default).
format12 or 24 hour clock. Defaults to 12 for English, 24 for Bangla and Arabic.

Set city=auto and one iframe serves every visitor their own city, so you do not need a separate embed per location. Auto responses are never cached.

Read only, no personal data, no external calls. Prayer times use Wasilah's own on-device engine (PrayTimes.org algorithm). City data is a subset of GeoNames (CC BY 4.0). Quran audio links point to the islamic.network CDN.

Questions: hello@wasilah.site. A project by Aykiz Intelligence. Back to Wasilah →