Zmanim MCP Server

平台与服务

by ariroffe72

用于计算全球任意地点Jewish prayer times(zmanim)的MCP服务器。

什么是 Zmanim MCP Server

用于计算全球任意地点Jewish prayer times(zmanim)的MCP服务器。

README

Zmanim MCP Server

<!-- mcp-name: io.github.ariroffe72/zmanim-mcp-server -->

PyPI version Downloads MCP Registry License: MIT

GitHub Stars Last Commit

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

  1. zmanim_get_sunrise_sunset - Get sunrise and sunset times
  2. zmanim_get_shema_times - Get latest times for reciting the morning Shema (GR"A and MG"A opinions)
  3. zmanim_get_tefila_times - Get latest times for morning prayer/Shacharis (GR"A and MG"A opinions)
  4. zmanim_get_mincha_times - Get times for afternoon prayer including Mincha Gedola, Mincha Ketana, and Plag HaMincha
  5. zmanim_get_shabbat_times - Get Shabbat candle lighting and Havdalah times
  6. 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)

bash
# For use with Claude Desktop or other MCP clients
uvx zmanim-mcp-server

Claude Desktop Configuration

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "zmanim": {
      "command": "uvx",
      "args": ["zmanim-mcp-server"]
    }
  }
}

Usage Examples

Get Sunrise and Sunset

code
Get sunrise and sunset times for New York City today:
- Location: New York, NY
- Latitude: 40.7128
- Longitude: -74.0060
- Time Zone: America/New_York

Get Latest Shema Times

code
What time is the latest I can say Shema in Jerusalem?
- Location: Jerusalem
- Latitude: 31.7683
- Longitude: 35.2137
- Time Zone: Asia/Jerusalem

Get Shabbat Times

code
Get Shabbat candle lighting and Havdalah times for Chicago this Friday:
- Location: Chicago, IL
- Latitude: 41.8781
- Longitude: -87.6298
- Time Zone: America/Chicago
- Candle lighting offset: 18 minutes (can be customized)

Get Complete Daily Schedule

code
Give me all the prayer times for London today:
- Location: London
- Latitude: 51.5074
- Longitude: -0.1278
- Time Zone: Europe/London

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

LocationLatitudeLongitudeTimezone
Jerusalem31.768335.2137Asia/Jerusalem
New York40.7128-74.0060America/New_York
Los Angeles34.0522-118.2437America/Los_Angeles
London51.5074-0.1278Europe/London
Paris48.85662.3522Europe/Paris
Sydney-33.8688151.2093Australia/Sydney
Toronto43.6532-79.3832America/Toronto
Miami25.7617-80.1918America/New_York

Troubleshooting

Server not appearing in MCP client

  1. Check that the path in your configuration is correct
  2. Ensure Python and all dependencies are installed
  3. Verify the configuration file syntax is valid JSON
  4. 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.

常见问题

Zmanim MCP Server 是什么?

用于计算全球任意地点Jewish prayer times(zmanim)的MCP服务器。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描171.4k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描171.4k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描24.9k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
89.7k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
80.0k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
72.9k

评论