Database · MODEL CONTEXT PROTOCOL
amanasmuei mcp server malaysia prayer time
A Model Context Protocol (MCP) server for Malaysia Prayer Time data
连接能力
amanasmuei mcp server malaysia prayer time 为 AI Agent 提供什么
- Python 3.10 or higher
- Claude Desktop (latest version)
- `pip` or `uv` package manager
- Create or edit the Claude Desktop configuration file:
- Add the following configuration (adjust paths according to your setup):
- Restart Claude Desktop completely
- "What are the prayer times for Kuala Lumpur today?"
- "Show prayer times for Ipoh, Malaysia"
- "Get prayer times for PRK02" (using zone code)
- "What are the prayer times at coordinates 3.1390, 101.6869?"
- "Show prayer schedule for location 5.4141, 100.3288"
- "List all prayer time zones in Malaysia"
- "Show me all available JAKIM zone codes"
- `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"
- `latitude` (float): Latitude coordinate
- `longitude` (float): Longitude coordinate
- `date` (string, default: "today"): Date in YYYY-MM-DD format or "today"
- Imsak (pre-dawn meal time, if available)
- Fajr (dawn prayer)
- Syuruk/Sunrise
- Dhuhr (noon prayer)
- Asr (afternoon prayer)
- Maghrib (sunset prayer)
- Isha (night prayer)
- Kuala Lumpur/Selangor: SGR01-SGR04
- Perak: PRK01-PRK04
- Penang: PNG01
- Johor: JHR01
- Kedah: KDH01
- Terengganu: TRG01
- Kelantan: KTN01
- Melaka: MLK01
- Verify configuration paths are absolute and correct
- Check Claude logs:
- Test the server directly:
- Verify internet connectivity
- Check if the zone code is valid (use `list_zones`)
- The API may be temporarily unavailable - try again later
- Fork the repository
- Create a feature branch: `git checkout -b feature/amazing-feature`
- Commit your changes: `git commit -m 'Add some amazing feature'`
- Push to the branch: `git push origin feature/amazing-feature`
- Open a Pull Request
- [waktusolat.app](https://waktusolat.app/) - For providing the prayer time data API
- [Model Context Protocol](https://modelcontextprotocol.io/) - For the MCP framework
- JAKIM - For the official prayer times
- Claude Desktop - For the AI integration platform
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
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
- Python 3.10 or higher
- Claude Desktop (latest version)
piporuvpackage 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 .- Create or edit the Claude Desktop configuration file:
macOS:
mkdir -p ~/Library/Application\ Support/Claude/
nano ~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows:
mkdir -p %APPDATA%\Claude
notepad %APPDATA%\Claude\claude_desktop_config.json- Add the following configuration (adjust paths according to your setup):
{
"mcpServers": {
"malaysia-prayer-time": {
"command": "/absolute/path/to/your/.venv/bin/python",
"args": [
"main.py"
],
"cwd": "/absolute/path/to/mcp-server-malaysia-prayer-time"
}
}
}- Restart Claude Desktop completely
Once configured, you can interact with prayer times through Claude Desktop using natural language queries:
- "What are the prayer times for Kuala Lumpur today?"
- "Show prayer times for Ipoh, Malaysia"
- "Get prayer times for PRK02" (using zone code)
- "What are the prayer times at coordinates 3.1390, 101.6869?"
- "Show prayer schedule for location 5.4141, 100.3288"
- "List all prayer time zones in Malaysia"
- "Show me all available JAKIM zone codes"
The MCP server exposes the following tools to Claude:
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"
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"
Lists all available prayer time zones in Malaysia with their corresponding codes.
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)
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
-
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
- Verify internet connectivity
- Check if the zone code is valid (use
list_zones) - The API may be temporarily unavailable - try again later
Try using a different spelling, a nearby major city, or the appropriate zone code
Contributions are welcome! Here's how you can contribute:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add some amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
# 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
pytestThis project is licensed under the MIT License - see the LICENSE file for details.
- waktusolat.app - For providing the prayer time data API
- Model Context Protocol - For the MCP framework
- JAKIM - For the official prayer times
- Claude Desktop - For the AI integration platform
Created by abdul rahman m asmuei
amanasmuei@gmail.com
社区