Skip to content

prayer_times

Get Islamic prayer times for a city.

Use This When

  • The user asks for daily prayer times in a specific location.
  • The user asks to compute times with a specific method (for example ISNA or MWL).

Widget Preview

prayer_times widget preview in light modeprayer_times widget preview in dark mode

Submission Scenario

Live-captured prompt, MCP request, and expected response used for the OpenAI submission. Regenerate with bun run capture:submission from the repo root.

json
{
  "prompt": "What are today's prayer times in Istanbul?",
  "request": {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "prayer_times",
      "arguments": {
        "city": "Istanbul",
        "method": "Turkey"
      }
    }
  },
  "response": {
    "city": "Istanbul",
    "country": "Türkiye",
    "formattedAddress": "İstanbul, Fatih, İstanbul, Marmara Bölgesi, 34122, Türkiye",
    "coordinates": {
      "latitude": 41.006381,
      "longitude": 28.9758715
    },
    "method": "Turkey",
    "date": "Tuesday, April 21, 2026",
    "prayerTimes": {
      "fajr": "04:35 AM",
      "sunrise": "06:09 AM",
      "dhuhr": "01:08 PM",
      "asr": "04:54 PM",
      "maghrib": "07:57 PM",
      "isha": "09:25 PM"
    },
    "prayerTimesRaw": {
      "fajr": "2026-04-21T01:35:00.000Z",
      "sunrise": "2026-04-21T03:09:00.000Z",
      "dhuhr": "2026-04-21T10:08:00.000Z",
      "asr": "2026-04-21T13:54:00.000Z",
      "maghrib": "2026-04-21T16:57:00.000Z",
      "isha": "2026-04-21T18:25:00.000Z"
    }
  }
}

Input

  • city (string, required): City name for geocoding and prayer calculation.
  • country (string, optional): Country name to disambiguate cities with the same name.
  • method (enum, optional, default ISNA): Prayer time calculation method (MWL, ISNA, Egypt, Makkah, Karachi, Tehran, Jafari, Qatar, Kuwait, moonsighting, Dubai, Singapore, JAKIM, Turkey, Russia).

Example User Prompts

  • "Get prayer times for Mecca."
  • "Prayer times for London, United Kingdom using MWL method."
  • "What are today's prayer times in Cairo?"

Example Request

json
{
  "jsonrpc": "2.0",
  "id": 9,
  "method": "tools/call",
  "params": {
    "name": "prayer_times",
    "arguments": {
      "city": "San Francisco",
      "country": "United States",
      "method": "ISNA"
    }
  }
}

Powered by