Official Gazette of Iran

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

Read-only Official Gazette of Iran (rrk.ir): search laws and rulings, read their text.

概覽

AI 產生的概覽

伊朗官方公報(rrk.ir)的非官方唯讀 MCP 伺服器,讓助理列出、檢索並閱讀法律、法規與法院裁判。

可以做什麼
  • 依最新順序列出公報中的法律、法規與裁判
  • 依標題詞、全文、法律分組、核准機關、專刊號或波斯曆公報日期範圍檢索法律
  • 列出可作為篩選條件的法律分組與核准機關
  • 讀取單一法律的核准機關、公報編號與日期,以及全文
  • 依省份與城市列出特許貨幣兌換所
適用情境
適合用於使用者想知道公報最近發布了什麼、依主題或日期查找法律、法規或行政司法法院裁判,或需要某份具體文本時。不適用於公司登記公告,因為入口網站並未提供這類公開檢索。
執行需求
透過 uvx 以 stdio 在本機執行,需要 uv 與 Python 3.10 以上版本。不需帳號或 API 金鑰。可選環境變數 RRK_MCP_PROXY 用來設定存取 rrk.ir 的 HTTP 代理,系統代理設定會被忽略。需要能連線至 rrk.ir 的網路。
安裝前請注意
所有工具皆為唯讀,呼叫前不需確認。入口網站回應較慢(全文檢索可能約需 10 秒),依編號查找時可能需翻頁 10 至 60 秒。公報 PDF、議會辯論文本與公司公告需登入或付費,無法取得。輸出為波斯語 JSON,日期為波斯曆。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

rrk-mcp: Official Gazette of Iran (روزنامه رسمی) laws and rulings MCP server for AI agents

rrk-mcp is an unofficial, read-only MCP server for the laws and regulations database of the Official Gazette of Iran (rrk.ir).
Its 5 tools list the newest laws, search them by title, full text, group, approver, special issue number or gazette date,
read the full text of a law, court ruling or regulation, and list the licensed exchange offices. No API key or account is needed.

[PyPI] [Python] [License: MIT]

For AI agents · Quick start · Tools · Limits · فارسی


For AI agents

  • What: unofficial MCP server for rrk.ir, the Official Gazette: laws (قوانین), regulations (آیین‌نامه، مصوبات), Court of Administrative Justice rulings (آرای دیوان عدالت اداری) and other texts published in the gazette since 1285 (2026 = 1405).
  • Install: uvx rrk-mcp or claude mcp add rrk -- uvx rrk-mcp. Transport: stdio. Needs uv (Python 3.10+).
  • Auth: none. Optional RRK_MCP_PROXY (HTTP proxy URL); system proxy settings are ignored.
  • Access: read-only; no confirmation is needed before calling any tool.
  • Tools: 5, all prefixed rk_. Typical sequence: rk_law_filters (optional) -> rk_search_laws -> rk_law_text.
  • Use when: the user asks what the gazette published lately, wants a law or ruling by topic or date, or needs the text of one.
  • Do not use when: the user wants company registration notices (founding, capital change, board change, liquidation). rrk.ir does not offer those in an open search, so this server cannot look companies up.
  • Output: compact JSON, Persian text. Dates are Jalali (1405/08/09).

Quick start

bash
claude mcp add rrk -- uvx rrk-mcp

Any other client: run uvx rrk-mcp as a stdio MCP server ({"command": "uvx", "args": ["rrk-mcp"]}).

Tools

ToolWhat it does
rk_latest_lawsList the newest laws, rulings and regulations in the Official Gazette, newest first
rk_search_lawsSearch laws by title words, full-text words, law group, approver, special issue number or Jalali gazette date range
rk_law_filtersList the law groups (categories) and approving authorities to filter by
rk_law_textRead one law's approver, gazette number and date, and full text (long texts in parts)
rk_exchange_officesList the licensed currency exchange offices (location, phone, address; a field the portal leaves empty is null) by province and city

All 5 tools are annotated readOnlyHint: true.

Limits

  • Laws only. Company notices (آگهی‌های ثبتی) sit behind rrk.ir's paid data service and login, so they are left out.
  • The portal is slow (a full-text search can take 10 seconds) and shares one session; the server keeps one session and reuses it.
  • rk_law_text works with any code, but a code the session has not listed is located by paging the list (10-60 s, and codes below about 10,000 may not be found). Majlis debates (group 64) have a title only; the debate text is a PDF behind login.
  • Gazette PDFs and the shop need login or payment, and are left out.
  • Persian ی and ک are converted to the Arabic ي and ك the portal stores; you can type either.

Development

bash
uv syncuv run ruff check . && uv run ruff format --check .uv run python -m pytest -quv run python -m pytest -m live -q

فارسی

rrk-mcp یک سرور MCP غیررسمی و فقط‌خواندنی برای پایگاه قوانین و مقررات روزنامه رسمی (rrk.ir) است: فهرست جدیدترین قوانین، جستجو بر اساس عنوان، متن، شماره ویژه‌نامه و تاریخ روزنامه، فیلتر بر اساس گروه قوانین و مرجع تصویب، خواندن متن کامل قانون یا رأی، و فهرست صرافی‌های مجاز بانک مرکزی. جستجوی آگهی‌های ثبتی شرکت‌ها در سایت به‌صورت باز وجود ندارد و پشتیبانی نمی‌شود.


Made by Sepehr Radmard (سپهر رادمرد) · github.com/sepehr071 · linkedin.com/in/sepehr-radmard

來源:README.md,提交 10bd191

工具

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

版本歷史

4
  1. v0.2.0最新Nov 7, 2026
  2. v0.1.2Nov 3, 2026
  3. v0.1.1Nov 3, 2026
  4. v0.1.0Nov 1, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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