
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.
概览
非官方、只读的 Time.ir 伊朗历法 MCP 服务器:提供波斯历、公历、伊斯兰历日期、节假日、纪念日与礼拜时间。
- 可以做什么
- 获取今天的波斯历、公历和伊斯兰历日期,含德黑兰时间、星期与当日事件
- 在三种历法之间转换日期,并计算日期间隔或年龄
- 查看某个波斯历月份、某天的纪念日与节假日,或一整年的官方节假日
- 查询即将到来的节假日、连休长假,并按关键词搜索纪念日
- 查询伊朗省份与城市,再获取某城市的礼拜时间与朝向方位
- 列出今天的历史事件、名人出生与逝世
- 适用场景
- 适合用户询问伊朗当地日期、需要在波斯历、公历与伊斯兰历之间换算、想知道某天是否为伊朗官方节假日、查询下一个节假日或连休,或需要伊朗城市礼拜(宣礼)时间的场景。
- 运行要求
- 通过 uvx 以 stdio 在本地运行,需要 uv 与 Python 3.10 及以上版本。无需账号或 API 密钥。需要能访问 www.time.ir;可选环境变量 TIME_IR_MCP_PROXY 用于设置 HTTP 代理(或逗号分隔的代理列表),因为系统代理设置会被忽略。
安装
在 SourceWeft 中
- 打开 控制台中的 Time.ir Calendar,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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-mcporclaude 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-DDstrings 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
All 13 tools are annotated readOnlyHint: true.
Quick start
You need uv. No API key or account.
Claude Desktop, Cursor, Windsurf and Gemini CLI take the same stdio entry:
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
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
来源:README.md,提交 255efff
工具
0版本历史
2- v0.2.0最新Nov 7, 2026
- v0.1.0Nov 1, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分