Skip to main content
Glama

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: PolyForm Noncommercial

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).

Related MCP server: qavanin-mcp

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; 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

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

مجوز استفاده (License)

استفادهٔ شخصی و غیرتجاری رایگان است. استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه لینکدین یا گیت‌هاب با سپهر رادمرد تماس بگیرید. متن کامل: PolyForm Noncommercial 1.0.0. نسخه‌های پیش از 0.2.1 با مجوز MIT منتشر شده‌اند و همان مجوز را دارند.

Free for personal and non-commercial use under the PolyForm Noncommercial License 1.0.0. Using it in a company, a paid product or a client project needs a commercial license: contact Sepehr Radmard on LinkedIn or GitHub. Versions before 0.2.1 were released under MIT and stay under it.

Available Tools

5 tools
rk_exchange_officesLicensed exchange officesA
Read-onlyIdempotent

List the licensed currency exchange offices (صرافی مجاز) the Central Bank published in the Official Gazette (rrk.ir).

Filter by province and city (an unknown province is an error that lists the valid ones). Returns total, more and up to 50 offices (location, phone, address; no names are published).

Inputs: city, page, province.

rk_latest_lawsLatest laws and regulationsA
Read-onlyIdempotent

List the newest laws, rulings and regulations published in the Official Gazette (rrk.ir), newest gazette first.

Each law has a code for rk_law_text. To narrow by topic or date use rk_search_laws.

Inputs: page.

rk_law_filtersLaw groups and approversA
Read-onlyIdempotent

List the law groups (categories) and approving authorities that rk_search_laws can filter by.

Use first for one kind of document (court rulings, decrees, Majlis debates) or one issuing body. Pass a group id or approver code to rk_search_laws. parent is set on sub-groups.

Inputs: query.

rk_law_textRead a law's textA
Read-onlyIdempotent

Read the full text of one law or ruling from the Official Gazette (rrk.ir): approver, gazette number and date, body.

Use with a code from a search. An unlisted code is located by paging the list (slow, 10-60 s; old laws may not be found). Long texts are cut at max_chars; continue with offset = next_offset.

Inputs: code (required), offset, max_chars.

rk_search_lawsSearch laws and regulationsA
Read-onlyIdempotent

Search the Official Gazette's laws and regulations database (rrk.ir) by title, full text, group, approver, special number or gazette date.

Filters are optional and combined; none lists the newest. Returns total, more and up to 20 laws with code; pass a code to rk_law_text. Laws only: company registration notices are not searchable on rrk.ir.

Inputs: page, text, group, title, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool has a distinct role: search, filter metadata, newest list, full-text retrieval, and a separate exchange-office directory. The only mild overlap is between rk_search_laws (unfiltered) and rk_latest_laws, but the descriptions make the intended split clear.

    Naming Consistency4/5

    All names share a consistent rk_ prefix followed by a lowercase snake_case domain descriptor (search_laws, law_filters, latest_laws, law_text, exchange_offices). The pattern is noun-oriented rather than strict verb_noun, but it is predictable and readable.

    Tool Count5/5

    Five tools is well-scoped for a single-source gazette server, with one tool per distinct capability and no redundant entry points. Nothing feels padded or missing at the count level.

    Completeness4/5

    The surface covers the core lifecycle: discover filters, search, browse newest, and read full text with pagination, plus a related office directory. Minor gaps remain, such as no direct lookup by gazette number or approver without going through search first.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to look up Iranian tax information from the National Tax Administration's public systems without login: e-invoice goods/service IDs and VAT rates, activity codes, official property transaction values, and the text of tax laws, circulars, rulings and FAQ answers. Read-only stdio tools return compact Persian-friendly JSON, making it useful for accountants and businesses that need authoritative tax references.
      6
      286 PyPI
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search roughly 168,000 Iranian laws, regulations, court votes and legal opinions by title or full text, read a law or a single article, and trace amendments, article history and citing documents. Read-only, no authentication, with results returned as compact JSON from Claude, Cursor or Copilot.
      7
      320 PyPI
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search and read Iranian listed companies’ Codal disclosures, including financial statements, EPS and monthly activity reports as tables, meeting decisions, and PDF/Excel links, plus company and fiscal-year lookups.
      5
      383 PyPI
      10
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to read official Central Bank of Iran data through 11 read-only tools: historical exchange rates for ~48 currencies, inflation, weekly interbank and policy rates, news, liquidity, monthly statistics tables, sukuk auctions and open market operations, with no API key required. Text is Persian, dates accept Jalali or Gregorian, and output is compact JSON.
      11
      170 PyPI
      PolyForm Noncommercial 1.0.0