Skip to main content
Glama
zmanim-mcp

zmanim-mcp

by jonyteubal

zmanim-mcp

A Model Context Protocol (MCP) server that gives AI assistants calculated zmanim, Shabbat times and Hebrew calendar data, plus the text of the siddur, Tehillim, and the blessings for foods. It uses the same solar and zmanim calculations as the Kavaná siddur app. There is no AI in the server: every answer is deterministic math.

Public endpoint

https://zmanim.kavana-ai.workers.dev/mcp

No account or API key. Setup steps for Claude, ChatGPT, Claude Code, Cursor and GitHub Copilot are at https://kavana.jonyy.com/mcp/. The short version for Claude Code:

claude mcp add --transport http zmanim https://zmanim.kavana-ai.workers.dev/mcp

The endpoint is stateless Streamable HTTP (POST only), limited to 60 requests a minute per client address.

Related MCP server: Hebcal MCP Server

Meta Muse and other personal agents

Muse builds custom integrations from a chat instruction. Send it this prompt (based on third-party guides, not tested against Muse):

Build a custom integration to the Zmanim MCP server at https://zmanim.kavana-ai.workers.dev/mcp. Use the official MCP SDK with the Streamable HTTP client transport. The server is stateless: every call is an HTTP POST of a JSON-RPC message, with no sessions, no GET or server-sent streams, and no authentication or credentials. Call tools/list to see its nine read-only tools. Test get_shabbat_times with {"location":"Miami"} and find_blessing with {"food":"banana"}, show me the results, and save the integration as a reusable skill so I can use it from any future conversation.

Other agents that connect through chat (Claude Duet, Dot and similar) can be given the endpoint URL with the same description.

Weekly Shabbat reminder

In an assistant that supports scheduled tasks, send this after setup (replace the city):

Create a recurring task for every Friday at 9:00 AM in my time zone. Each time it runs, call the get_shabbat_times tool of the zmanim MCP server for [your city] and send me four lines: the candle-lighting time, the Havdalah time, the parasha, and any holiday on that Shabbat. State the candle-lighting and Havdalah offsets that were used. If the server cannot be reached, say so and do not estimate the times.

Tools

Tool

Answers

get_zmanim

The 13 zmanim for a date and place, each with the rule behind it

get_shabbat_times

Candle-lighting, Havdalah, parasha, holidays on that Shabbat

get_hebrew_date

Hebrew date, what falls on it, parasha, upcoming holidays

convert_hebrew_date

Civil date of a Hebrew date (birthdays, yahrzeits)

list_prayers

The prayers available, by service, for one tradition

get_service

A whole service (Shacharit, Mincha, Arvit) in order for a given day

get_prayer

Hebrew text of a prayer, with English where the source has it

get_psalm

A chapter of Tehillim in Hebrew and English

find_blessing

The blessing before and after a food or drink

A place is a city name ("Panama City, Panama") or latitude, longitude and an IANA timezone. City names are matched against a built-in list of about 34,000 cities (data/cities.txt), so the server contacts no outside service.

Defaults

  • Dawn: Rav Ovadia Yosef, 72 seasonal minutes (posen, chabad, fixed72 available)

  • Nightfall: sun 8.5° below the horizon (7.083deg, 6deg, 13.5min available)

  • Candle-lighting: 18 minutes before sunset. Havdalah: 40 minutes after

  • Deadlines round down to the minute, beginnings round up

  • Sea-level horizon unless an elevation is given. Terrain is not modeled

Every response states the method used. The equations are documented at https://kavana.jonyy.com/calculations/.

Run it yourself

Requires Node.js 20 or later.

npm install
npm test          # builds, then runs the test suite
npm start         # local stdio server

Add the local server to Claude Code:

claude mcp add zmanim -- node "$PWD/dist/index.js"

Deploy your own copy to Cloudflare Workers:

npm run dev       # local HTTP server on http://localhost:8787/mcp
npm run deploy

Layout

File

Purpose

src/solar.ts

NOAA solar equations: sunrise, sunset, sun-angle times

src/zmanim.ts

Zmanim and Shabbat times from those solar events

src/calendar.ts

Hebrew dates, holidays and parasha via @hebcal/core

src/location.ts

City lookup in the built-in list, time zone validation

data/cities.txt

City names, coordinates and time zones from GeoNames

src/texts.ts

Prayer, Psalm and blessing lookups

assets/texts/

One JSON file per prayer, built by scripts/build_texts.py

src/server.ts

The nine MCP tools

src/index.ts

Local stdio entry point

src/worker.ts

Cloudflare Workers entry point (public HTTP endpoint)

The tests check sunrise and sunset against @hebcal/core's independent implementation to within 60 seconds across six cities and six dates.

Disclaimer

Results are calculations, not halachic rulings. Confirm the applicable method and local practice with a community luach or a rabbi.

Credits

  • Hebrew calendar: @hebcal/core (GPL-2.0-or-later)

  • City list: GeoNames (CC BY 4.0)

  • Sephardic siddur: Siddur Edot HaMizrach via Sefaria, Hebrew Shaliehsaboo Edition (CC0), English Sefaria Community Translation (CC0)

  • Ashkenaz and Nusach Sefard siddurim: via Sefaria. Hebrew and English from the Metsudah siddur (1981), Avrohom Davis (CC BY), with public-domain texts for missing sections

  • Tehillim: Tanach with Nikkud; English, The Holy Scriptures (JPS 1917), public domain

  • Solar equations: NOAA Solar Calculator, after Jean Meeus, Astronomical Algorithms

