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 分