time-ir-mcp 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ python: ["3.10", "3.11", "3.12", "3.13"]
14
+ steps:
15
+ - uses: actions/checkout@v7
16
+ - uses: astral-sh/setup-uv@v10.2.0
17
+ with:
18
+ python-version: ${{ matrix.python }}
19
+ - run: uv sync --locked
20
+ - run: uv run ruff check .
21
+ - run: uv run ruff format --check .
22
+ - run: uv run pytest -q
@@ -0,0 +1,51 @@
1
+ name: Publish
2
+
3
+ # Tag a release (git tag v0.1.0 && git push --tags) after bumping the version in
4
+ # pyproject.toml and server.json.
5
+ on:
6
+ push:
7
+ tags: ["v*"]
8
+
9
+ jobs:
10
+ pypi:
11
+ runs-on: ubuntu-latest
12
+ environment: pypi
13
+ permissions:
14
+ id-token: write # PyPI trusted publishing
15
+ contents: write # GitHub Release
16
+ steps:
17
+ - uses: actions/checkout@v7
18
+ - uses: astral-sh/setup-uv@v10.2.0
19
+ - name: Check versions match the tag
20
+ run: |
21
+ TAG=${GITHUB_REF_NAME#v}
22
+ grep -q "^version = \"$TAG\"" pyproject.toml
23
+ test "$(jq -r .version server.json)" = "$TAG"
24
+ test "$(jq -r '.packages[0].version' server.json)" = "$TAG"
25
+ - run: uv sync --locked && uv run pytest -q
26
+ - run: uv build
27
+ - uses: pypa/gh-action-pypi-publish@release/v1
28
+ - run: gh release create "$GITHUB_REF_NAME" dist/* --generate-notes --title "$GITHUB_REF_NAME"
29
+ env:
30
+ GH_TOKEN: ${{ github.token }}
31
+
32
+ mcp-registry:
33
+ needs: pypi
34
+ runs-on: ubuntu-latest
35
+ permissions:
36
+ id-token: write # MCP Registry login via GitHub OIDC
37
+ contents: read
38
+ steps:
39
+ - uses: actions/checkout@v7
40
+ - name: Wait for PyPI to serve the new version
41
+ run: |
42
+ for i in $(seq 1 30); do
43
+ curl -sf "https://pypi.org/pypi/time-ir-mcp/${GITHUB_REF_NAME#v}/json" >/dev/null && exit 0
44
+ sleep 10
45
+ done
46
+ exit 1
47
+ - name: Install mcp-publisher
48
+ run: |
49
+ curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.8.1/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
50
+ - run: ./mcp-publisher login github-oidc
51
+ - run: ./mcp-publisher publish
@@ -0,0 +1,6 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ dist/
5
+ .pytest_cache/
6
+ .ruff_cache/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sepehr Radmard
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,146 @@
1
+ Metadata-Version: 2.5
2
+ Name: time-ir-mcp
3
+ Version: 0.1.0
4
+ Summary: Unofficial read-only MCP server for Time.ir, the Iranian calendar: Jalali, Gregorian and Hijri dates, holidays, events, prayer times.
5
+ Project-URL: Homepage, https://github.com/sepehr071/time-ir-mcp
6
+ Project-URL: Issues, https://github.com/sepehr071/time-ir-mcp/issues
7
+ Project-URL: Website, https://mcpfarsi.ir/
8
+ Author-email: Sepehr Radmard <sepehrr80@gmail.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: azan,claude,hijri,holidays,iran-calendar,jalali,mcp,model-context-protocol,persian,persian-calendar,prayer-times,shamsi,time-ir,time.ir
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: curl-cffi>=0.16.3
23
+ Requires-Dist: httpx-curl-cffi>=0.1.5
24
+ Requires-Dist: httpx>=0.27
25
+ Requires-Dist: mcp<3,>=2.2
26
+ Description-Content-Type: text/markdown
27
+
28
+ <!-- mcp-name: io.github.sepehr071/time-ir-mcp -->
29
+
30
+ # time-ir-mcp: Time.ir Iranian calendar MCP server for AI agents
31
+
32
+ **time-ir-mcp is an unofficial, read-only MCP server that gives AI agents the Iranian calendar of Time.ir (تایم، تقویم و ساعت ایران).**<br>
33
+ Its 13 tools give today's date in the Jalali, Gregorian and Hijri calendars, convert dates, show a month with its events,<br>
34
+ 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.<br>
35
+ No API key or account is needed. It works in Claude, Cursor, Copilot and any other MCP client.
36
+
37
+ [![PyPI](https://img.shields.io/pypi/v/time-ir-mcp?color=2563eb)](https://pypi.org/project/time-ir-mcp/)
38
+ [![Python](https://img.shields.io/pypi/pyversions/time-ir-mcp)](https://pypi.org/project/time-ir-mcp/)
39
+ [![CI](https://github.com/sepehr071/time-ir-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/sepehr071/time-ir-mcp/actions/workflows/ci.yml)
40
+ [![License: MIT](https://img.shields.io/badge/license-MIT-16a34a)](https://github.com/sepehr071/time-ir-mcp/blob/main/LICENSE)
41
+
42
+ [For AI agents](#for-ai-agents) · [Quick start](#quick-start) · [Tools](#tools) · [Good to know](#good-to-know) · [فارسی](#فارسی)
43
+
44
+ ---
45
+
46
+ ## For AI agents
47
+
48
+ - **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.
49
+ - **Install:** `uvx time-ir-mcp` or `claude mcp add time-ir -- uvx time-ir-mcp`. Transport: stdio. Needs [uv](https://docs.astral.sh/uv/getting-started/installation/) (Python 3.10+).
50
+ - **Auth:** none. Optional `TIME_IR_MCP_PROXY` (HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.
51
+ - **Access:** read-only. Nothing is written anywhere, so no confirmation is needed before calling any tool.
52
+ - **Tools:** 13, all prefixed `ti_`. Typical sequences: `ti_today`; `ti_events` (is it a holiday?); `ti_upcoming_holidays`; `ti_cities` -> `ti_prayer_times`.
53
+ - **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.
54
+ - **Do not use when:** the user wants other countries' holidays or times (Time.ir covers Iran's official calendar only).
55
+ - **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.
56
+
57
+ ## Tools
58
+
59
+ | Tool | What it does |
60
+ |---|---|
61
+ | `ti_today` | Get today's date in the Jalali, Gregorian and Hijri calendars with the Tehran time, weekday, zodiac sign and today's events |
62
+ | `ti_convert_date` | Convert a date between the Jalali, Gregorian and Hijri calendars with time.ir's own converter |
63
+ | `ti_month` | Show one Jalali month: Gregorian and Hijri spans, weekday of day 1, holidays, Fridays and every event |
64
+ | `ti_events` | List the occasions and official holidays of one day, with a short description when time.ir has one |
65
+ | `ti_holidays` | List all official holidays of a Jalali year with Gregorian and Hijri dates |
66
+ | `ti_upcoming_holidays` | List the next official holidays in Iran with days until each |
67
+ | `ti_prayer_times` | Get today's prayer times (fajr, sunrise, noon, sunset, maghrib, Islamic midnight, day length) for an Iranian city |
68
+ | `ti_cities` | List Iran's provinces, or the cities of one province, with the ids the prayer tool takes |
69
+ | `ti_on_this_day` | List today's historical events, births and deaths of notable people from time.ir's today page |
70
+ | `ti_search_events` | Search all occasions of a Jalali year by keyword, holiday flag or calendar |
71
+ | `ti_date_difference` | Count days between two dates and give Jalali years, months, days (age calculator) |
72
+ | `ti_long_weekends` | Find runs of consecutive days off (holidays plus Fridays) in a Jalali year |
73
+ | `ti_qibla` | Get the qibla bearing and distance to Mecca for an Iranian city (computed from the site's coordinates) |
74
+
75
+ All 13 tools are annotated `readOnlyHint: true`.
76
+
77
+ ## Quick start
78
+
79
+ You need [uv](https://docs.astral.sh/uv/getting-started/installation/). No API key or account.
80
+
81
+ ```bash
82
+ claude mcp add time-ir -- uvx time-ir-mcp
83
+ ```
84
+
85
+ Claude Desktop, Cursor, Windsurf and Gemini CLI take the same stdio entry:
86
+
87
+ ```json
88
+ {
89
+ "mcpServers": {
90
+ "time-ir": { "command": "uvx", "args": ["time-ir-mcp"] }
91
+ }
92
+ }
93
+ ```
94
+
95
+ Example prompts: "What is today's Jalali date?", "Is 25 December a holiday in Iran?", "When is the next official holiday?",
96
+ "Convert 1405-01-01 to Gregorian and Hijri.", "Azan times in Mashhad today."
97
+ <span dir="rtl">«تاریخ امروز به شمسی چیست؟»، «اذان ظهر شیراز چه ساعتی است؟»، «تعطیلات رسمی بهمن ۱۴۰۵ کدام‌اند؟»</span>
98
+
99
+ ## How it works
100
+
101
+ `time-ir-mcp` runs locally and calls the same "server actions" the time.ir pages call (www.time.ir is a Next.js app;
102
+ the site's server reads api.time.ir with its own key, which this server never sees). Requests go out through a
103
+ Chrome-impersonating client, spaced at least one second apart, cached for 10 minutes (the current time is never
104
+ cached), and only to www.time.ir. Action ids change when the site is redeployed; when the site rejects one, the server
105
+ looks the new id up by function name in the site's scripts and retries once.
106
+
107
+ ## Good to know
108
+
109
+ - **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.
110
+ - **Friday** is the weekend and is not reported as a holiday on its own; a Friday that is also an occasion holiday is.
111
+ - **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`.
112
+ - **Persian data.** Titles and descriptions are Persian. Event descriptions are HTML on the site; the tool returns plain text, cut at 900 characters.
113
+ - **Fragile by nature.** The site has no public API; if it changes its pages, a tool can fail until the server is updated.
114
+
115
+ ## فارسی
116
+
117
+ <div dir="rtl">
118
+
119
+ **time-ir-mcp** یک سرور MCP غیررسمی و فقط‌خواندنی برای [تایم](https://www.time.ir) (تقویم و ساعت ایران) است: تاریخ امروز به شمسی، میلادی و قمری، تبدیل تاریخ، مناسبت‌ها و تعطیلات رسمی، و اوقات شرعی شهرهای ایران.
120
+
121
+ نصب (با [uv](https://docs.astral.sh/uv/getting-started/installation/)): `claude mcp add time-ir -- uvx time-ir-mcp`. کلید API یا حساب لازم نیست. اگر شبکهٔ شما درخواست‌ها را مسدود کرد، متغیر `TIME_IR_MCP_PROXY` را روی یک پراکسی HTTP بگذارید.
122
+
123
+ </div>
124
+
125
+ ## Development
126
+
127
+ ```bash
128
+ uv sync
129
+ uv run ruff check . && uv run ruff format --check .
130
+ uv run python -m pytest -q # offline tests on recorded time.ir answers
131
+ uv run python -m pytest -m live -q # calls the real time.ir site
132
+ uv build
133
+ ```
134
+
135
+ ## Disclaimer
136
+
137
+ Unofficial and not affiliated with or endorsed by Time.ir or Radcom. It is read-only and uses the public pages of
138
+ www.time.ir, which can change without notice. For religious or legal purposes check the official sources.
139
+
140
+ ## Author
141
+
142
+ Built and maintained by **Sepehr Radmard** (سپهر رادمرد). Connect on [LinkedIn](https://www.linkedin.com/in/sepehr-radmard) or follow [@sepehr071 on GitHub](https://github.com/sepehr071) for more MCP servers for Iranian websites, all listed in [iran-mcp](https://github.com/sepehr071/iran-mcp).
143
+
144
+ ## License
145
+
146
+ [MIT](https://github.com/sepehr071/time-ir-mcp/blob/main/LICENSE)
@@ -0,0 +1,119 @@
1
+ <!-- mcp-name: io.github.sepehr071/time-ir-mcp -->
2
+
3
+ # time-ir-mcp: Time.ir Iranian calendar MCP server for AI agents
4
+
5
+ **time-ir-mcp is an unofficial, read-only MCP server that gives AI agents the Iranian calendar of Time.ir (تایم، تقویم و ساعت ایران).**<br>
6
+ Its 13 tools give today's date in the Jalali, Gregorian and Hijri calendars, convert dates, show a month with its events,<br>
7
+ 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.<br>
8
+ No API key or account is needed. It works in Claude, Cursor, Copilot and any other MCP client.
9
+
10
+ [![PyPI](https://img.shields.io/pypi/v/time-ir-mcp?color=2563eb)](https://pypi.org/project/time-ir-mcp/)
11
+ [![Python](https://img.shields.io/pypi/pyversions/time-ir-mcp)](https://pypi.org/project/time-ir-mcp/)
12
+ [![CI](https://github.com/sepehr071/time-ir-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/sepehr071/time-ir-mcp/actions/workflows/ci.yml)
13
+ [![License: MIT](https://img.shields.io/badge/license-MIT-16a34a)](https://github.com/sepehr071/time-ir-mcp/blob/main/LICENSE)
14
+
15
+ [For AI agents](#for-ai-agents) · [Quick start](#quick-start) · [Tools](#tools) · [Good to know](#good-to-know) · [فارسی](#فارسی)
16
+
17
+ ---
18
+
19
+ ## For AI agents
20
+
21
+ - **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.
22
+ - **Install:** `uvx time-ir-mcp` or `claude mcp add time-ir -- uvx time-ir-mcp`. Transport: stdio. Needs [uv](https://docs.astral.sh/uv/getting-started/installation/) (Python 3.10+).
23
+ - **Auth:** none. Optional `TIME_IR_MCP_PROXY` (HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.
24
+ - **Access:** read-only. Nothing is written anywhere, so no confirmation is needed before calling any tool.
25
+ - **Tools:** 13, all prefixed `ti_`. Typical sequences: `ti_today`; `ti_events` (is it a holiday?); `ti_upcoming_holidays`; `ti_cities` -> `ti_prayer_times`.
26
+ - **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.
27
+ - **Do not use when:** the user wants other countries' holidays or times (Time.ir covers Iran's official calendar only).
28
+ - **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.
29
+
30
+ ## Tools
31
+
32
+ | Tool | What it does |
33
+ |---|---|
34
+ | `ti_today` | Get today's date in the Jalali, Gregorian and Hijri calendars with the Tehran time, weekday, zodiac sign and today's events |
35
+ | `ti_convert_date` | Convert a date between the Jalali, Gregorian and Hijri calendars with time.ir's own converter |
36
+ | `ti_month` | Show one Jalali month: Gregorian and Hijri spans, weekday of day 1, holidays, Fridays and every event |
37
+ | `ti_events` | List the occasions and official holidays of one day, with a short description when time.ir has one |
38
+ | `ti_holidays` | List all official holidays of a Jalali year with Gregorian and Hijri dates |
39
+ | `ti_upcoming_holidays` | List the next official holidays in Iran with days until each |
40
+ | `ti_prayer_times` | Get today's prayer times (fajr, sunrise, noon, sunset, maghrib, Islamic midnight, day length) for an Iranian city |
41
+ | `ti_cities` | List Iran's provinces, or the cities of one province, with the ids the prayer tool takes |
42
+ | `ti_on_this_day` | List today's historical events, births and deaths of notable people from time.ir's today page |
43
+ | `ti_search_events` | Search all occasions of a Jalali year by keyword, holiday flag or calendar |
44
+ | `ti_date_difference` | Count days between two dates and give Jalali years, months, days (age calculator) |
45
+ | `ti_long_weekends` | Find runs of consecutive days off (holidays plus Fridays) in a Jalali year |
46
+ | `ti_qibla` | Get the qibla bearing and distance to Mecca for an Iranian city (computed from the site's coordinates) |
47
+
48
+ All 13 tools are annotated `readOnlyHint: true`.
49
+
50
+ ## Quick start
51
+
52
+ You need [uv](https://docs.astral.sh/uv/getting-started/installation/). No API key or account.
53
+
54
+ ```bash
55
+ claude mcp add time-ir -- uvx time-ir-mcp
56
+ ```
57
+
58
+ Claude Desktop, Cursor, Windsurf and Gemini CLI take the same stdio entry:
59
+
60
+ ```json
61
+ {
62
+ "mcpServers": {
63
+ "time-ir": { "command": "uvx", "args": ["time-ir-mcp"] }
64
+ }
65
+ }
66
+ ```
67
+
68
+ Example prompts: "What is today's Jalali date?", "Is 25 December a holiday in Iran?", "When is the next official holiday?",
69
+ "Convert 1405-01-01 to Gregorian and Hijri.", "Azan times in Mashhad today."
70
+ <span dir="rtl">«تاریخ امروز به شمسی چیست؟»، «اذان ظهر شیراز چه ساعتی است؟»، «تعطیلات رسمی بهمن ۱۴۰۵ کدام‌اند؟»</span>
71
+
72
+ ## How it works
73
+
74
+ `time-ir-mcp` runs locally and calls the same "server actions" the time.ir pages call (www.time.ir is a Next.js app;
75
+ the site's server reads api.time.ir with its own key, which this server never sees). Requests go out through a
76
+ Chrome-impersonating client, spaced at least one second apart, cached for 10 minutes (the current time is never
77
+ cached), and only to www.time.ir. Action ids change when the site is redeployed; when the site rejects one, the server
78
+ looks the new id up by function name in the site's scripts and retries once.
79
+
80
+ ## Good to know
81
+
82
+ - **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.
83
+ - **Friday** is the weekend and is not reported as a holiday on its own; a Friday that is also an occasion holiday is.
84
+ - **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`.
85
+ - **Persian data.** Titles and descriptions are Persian. Event descriptions are HTML on the site; the tool returns plain text, cut at 900 characters.
86
+ - **Fragile by nature.** The site has no public API; if it changes its pages, a tool can fail until the server is updated.
87
+
88
+ ## فارسی
89
+
90
+ <div dir="rtl">
91
+
92
+ **time-ir-mcp** یک سرور MCP غیررسمی و فقط‌خواندنی برای [تایم](https://www.time.ir) (تقویم و ساعت ایران) است: تاریخ امروز به شمسی، میلادی و قمری، تبدیل تاریخ، مناسبت‌ها و تعطیلات رسمی، و اوقات شرعی شهرهای ایران.
93
+
94
+ نصب (با [uv](https://docs.astral.sh/uv/getting-started/installation/)): `claude mcp add time-ir -- uvx time-ir-mcp`. کلید API یا حساب لازم نیست. اگر شبکهٔ شما درخواست‌ها را مسدود کرد، متغیر `TIME_IR_MCP_PROXY` را روی یک پراکسی HTTP بگذارید.
95
+
96
+ </div>
97
+
98
+ ## Development
99
+
100
+ ```bash
101
+ uv sync
102
+ uv run ruff check . && uv run ruff format --check .
103
+ uv run python -m pytest -q # offline tests on recorded time.ir answers
104
+ uv run python -m pytest -m live -q # calls the real time.ir site
105
+ uv build
106
+ ```
107
+
108
+ ## Disclaimer
109
+
110
+ Unofficial and not affiliated with or endorsed by Time.ir or Radcom. It is read-only and uses the public pages of
111
+ www.time.ir, which can change without notice. For religious or legal purposes check the official sources.
112
+
113
+ ## Author
114
+
115
+ Built and maintained by **Sepehr Radmard** (سپهر رادمرد). Connect on [LinkedIn](https://www.linkedin.com/in/sepehr-radmard) or follow [@sepehr071 on GitHub](https://github.com/sepehr071) for more MCP servers for Iranian websites, all listed in [iran-mcp](https://github.com/sepehr071/iran-mcp).
116
+
117
+ ## License
118
+
119
+ [MIT](https://github.com/sepehr071/time-ir-mcp/blob/main/LICENSE)
@@ -0,0 +1,55 @@
1
+ [project]
2
+ name = "time-ir-mcp"
3
+ version = "0.1.0"
4
+ description = "Unofficial read-only MCP server for Time.ir, the Iranian calendar: Jalali, Gregorian and Hijri dates, holidays, events, prayer times."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ authors = [{ name = "Sepehr Radmard", email = "sepehrr80@gmail.com" }]
9
+ requires-python = ">=3.10"
10
+ keywords = ["mcp", "model-context-protocol", "time-ir", "time.ir", "iran-calendar", "jalali", "persian-calendar", "shamsi", "hijri", "holidays", "azan", "prayer-times", "claude", "persian"]
11
+ classifiers = [
12
+ "Development Status :: 4 - Beta",
13
+ "Intended Audience :: Developers",
14
+ "Operating System :: OS Independent",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.10",
17
+ "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
21
+ ]
22
+ dependencies = [
23
+ "mcp>=2.2,<3",
24
+ "httpx>=0.27",
25
+ "httpx-curl-cffi>=0.1.5",
26
+ "curl-cffi>=0.16.3",
27
+ ]
28
+
29
+ [project.urls]
30
+ Homepage = "https://github.com/sepehr071/time-ir-mcp"
31
+ Issues = "https://github.com/sepehr071/time-ir-mcp/issues"
32
+ Website = "https://mcpfarsi.ir/"
33
+
34
+ [project.scripts]
35
+ time-ir-mcp = "time_ir_mcp.server:main"
36
+
37
+ [dependency-groups]
38
+ dev = ["pytest>=8", "ruff>=0.6"]
39
+
40
+ [build-system]
41
+ requires = ["hatchling"]
42
+ build-backend = "hatchling.build"
43
+
44
+ [tool.pytest.ini_options]
45
+ testpaths = ["tests"]
46
+ addopts = "-m 'not live'"
47
+ markers = ["live: calls the real Time.ir site (run with -m live)"]
48
+
49
+ [tool.ruff]
50
+ line-length = 120
51
+ target-version = "py310"
52
+
53
+ [tool.ruff.lint]
54
+ select = ["E", "F", "I", "B", "UP"]
55
+ ignore = ["E501"] # long Field(description=...) strings read better on one line
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.sepehr071/time-ir-mcp",
4
+ "title": "Time.ir Calendar",
5
+ "description": "Read-only Time.ir Iranian calendar: Jalali/Gregorian/Hijri dates, holidays, events, prayer times.",
6
+ "repository": {
7
+ "url": "https://github.com/sepehr071/time-ir-mcp",
8
+ "source": "github"
9
+ },
10
+ "websiteUrl": "https://github.com/sepehr071/time-ir-mcp",
11
+ "version": "0.1.0",
12
+ "packages": [
13
+ {
14
+ "registryType": "pypi",
15
+ "registryBaseUrl": "https://pypi.org",
16
+ "identifier": "time-ir-mcp",
17
+ "version": "0.1.0",
18
+ "runtimeHint": "uvx",
19
+ "transport": {
20
+ "type": "stdio"
21
+ },
22
+ "environmentVariables": [
23
+ {
24
+ "name": "TIME_IR_MCP_PROXY",
25
+ "description": "Optional HTTP proxy URL for the Time.ir requests; system proxy settings are ignored. Also accepts a comma-separated list: one is used until it gets blocked or fails to connect, then the next.",
26
+ "isRequired": false,
27
+ "isSecret": false
28
+ }
29
+ ]
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,5 @@
1
+ """Unofficial MCP server for Time.ir, the Iranian calendar: Jalali, Gregorian and Hijri dates, holidays, events and prayer times."""
2
+
3
+ from importlib.metadata import version
4
+
5
+ __version__ = version("time-ir-mcp")