Skip to main content

eSolatMCP

GitHub Repo stars MCP Python Docker Buy

MCP server for accurate Malaysian prayer times (official JAKIM/e-Solat), nearest masjid and surau, and Islamic calendar events.

Gives AI assistants like Claude Desktop and Claude Code reliable, hallucination-free access to Islamic worship tools with smart Malaysia-first routing.

Features

  • Official JAKIM & Global data powered by python-esolat (WaktuSolat & Aladhan APIs)
  • Dhuha time automatically calculated (+28 minutes after Syuruk)
  • Malay Hijri month names (Muharram, Safar, etc.)
  • Global fallback using Aladhan API
  • Nearest mosques/suraus powered by python-jejakmasjid with Google Maps + Waze deep links
  • Yearly Islamic events (Eid, etc.)
  • Dual mode: Local (stdio) + Remote (Docker + secure HTTP)
  • Health dashboard for upstream APIs

esolat-mcp MCP server – quality and maintenance score on Glama

Tools

The server registers three powerful tools that Claude can discover and call automatically:

  1. get_monthly_prayer_times

    • Get full monthly prayer schedule (Fajr, Syuruk, Dhuha, Dhuhr, Asr, Maghrib, Isha)
    • Accepts place name or latitude/longitude
    • Returns both Gregorian and Hijri dates
  2. find_nearest_mosques

    • Find up to 15 nearest masjid/surau
    • Default radius: 5 km (configurable)
    • Powered by JejakMasjid (with official JAKIM e-Solat SISMIM fallback for Malaysia)
    • Includes place type (masjid/surau), distance, cardinal direction (E, NW), coordinates, Google Maps & Waze links, and direct profile URLs
  3. get_yearly_islamic_events

    • Major Islamic dates and holidays for a given year
    • Malaysia-aware routing

Quick Start

No clone needed:

uvx esolat-mcp

Claude Desktop config example:

{
  "mcpServers": {
     "esolat": {
      "command": "uvx",
      "args": ["esolat-mcp"]
    }
  }
}

Option 2: Docker / Remote HTTP Mode (Self-hosted)

1. Clone the repo and set up token:

git clone https://github.com/zubir2k/esolat-mcp.git
cd esolat-mcp
cp .env.example .env

2. Generate a strong token:

python -c "import secrets; print(secrets.token_urlsafe(32))"
# or: openssl rand -hex 32

3. Paste it into .env as MCP_WEBHOOK_TOKEN=your_token_here

4. Build and Start the container:

docker build -t esolat-mcp:latest .
docker compose up -d

5. Endpoints

- Streamable MCP HTTP Endpoint (main one for AI clients):

http://your-server-ip:8626/api/webhook/<MCP_WEBHOOK_TOKEN>/mcp

- Health Dashboard (useful for monitoring):

http://your-server-ip:8626/api/webhook/<MCP_WEBHOOK_TOKEN>

(GET request without /mcp — shows status of JejakMasjid, JAKIM, WaktuSolat, and Nominatim APIs)

Usage Examples (Claude)

Prayer Times

"What are today's prayer times in Kuala Lumpur?"
"Show me full prayer schedule for Penang this Ramadan."
"Prayer times for Kota Kinabalu next week."

Mosques

"Find the nearest mosque to me."
"Mosques within 10km of Petaling Jaya."
"Nearest surau from KLCC."

Events & Planning

"Major Islamic events in 2026 for Malaysia."
"Plan my trip to Johor Bahru: prayer times + nearest mosques + Eid dates."

Visual

Claude Config

Config

Claude Prompt

Prompt

Credits

License

This project is licensed under the MIT License.

Disclaimer & Data Source

Important Notice & Reliability Disclaimer

This integration pulls data directly from the official e-Solat JAKIM (Department of Islamic Development Malaysia) portal. However, please note:

  • No Liability: This integration is a community-driven project provided "as is" without any guarantees. The maintainer is not solely or legally responsible for any discrepancies, inaccuracies, delays, or omissions in prayer times or calendar dates.
  • Verify Important Times: Users are strictly advised to regularly check and verify times against the official JAKIM eSolat Portal or official local announcements, especially for critical obligations (e.g., fasting, community prayers).
  • Network & Upstream Dependencies: Synchronization depends on upstream API availability and local network connectivity. Discrepancies caused by unexpected server updates from JAKIM or local server downtime are outside the control of this software.

By using this tool, you acknowledge and agree that the developer holds no liability for missed schedules or data inaccuracies.

Metadata

Release files for esolat-mcp 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for esolat-mcp 1.0.7
File Size Uploaded Provenance Actions
esolat_mcp-1.0.7.tar.gz 11.6 kB With provenance Details for esolat_mcp-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for esolat-mcp 1.0.7
File Interpreter ABI Platform Actions
esolat_mcp-1.0.7-py3-none-any.whl Python 3 none any Details for esolat_mcp-1.0.7-py3-none-any.whl

Total release size: 23.7 kB

Release files / esolat_mcp-1.0.7.tar.gz

Download URL esolat_mcp-1.0.7.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
618f6efcb59045e5644b4803cedbc7e7f407e4390ddf610293bc7ac60734c680
BLAKE2b-256 checksum
How to use checksums
2d99df742a4607df5fa1e0755dee82fc9b4f724acbcac40a6579e7da11610900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / esolat_mcp-1.0.7-py3-none-any.whl

Download URL esolat_mcp-1.0.7-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5072d6d973e04d749422128d6bfba707c64f87538ae5ee89942399b5086d40d
BLAKE2b-256 checksum
How to use checksums
0dc6015df33cb524081bebc883e29e86e8cb5e4df34a274717c73c5029e022d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for esolat-mcp 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for esolat_mcp-1.0.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page