Time.ir Calendar

v0.2.2
io.github.sepehr071/time-ir-mcp Checked 4 days ago Published 17 days ago

Read-only Time.ir Iranian calendar: Jalali/Gregorian/Hijri dates, holidays, events, prayer times.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ti_today Today

Get today's date in the Jalali, Gregorian and Hijri calendars with the Tehran time, weekday, zodiac sign and today's events. Use first for "today", "now" or the date/time in Iran.

ti_convert_date Convert date

Convert a date between the Jalali (Solar Hijri), Gregorian and Hijri (lunar) calendars, using time.ir's own converter. Hijri is Iran's official date (may differ by a day from Saudi Arabia's).

ParameterTypeDescription
date *stringYYYY-MM-DD, e.g. 1405-08-10 or 2026-11-01.
calendarstringCalendar of the date(s).

ti_month Month calendar

Show one Jalali month: its Gregorian and Hijri month spans, weekday of day 1, holidays and every event of the month. Use for "holidays this month". For one day with descriptions use ti_events.

ParameterTypeDescription
monthJalali month 1-12. Omit for current.
yearJalali year, e.g. 1405. Omit for current.

ti_events Events of a day

List the occasions (Persian: monasebat) and official holidays of one day, with a short description when time.ir has one. Use for "is 2026-12-25 a holiday in Iran". Each event has `calendar` (where the occasion belongs) and `holiday`. Friday alone is not a holiday.

ParameterTypeDescription
calendarstringCalendar of the date(s).
dateYYYY-MM-DD in `calendar`, e.g. 1405-08-10. Omit for today.

ti_holidays Holidays of a year

List all official holidays (تعطیلات رسمی) of a Jalali year with Gregorian and Hijri dates and weekdays. Fridays are listed only when also an occasion holiday. For "the next holiday" use ti_upcoming_holidays.

ParameterTypeDescription
yearJalali year, e.g. 1405. Omit for current.

ti_upcoming_holidays Upcoming holidays

List the next official holidays in Iran starting today (or from_date), with days until each. Use for "when is the next holiday". Fridays alone are not listed.

ParameterTypeDescription
calendarstringCalendar of the date(s).
countintegerHolidays to return.
from_dateYYYY-MM-DD in `calendar`, e.g. 1405-08-10. Omit for today.

ti_cities Cities

List Iran's provinces, or the cities of one province, with the ids ti_prayer_times takes. No arguments: 31 provinces with capital city ids. With `province`: its cities with lat/lng.

ParameterTypeDescription
provinceProvince name or id, e.g. 'فارس'. Omit to list the 31 provinces.
queryFilter cities by name.

ti_prayer_times Prayer times

Get the Islamic prayer times (اوقات شرعی) for an Iranian city and day: fajr, sunrise, noon, sunset, maghrib and Islamic midnight. Iran local time, 24 h. Today only: another `date` returns an error. Non-capital cities need `province`.

ParameterTypeDescription
city *stringCity name (Persian), e.g. 'شیراز', or city id.
calendarstringCalendar of the date(s).
dateYYYY-MM-DD in `calendar`, e.g. 1405-08-10. Omit for today.
provinceProvince name or id; needed unless `city` is a provincial capital.

ti_qibla Qibla direction

Get the qibla direction (bearing to the Kaaba in Mecca, degrees clockwise from true north) and distance for an Iranian city. Computed from the city's coordinates (great circle), not by Time.ir. Bearing is from true north.

ParameterTypeDescription
city *stringCity name (Persian), e.g. 'شیراز', or city id (then `province` is needed).
provinceProvince name or id; needed unless `city` is a provincial capital.

ti_on_this_day On this day in history

List today's historical events, birthdays and deaths of notable people, as Time.ir's "today" page shows them. Today only. Each item's `date` is as Time.ir prints it (Gregorian with year for history, Jalali day for national occasions).

ParameterTypeDescription
kindKeep only this kind.

ti_search_events Search occasions

Search all occasions (monasebat) of a Jalali year by keyword and return each match with its dates. Use for "when is Teacher's Day". Title matches first, then description matches, each in date order.

ParameterTypeDescription
query *stringText in occasion names or descriptions, e.g. 'معلم'.
calendarOnly this calendar's occasions (jalali national, gregorian world days, hijri religious).
holiday_onlybooleanOnly official holidays.
limitintegerMax results.
yearJalali year. Omit for current.

ti_date_difference Date difference

Count the days between two dates and give the span as Jalali years, months and days (age calculator). Omit to_date for today. Both dates use `calendar`. If to_date is earlier, `direction` is "before".

ParameterTypeDescription
from_date *stringStart date YYYY-MM-DD, e.g. birth date 1380-05-17.
calendarstringCalendar of the date(s).
to_dateYYYY-MM-DD in `calendar`, e.g. 1405-08-10. Omit for today.

ti_long_weekends Long weekends

Find runs of consecutive days off in a Jalali year: official holidays joined with Fridays (optionally Thursdays). Use for "long weekends in 1405". Bridge days are not counted; runs are cut at the year boundary.

ParameterTypeDescription
min_daysintegerShortest run to list.
thursday_offbooleanCount Thursdays as days off.
yearJalali year. Omit for current.