rrk-mcp
A read-only, no-auth MCP server that searches and reads the laws, regulations and court rulings of Iran's Official Gazette (rrk.ir) and lists licensed currency exchange offices.
List the newest laws, rulings and regulations published in the gazette, newest first (paginated, 20 per page).
Search laws by title words, full-text words, law group, approver, special issue number, or Jalali gazette date range (all filters optional and combinable).
List the law groups (categories) and approving authorities to use as filter values.
Read the full text of a single law or ruling — approver, gazette number and date, and body — with
offset/max_charsfor long texts.List licensed currency exchange offices by province and city, with location, phone and address.
Everything is read-only and needs no API key or account; output is compact JSON with Persian text and Jalali dates.
Not supported: company registration notices, gazette PDFs, paid content, and Majlis debate bodies (title only).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rrk-mcp What are the newest laws published in the Official Gazette?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
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-mcporclaude 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-mcpAny other client: run uvx rrk-mcp as a stdio MCP server ({"command": "uvx", "args": ["rrk-mcp"]}).
Tools
Tool | What it does |
| List the newest laws, rulings and regulations in the Official Gazette, newest first |
| Search laws by title words, full-text words, law group, approver, special issue number or Jalali gazette date range |
| List the law groups (categories) and approving authorities to filter by |
| Read one law's approver, gazette number and date, and full text (long texts in parts) |
| 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_textworks 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 toolsrk_exchange_officesLicensed exchange officesARead-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 regulationsARead-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 approversARead-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 textARead-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 regulationsARead-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
Scored across 5 tools
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.
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.
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.
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
Related MCP Connectors
Web scraping and Iranian-web data tools for AI agents: JS rendering, proxies, Markdown output.
Persian and Iranian utilities for agents: Jalali dates, national ID, IBAN, holidays. Paid via x402.
95,000+ articles of Iranian law, a legal glossary and 8 Iranian legal calculators. Free.
Persian and Iranian utilities for agents plus text tooling. Paid via x402 or MPP.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables 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.6286 PyPIPolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables 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.7320 PyPIPolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables 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.5383 PyPI10PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables 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.11170 PyPIPolyForm Noncommercial 1.0.0