Salaah MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Salaah MCP (Muslim Community Prayer Times)
A FastAPI and MCP service providing Islamic prayer times calculations using the islamic_times library.

Dependencies
This project relies on the following main dependencies:
FastAPI: Web framework for building APIs
MCP Python SDK: the official Model Context Protocol server
islamic_times: Core calculation engine for prayer times
Pydantic: Data validation
Related MCP server: esolat-mcp
Installation
Clone the repository:
git clone https://github.com/yusufk/salaah-mcp.git
cd salaah-mcpInstall uv and the dependencies:
pip install uv
uv syncUsage
uv run run.pyThe API will be available at:
Development: http://localhost:8000
API Endpoints
Calculate Prayer Times
POST /prayer_times
Calculate prayer times for a given location and date.
Example request:
{
"latitude": -26.1528113,
"longitude": 28.0049996,
"method": "Egyptian"
}Example response:
{
"method": "Egyptian General Authority of Survey (Egypt)",
"fajr": "2025-06-01T05:19:11.373053+02:00",
"sunrise": "2025-06-01T06:47:44.369263+02:00",
"zuhr": "2025-06-01T12:05:43.358460+02:00",
"asr": "2025-06-01T15:23:52.560113+02:00",
"sunset": "2025-06-01T17:23:52.560113+02:00",
"maghrib": "2025-06-01T17:23:52.560113+02:00",
"isha": "2025-06-01T18:43:09.341111+02:00",
"midnight": "2025-06-02T00:06:02.228763+02:00"
}Get Qiblah Direction
POST /qiblah
Get Qiblah direction and distance from any location.
{
"latitude": -26.1528113,
"longitude": 28.0049996,
"date": "2025-06-01T00:00:00Z"
}Example response:
{
"distance_km": 5452,
"distance_mi": 3388,
"direction": "NNE",
"angle_decimal": 14.647,
"angle_dms": "014° 38′ 49.84″"
}Get Sun Information
POST /sun
Get detailed sun position and timing information.
Example response:
{
"sunrise": "2025-06-01T06:47:40",
"transit": "2025-06-01T12:05:33",
"sunset": "2025-06-01T17:23:36",
"apparent_altitude": -42.659,
"apparent_azimuth": 276.796,
"distance_au": 1.014106,
"apparent_declination": 22.166,
"apparent_right_ascension": "04h 39m 56.17s",
"greenwich_hour_angle": 99.904,
"local_hour_angle": 127.951
}Get Moon Information
POST /moon
Get detailed moon position and phase information.
Example response:
{
"moonrise": "2025-06-01T11:39:22",
"transit": "2025-06-01T16:25:15",
"moonset": "2025-06-01T22:54:19",
"illumination": 36.38,
"apparent_altitude": 25.803,
"azimuth": 305.203,
"distance_km": 388391,
"parallax": 0.941,
"topocentric_declination": 15.892,
"topocentric_right_ascension": "09h 52m 04.77s",
"greenwich_hour_angle": 21.198,
"local_hour_angle": 49.245
}Calculate Moon Visibility
POST /moon/visibility
Calculate new moon visibility using Yallop's criterion.
{
"latitude": -26.1528113,
"longitude": 28.0049996,
"date": "2025-05-27T00:00:00Z",
"days": 3,
"criterion": 1
}Example response:
[
{
"criterion": "Yallop",
"date": "2025-05-27T15:28:52",
"value": -0.788,
"description": "F: Not visible; below the Danjon limit."
},
{
"criterion": "Yallop",
"date": "2025-05-28T15:56:44",
"value": 0.958,
"description": "A: Easily visible."
}
]Available Calculation Methods
Pass the value in the left column as method:
ISNA: Islamic Society of North AmericaMWL: Muslim World LeagueUmm al-Qura: Umm al-Qura University, MakkahEgyptian: Egyptian General Authority of SurveyKarachi: University of Islamic Sciences, KarachiTehran: Institute of Geophysics, University of TehranJafari: Shia Ithna Ashari, Leva Research Institute, Qom
MCP clients
The MCP server uses the Streamable HTTP transport at http://localhost:8000/mcp. The older SSE transport is not supported.
By default the MCP endpoint only accepts requests addressed to localhost, which protects against DNS rebinding. When you deploy, list your public host names in SALAAH_ALLOWED_HOSTS, comma-separated, for example SALAAH_ALLOWED_HOSTS=salaah-mcp.fly.dev.
Claude Desktop
To use the prayer times service with Claude Desktop:
Create a configuration file. Claude Desktop starts local servers, so
mcp-remotebridges it to the HTTP endpoint:
{
"mcpServers": {
"Salaah Times": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8000/mcp"]
}
}
}Save this as
claude_desktop_config.jsonin your Claude Desktop configuration directory.Make sure the MCP service is running:
uv run run.pyStart Claude Desktop and you can now ask questions about prayer times like:
"What time is Asr prayer today?"
"When is Fajr tomorrow in Johannesburg?"
"Show me all prayer times for London"
The AI will use the MCP service to calculate accurate prayer times based on your queries.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Prayer times anywhere, mosques nearby, and a mosque's own iqamah and Jumu'ah times. Free, no key.
Islamic prayer times (20+ methods) and sunrise/sunset for 34,000 towns or coordinates, local time.
Islamic prayer times & calendar MCP (Aladhan API). Keyless.
Islamic prayer times for any city, today or the whole month, from official timetables or calculated.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides Islamic prayer times, Qibla direction, and Hijri calendar conversion using the Aladhan API. No API key required.65 npmMIT
- AlicenseAqualityBmaintenanceMCP server providing Malaysian/global prayer times (JAKIM + Aladhan fallback), nearest mosque/surau finder, and Islamic calendar events.4218 PyPI1MIT
- FlicenseBqualityDmaintenanceMCP server for Malaysian prayer times, providing tools to get daily and monthly prayer schedules, next prayer times, and zone listings via the api.waktusolat.app.4-
- AlicenseNot gradedqualityCmaintenanceRemote MCP server exposing Wasilah's Islamic reference data, enabling prayer-time, Qibla, Hijri-date, and Quran-audio queries via natural language.MIT