An MCP server that provides access to Malaysia prayer time data through Claude Desktop, enabling users to retrieve prayer times for specific zones, list available prayer zones, and check current prayer time status.
Features • Installation • Configuration • Usage • API Reference • Troubleshooting • Contributing • License
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.
✅ 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
pip
or uv
package manager# Clone the repository git clone https://github.com/yourusername/mcp-server-malaysia-prayer-time.git cd mcp-server-malaysia-prayer-time # Create and activate a virtual environment python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate # Install dependencies pip install -e .
# Clone the repository git clone https://github.com/yourusername/mcp-server-malaysia-prayer-time.git cd mcp-server-malaysia-prayer-time # Create and activate a virtual environment using uv uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate # Install dependencies uv pip install -e .
macOS:
mkdir -p ~/Library/Application\ Support/Claude/ nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
mkdir -p %APPDATA%\Claude notepad %APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "malaysia-prayer-time": { "command": "/absolute/path/to/your/.venv/bin/python", "args": [ "main.py" ], "cwd": "/absolute/path/to/mcp-server-malaysia-prayer-time" } } }
Once configured, you can interact with prayer times through Claude Desktop using natural language queries:
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 coordinatelongitude
(float): Longitude coordinatedate
(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.
The server provides these prayer times:
The server currently supports all JAKIM zones in Malaysia. The coordinate-based lookup supports these major areas:
Verify configuration paths are absolute and correct
Check Claude logs:
# macOS tail -f ~/Library/Logs/Claude/mcp*.log # Windows type %APPDATA%\Claude\Logs\mcp*.log
Test the server directly:
cd /path/to/mcp-server-malaysia-prayer-time python main.py
list_zones
)Try using a different spelling, a nearby major city, or the appropriate zone code
Contributions are welcome! Here's how you can contribute:
git checkout -b feature/amazing-feature
git commit -m 'Add some amazing feature'
git push origin feature/amazing-feature
# Clone your fork git clone https://github.com/yourusername/mcp-server-malaysia-prayer-time.git cd mcp-server-malaysia-prayer-time # Set up development environment python -m venv .venv source .venv/bin/activate pip install -e ".[dev]" # Installs dev dependencies # Run tests pytest
This project is licensed under the MIT License - see the LICENSE file for details.
Created by abdul rahman m asmuei amanasmuei@gmail.com
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!