Time.ir Calendar

io.github.sepehr071由 GitHub 帳號 sepehr071 發布v0.2.0更新於 Nov 7, 2026

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

概覽

AI 產生的概覽

非官方、唯讀的 Time.ir 伊朗曆法 MCP 伺服器:提供波斯曆、西曆、伊斯蘭曆日期、假日、紀念日與禮拜時間。

可以做什麼
  • 取得今天的波斯曆、西曆與伊斯蘭曆日期,含德黑蘭時間、星期與當日事件
  • 在三種曆法之間轉換日期,並計算日期差距或年齡
  • 檢視某個波斯曆月份、某天的紀念日與假日,或一整年的官方假日
  • 查詢即將到來的假日、連假,並依關鍵字搜尋紀念日
  • 查詢伊朗省份與城市,再取得某城市的禮拜時間與朝拜方向
  • 列出今天的歷史事件、名人出生與逝世
適用情境
適合使用者詢問伊朗當地日期、需要在波斯曆、西曆與伊斯蘭曆之間換算、想知道某天是否為伊朗官方假日、查詢下一個假日或連假,或需要伊朗城市禮拜(宣禮)時間的情況。
執行需求
透過 uvx 以 stdio 在本機執行,需要 uv 與 Python 3.10 以上版本。不需帳號或 API 金鑰。需要能連線到 www.time.ir;可選環境變數 TIME_IR_MCP_PROXY 用來設定 HTTP 代理(或逗號分隔的代理清單),因為系統代理設定會被忽略。
安裝前請注意
唯讀、不寫入任何資料,但它是擷取沒有公開 API 的非官方網站,網站改版後工具可能失效。請求只送往 www.time.ir,可選擇經 TIME_IR_MCP_PROXY 指定的代理。僅涵蓋伊朗官方曆法,標題為波斯語;宗教或法律用途請核對官方來源。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Time.ir Calendar,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

time-ir-mcp: Time.ir Iranian calendar MCP server for AI agents

time-ir-mcp is an unofficial, read-only MCP server that gives AI agents the Iranian calendar of Time.ir (تایم، تقویم و ساعت ایران).
Its 13 tools give today's date in the Jalali, Gregorian and Hijri calendars, convert dates, show a month with its events,
list the occasions and official holidays of a day or a year, find the next holidays and return today's prayer times (اوقات شرعی) for Iranian cities, search occasions, count date differences and find long weekends.
No API key or account is needed. It works in Claude, Cursor, Copilot and any other MCP client.

[PyPI] [Python] [CI] [License: MIT]

For AI agents · Quick start · Tools · Good to know · فارسی


For AI agents

  • What: unofficial MCP server (model context protocol) for time.ir: the date and time in Iran in three calendars, date conversion, official holidays, monthly and daily occasions (مناسبت‌ها) and prayer times for Iranian cities.
  • Install: uvx time-ir-mcp or claude mcp add time-ir -- uvx time-ir-mcp. Transport: stdio. Needs uv (Python 3.10+).
  • Auth: none. Optional TIME_IR_MCP_PROXY (HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.
  • Access: read-only. Nothing is written anywhere, so no confirmation is needed before calling any tool.
  • Tools: 13, all prefixed ti_. Typical sequences: ti_today; ti_events (is it a holiday?); ti_upcoming_holidays; ti_cities -> ti_prayer_times.
  • Use when: the user asks what the date is in Iran, to convert between Jalali (شمسی), Gregorian (میلادی) and Hijri (قمری) dates, whether a day is an official holiday, what occasions a day has, when the next holiday is, or the azan times of an Iranian city.
  • Do not use when: the user wants other countries' holidays or times (Time.ir covers Iran's official calendar only).
  • Output: compact JSON. Dates are YYYY-MM-DD strings in the Jalali, Gregorian and Hijri calendars; times are Iran local time (24 h). Titles and descriptions are Persian, as Time.ir has them.

Tools