License

GPL-2.0-or-later. See LICENSE. The Hebrew calendar dependency, @hebcal/core, is under the same license.

Available Tools

9 tools
convert_hebrew_dateHebrew date to civil dateA
Read-onlyIdempotent

The civil (Gregorian) date of a Hebrew date, for birthdays, yahrzeits and holidays. The Hebrew day begins the evening before the returned date.

Inputs: day (required), year (required), month (required).

find_blessingBlessing for a foodA
Read-onlyIdempotent

The blessing (beracha) said before and after a food or drink, in Hebrew with transliteration and English, from a guide of common foods following Sephardic practice. With no food named, returns all the blessings before and after eating.

Inputs: food.

get_hebrew_dateHebrew date and calendarA
Read-onlyIdempotent

The Hebrew date for a civil date, what falls on it (holidays, fasts, Rosh Chodesh, omer count), the week's parasha, and optionally the holidays coming up. Use this for questions like "what is today's Hebrew date" or "when is Chanukah".

Inputs: date, israel, timezone, days_ahead, +1 more.

get_prayerText of a prayerA
Read-onlyIdempotent

The Hebrew text of a prayer from the siddur, with English where the source provides it: for example shema, amidah, modeh ani, alenu, birkat hamazon, kiddush, havdalah, bedtime shema, traveler's prayer. Long prayers are returned in parts; next_offset gives the position of the next part.

Inputs: prayer (required), offset, service, tradition, +1 more.

get_psalmText of a PsalmB
Read-onlyIdempotent

One chapter of Tehillim (Psalms) in Hebrew with vowels, with the JPS 1917 English translation.

Inputs: chapter (required), include_english.

get_serviceA prayer service for a dayA
Read-onlyIdempotent

A whole prayer service in order (Shacharit, Mincha, or Arvit) for a given day: the list of its prayers and their Hebrew text, with English where the source provides it. The day decides which service applies: on Shabbat, shacharit returns the Shabbat morning service, and on Friday night arvit returns Kabbalat Shabbat. day_notes lists the usual changes for Rosh Chodesh, Chanukah, fast days and festivals. The text comes in parts; continue from next_position.

Inputs: service (required), date, israel, position, +3 more.

get_shabbat_timesShabbat candle-lighting and HavdalahA
Read-onlyIdempotent

Candle-lighting and Havdalah for the coming Shabbat (or the Shabbat of the week containing a given date), with the parasha and any holiday that falls on it. The result states the candle-lighting and Havdalah offsets that were applied.

Inputs: date, latitude, location, timezone, +3 more.

get_zmanimZmanim for a dayA
Read-onlyIdempotent

Halachic times of day (alot, misheyakir, sunrise, latest Shema and tefillah, chatzot, mincha, plag, sunset, nightfall) for one date and place. Defaults follow the Sephardic method of Rav Ovadia Yosef. Each result names the calculation method that was applied.

Inputs: date, dawn, latitude, location, +4 more.

list_prayersPrayers in the siddurA
Read-onlyIdempotent

The catalog of prayers whose text this server holds, grouped by service (Shacharit, Mincha, Arvit, Shabbat, blessings), for one tradition. Returns the prayer ids that get_prayer accepts.

Inputs: tradition.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 9 tools

    Disambiguation4/5

    Each tool has a distinct target: daily halachic times, Shabbat candle-lighting/Havdalah, civil→Hebrew conversion, Hebrew→civil conversion, prayer catalog, single prayer, full service, psalm, and food blessings. The one soft overlap is get_prayer vs get_service, since a whole service also returns prayer text, but the catalog/single/service split is explained well enough to guide selection. Zmanim vs Shabbat times are related but clearly separated by purpose.

    Naming Consistency5/5

    All names are snake_case verb_noun constructions (get_zmanim, get_shabbat_times, list_prayers, convert_hebrew_date, find_blessing). The verbs vary (get/list/convert/find) but each is semantically apt rather than arbitrary, so the pattern stays predictable.

    Tool Count5/5

    Nine tools is well within the sweet spot and every tool maps to a distinct user need within Jewish time/prayer/lifecycle content. No filler or redundant endpoints are present.

    Completeness4/5

    The surface covers times, Shabbat, both date-conversion directions, prayer catalog/single/service, Psalms, and blessings, with no obvious dead ends for those workflows. Minor gaps exist for adjacent material implied by the domain, e.g. no Torah reading/aliyah text tool and no standalone holiday-calendar listing beyond what get_hebrew_date surfaces.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides AI assistants with rich temporal intelligence including timezone conversions, 9 cultural calendars (Hebrew, Islamic, Chinese, etc.), astronomical events, Islamic prayer times, and context-aware activity appropriateness recommendations.
      3
      MIT
    • F
      license
      A
      quality
      B
      maintenance
      Provides access to Jewish holiday calendars and Shabbat candle lighting and Havdalah times for various cities via the Hebcal API. It enables users to query specific holiday dates and weekly Shabbat schedules through natural language.
      4
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to validate Israeli ID and company numbers, normalize Israeli phone numbers, calculate date-aware VAT, convert Gregorian dates to the Hebrew calendar, and format Hebrew numerals or process niqqud and gematria.
      17
      1
      MIT