Skip to main content

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

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

Tool What it does
rk_latest_laws List the newest laws, rulings and regulations in the Official Gazette, newest first
rk_search_laws Search laws by title words, full-text words, law group, approver, special issue number or Jalali gazette date range
rk_law_filters List the law groups (categories) and approving authorities to filter by
rk_law_text Read one law's approver, gazette number and date, and full text (long texts in parts)
rk_exchange_offices List the licensed currency exchange offices (location, phone, address) 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

uv sync
uv run ruff check . && uv run ruff format --check .
uv run python -m pytest -q
uv run python -m pytest -m live -q

فارسی

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


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

Metadata

Release files for rrk-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rrk-mcp 0.1.0
File Size Uploaded Provenance Actions
rrk_mcp-0.1.0.tar.gz 112.5 kB With provenance Details for rrk_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rrk-mcp 0.1.0
File Interpreter ABI Platform Actions
rrk_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for rrk_mcp-0.1.0-py3-none-any.whl

Total release size: 135.2 kB

Release files / rrk_mcp-0.1.0.tar.gz

Download URL rrk_mcp-0.1.0.tar.gz
Size 112.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5eb7d098e6590d131a3170aba30e35cb2554186d968e95eb6e7f903e5b3c667f
BLAKE2b-256 checksum
How to use checksums
68621be07f7fe0663b80c2e3b84bd82097d44e248c566b3a4e92efb98bb80127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / rrk_mcp-0.1.0-py3-none-any.whl

Download URL rrk_mcp-0.1.0-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68c6c7b918c3691d2f8e38c55197988b8bd865f47e9cd29600ae34b71455dd58
BLAKE2b-256 checksum
How to use checksums
21e5c65abf7700d6550957fe4ac52addea3dfe32e0728c37c82afb70fab89d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for rrk-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rrk_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page