Labsco
amanasmuei logo

Malaysia Prayer Time MCP Server

from amanasmuei

Provides accurate Islamic prayer times for locations throughout Malaysia using the waktusolat.app API.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

MseeP.ai Security Assessment Badge

Malaysia Prayer Time MCP Server

Features โ€ข Installation โ€ข Configuration โ€ข Usage โ€ข API Reference โ€ข Troubleshooting โ€ข Contributing โ€ข License


Overview

Malaysia Prayer Time MCP Server provides accurate Islamic prayer times for locations throughout Malaysia. This server implements the Model Context Protocol (MCP) to seamlessly integrate with Claude Desktop, delivering real-time prayer schedules directly through your AI assistant.

The server utilizes the waktusolat.app API to retrieve JAKIM-verified prayer times and supports searching by city, zone code, or coordinates.

Features

โœ… Location-Based Times: Get prayer times for any city or district in Malaysia
โœ… Coordinate Support: Find prayer times using latitude and longitude coordinates
โœ… Zone Code Access: Directly query using JAKIM zone codes (e.g., SGR03 for Kuala Lumpur)
โœ… Complete Prayer Schedule: Retrieve all daily prayer times (Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha)
โœ… Current Prayer Status: Determine the current and next prayer times
โœ… Robust Error Handling: Graceful handling of network issues and API changes
โœ… Seamless Claude Integration: Clean integration with Claude Desktop via MCP

API Reference

Available Tools

The MCP server exposes the following tools to Claude:

get_prayer_times

Retrieves prayer times for a specific city or zone code in Malaysia.

Parameters:

  • city (string, default: "kuala lumpur"): City name or zone code (e.g., "SGR03")
  • country (string, default: "malaysia"): Currently only supports "malaysia"
  • date (string, default: "today"): Date in YYYY-MM-DD format or "today"

get_prayer_times_by_coordinates

Retrieves prayer times based on geographic coordinates.

Parameters:

  • latitude (float): Latitude coordinate
  • longitude (float): Longitude coordinate
  • date (string, default: "today"): Date in YYYY-MM-DD format or "today"

list_zones

Lists all available prayer time zones in Malaysia with their corresponding codes.

Prayer Time Information

The server provides these prayer times:

  • Imsak (pre-dawn meal time, if available)
  • Fajr (dawn prayer)
  • Syuruk/Sunrise
  • Dhuhr (noon prayer)
  • Asr (afternoon prayer)
  • Maghrib (sunset prayer)
  • Isha (night prayer)

Zone Coverage

The server currently supports all JAKIM zones in Malaysia. The coordinate-based lookup supports these major areas:

  • Kuala Lumpur/Selangor: SGR01-SGR04
  • Perak: PRK01-PRK04
  • Penang: PNG01
  • Johor: JHR01
  • Kedah: KDH01
  • Terengganu: TRG01
  • Kelantan: KTN01
  • Melaka: MLK01