ToolWhat it does
ti_todayGet today's date in the Jalali, Gregorian and Hijri calendars with the Tehran time, weekday, zodiac sign and today's events
ti_convert_dateConvert a date between the Jalali, Gregorian and Hijri calendars with time.ir's own converter
ti_monthShow one Jalali month: Gregorian and Hijri spans, weekday of day 1, holidays, Fridays and every event
ti_eventsList the occasions and official holidays of one day, with a short description when time.ir has one
ti_holidaysList all official holidays of a Jalali year with Gregorian and Hijri dates
ti_upcoming_holidaysList the next official holidays in Iran with days until each
ti_prayer_timesGet today's prayer times (fajr, sunrise, noon, sunset, maghrib, Islamic midnight, day length) for an Iranian city
ti_citiesList Iran's provinces, or the cities of one province, with the ids the prayer tool takes
ti_on_this_dayList today's historical events, births and deaths of notable people from time.ir's today page
ti_search_eventsSearch all occasions of a Jalali year by keyword, holiday flag or calendar
ti_date_differenceCount days between two dates and give Jalali years, months, days (age calculator)
ti_long_weekendsFind runs of consecutive days off (holidays plus Fridays) in a Jalali year
ti_qiblaGet the qibla bearing and distance to Mecca for an Iranian city (computed from the site's coordinates)

All 13 tools are annotated readOnlyHint: true.

Quick start

You need uv. No API key or account.

bash
claude mcp add time-ir -- uvx time-ir-mcp

Claude Desktop, Cursor, Windsurf and Gemini CLI take the same stdio entry:

json
{  "mcpServers": {    "time-ir": { "command": "uvx", "args": ["time-ir-mcp"] }  }}

Example prompts: "What is today's Jalali date?", "Is 25 December a holiday in Iran?", "When is the next official holiday?", "Convert 1405-01-01 to Gregorian and Hijri.", "Azan times in Mashhad today." «تاریخ امروز به شمسی چیست؟»، «اذان ظهر شیراز چه ساعتی است؟»، «تعطیلات رسمی بهمن ۱۴۰۵ کدام‌اند؟»

How it works

time-ir-mcp runs locally and calls the same "server actions" the time.ir pages call (www.time.ir is a Next.js app; the site's server reads api.time.ir with its own key, which this server never sees). Requests go out through a Chrome-impersonating client, spaced at least one second apart, cached for 10 minutes (the current time is never cached), and only to www.time.ir. Action ids change when the site is redeployed; when the site rejects one, the server looks the new id up by function name in the site's scripts and retries once.

Good to know

  • Iran's official calendar only. Holidays are Iran's; the Hijri date is Iran's (it can differ by a day from Saudi Arabia's). No world clock.
  • Friday is the weekend and is not reported as a holiday on its own; a Friday that is also an occasion holiday is.
  • Prayer times are for the Jalali date given (other calendars are converted first) in Iran local time. Cities that are not provincial capitals need province.
  • Persian data. Titles and descriptions are Persian. Event descriptions are HTML on the site; the tool returns plain text, cut at 900 characters.
  • Fragile by nature. The site has no public API; if it changes its pages, a tool can fail until the server is updated.

فارسی

time-ir-mcp یک سرور MCP غیررسمی و فقط‌خواندنی برای تایم (تقویم و ساعت ایران) است: تاریخ امروز به شمسی، میلادی و قمری، تبدیل تاریخ، مناسبت‌ها و تعطیلات رسمی، و اوقات شرعی شهرهای ایران.

نصب (با uv): claude mcp add time-ir -- uvx time-ir-mcp. کلید API یا حساب لازم نیست. اگر شبکهٔ شما درخواست‌ها را مسدود کرد، متغیر TIME_IR_MCP_PROXY را روی یک پراکسی HTTP بگذارید.

Development

bash
uv syncuv run ruff check . && uv run ruff format --check .uv run python -m pytest -q          # offline tests on recorded time.ir answersuv run python -m pytest -m live -q  # calls the real time.ir siteuv build

Disclaimer

Unofficial and not affiliated with or endorsed by Time.ir or Radcom. It is read-only and uses the public pages of www.time.ir, which can change without notice. For religious or legal purposes check the official sources.

Author

Built and maintained by Sepehr Radmard (سپهر رادمرد). Connect on LinkedIn or follow @sepehr071 on GitHub for more MCP servers for Iranian websites, all listed in iran-mcp.

License

MIT

來源:README.md,提交 255efff

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.2.0最新Nov 7, 2026
  2. v0.1.0Nov 1, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分