
Zmanim MCP Server
io.github.ariroffe72由 GitHub 帳號 ariroffe72 發布v0.3.1更新於 Oct 24, 2026
MCP server providing Jewish prayer times (zmanim) calculations for any location worldwide.
概覽
一個本機 MCP 伺服器,可為全球任何地點計算猶太教祈禱時間(zmanim)與天文時間。
- 可以做什麼
- 計算指定地點與日期的日出和日落時間,支援時區處理。計算晨間 Shema 與晨禱(Shacharis)的最晚時間,分別依 GR'A 與 MG'A 兩種觀點提供。取得下午祈禱時間,包括 Mincha Gedola、Mincha Ketana 與 Plag HaMincha。取得安息日點燭與 Havdalah 時間,點燭提前量可自訂。取得完整的每日 zmanim 時間集合,以 Markdown 或 JSON 格式回傳。
- 適用情境
- 適合讓助理查詢特定地點與日期的每日祈禱時間、安息日點燭或 Havdalah 時間,或比較 GR'A 與 MG'A 等不同哈拉卡觀點。結果僅供參考;實際的哈拉卡決定應諮詢合格的拉比。
- 執行需求
- 以本機程序執行,從 PyPI 安裝(zmanim-mcp-server),通常以 uvx 啟動。需要 Python 及其相依套件(fastmcp、zmanim、pydantic)。每次呼叫需提供地點名稱、緯度、經度與 IANA 時區識別碼。未宣告需要帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Zmanim MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Zmanim MCP Server
[PyPI version] [Downloads] [MCP Registry] [License: MIT]
A comprehensive MCP server for calculating Jewish prayer times (zmanim).
A comprehensive Model Context Protocol (MCP) server for calculating Jewish prayer times (zmanim) using the python-zmanim library.
Overview
This MCP server provides tools to calculate various Jewish prayer times and astronomical times for any location worldwide. It uses the python-zmanim library, which is a Python port of the KosherJava project, implementing accurate astronomical calculations based on the NOAA algorithm.
Features
Available Tools
- zmanim_get_sunrise_sunset - Get sunrise and sunset times
- zmanim_get_shema_times - Get latest times for reciting the morning Shema (GR"A and MG"A opinions)
- zmanim_get_tefila_times - Get latest times for morning prayer/Shacharis (GR"A and MG"A opinions)
- zmanim_get_mincha_times - Get times for afternoon prayer including Mincha Gedola, Mincha Ketana, and Plag HaMincha
- zmanim_get_shabbat_times - Get Shabbat candle lighting and Havdalah times
- zmanim_get_daily_times - Get a comprehensive set of all daily zmanim
Key Features
- ✅ Support for multiple halachic opinions (GR"A, MG"A)
- ✅ Accurate NOAA-based astronomical calculations
- ✅ Support for any global location with latitude/longitude
- ✅ Timezone-aware calculations
- ✅ Optional date specification (defaults to today)
- ✅ Multiple output formats (Markdown and JSON)
- ✅ Customizable candle lighting offset
- ✅ Comprehensive error handling
Installation
Via PyPI (Recommended)
Claude Desktop Configuration
Add to your claude_desktop_config.json:
Usage Examples
Get Sunrise and Sunset
Get Latest Shema Times
Get Shabbat Times
Get Complete Daily Schedule
Zmanim Explained
Morning Times
- Alos HaShachar (Dawn): First light, 72 minutes before sunrise
- Sunrise (Hanetz HaChama): When the sun rises above the horizon
- Sof Zman Krias Shema: Latest time to recite the morning Shema
- GR"A: 3 hours after sunrise
- MG"A: 3 temporal hours from dawn (typically earlier)
- Sof Zman Tefila: Latest time for morning prayer (Shacharis)
- GR"A: 4 hours after sunrise
- MG"A: 4 temporal hours from dawn (typically earlier)
Afternoon Times
- Chatzos: Solar noon, midpoint between sunrise and sunset
- Mincha Gedola: Earliest time for afternoon prayer (30 minutes after midday)
- Mincha Ketana: Preferred earliest time for Mincha (2.5 hours before sunset)
- Plag HaMincha: 1.25 hours before sunset (latest time according to some opinions)
Evening Times
- Sunset (Shkiah): When the sun sets below the horizon
- Tzeis HaKochavim: Nightfall, when stars appear (72 minutes after sunset)
Shabbat & Holidays
- Candle Lighting: Typically 18-40 minutes before sunset (varies by community)
- Havdalah: When Shabbat ends, typically at Tzeis (72 minutes after sunset)
Halachic Opinions
The server supports calculations according to different halachic authorities:
- GR"A (Vilna Gaon): Calculates day from sunrise to sunset
- MG"A (Magen Avraham): Calculates day from dawn (72 minutes before sunrise) to nightfall
Response Formats
Markdown Format (default)
Human-readable format with clear headers and organized sections, perfect for display.
JSON Format
Machine-readable structured data including ISO 8601 timestamps, suitable for programmatic use.
Input Parameters
All tools accept the following parameters:
- location (required): Name of the location (e.g., "New York, NY")
- latitude (required): Latitude in decimal degrees (-90 to 90)
- longitude (required): Longitude in decimal degrees (-180 to 180)
- time_zone (required): IANA timezone identifier (e.g., "America/New_York")
- date (optional): Date in YYYY-MM-DD format (defaults to today)
- response_format (optional): "markdown" or "json" (defaults to markdown)
For Shabbat times, there's an additional parameter:
- candle_lighting_offset (optional): Minutes before sunset (1-60, default 18)
Technical Details
Calculations
- Uses the NOAA (National Oceanic and Atmospheric Administration) algorithm
- Accounts for atmospheric refraction
- Timezone-aware using IANA timezone database
- Elevation can be incorporated in calculations
Dependencies
- fastmcp: Standalone FastMCP framework
- zmanim: Python port of KosherJava zmanim library
- pydantic: Input validation and data modeling
Common Location Examples
Troubleshooting
Server not appearing in MCP client
- Check that the path in your configuration is correct
- Ensure Python and all dependencies are installed
- Verify the configuration file syntax is valid JSON
- Restart your MCP client after configuration changes
Times showing as "N/A"
This typically occurs for locations near the poles where the sun doesn't rise or set on certain days. The calculations handle this gracefully by returning "N/A".
Timezone errors
Ensure you're using valid IANA timezone identifiers. You can find a list at: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
License
This MCP server uses the python-zmanim library, which is licensed under the GNU Lesser General Public License v2 or later (LGPLv2+), ported from the KosherJava project.
Credits
- Based on the python-zmanim library by pinnymz
- Original Java library: KosherJava by Eliyahu Hershfeld
- NOAA astronomical calculations
Support
For issues related to:
- This MCP server: Please open an issue with details about your configuration and the problem
- Zmanim calculations: Refer to the python-zmanim repository
- Halachic questions: Consult your local rabbi or posek
Future Enhancements
Potential additions to consider:
- Hebrew date calculations
- Fast day times
- Molad calculations
- Holiday determination
- Custom opinion configurations
- Multi-day range queries
- Export to calendar formats (iCal)
Note: This server is for informational purposes. For practical halachic decisions, please consult a qualified rabbi.
來源:README.md,提交 0c7899a
工具
0版本歷史
1- v0.3.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分