Global law
The law of nearly every country on earth, any date: read it, see what changed it, check citations.
Unofficial read-only qavanin.ir: search Iranian laws and regulations, read full text and status.
Pick the AI app you use, then copy the settings.
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Qavanin for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "qavanin": { "command": "uvx", "args": [ "qavanin-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Qavanin tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
SettingsDeveloperEdit Config
{
"mcpServers": {
"qavanin": {
"command": "uvx",
"args": [
"qavanin-mcp"
]
}
}
}Use Qavanin and tell me what you can do for me, then show me one thing✓ If Claude says it is using Qavanin or shows a Qavanin tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Qavanin yet
Qavanin runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Qavanin
B · Others in Law & government data that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
Install Python (uv) on your computer first (one time)
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Qavanin for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user qavanin -- uvx qavanin-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Qavanin tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user qavanin -- uvx qavanin-mcpYou should see Qavanin listed as connected
Use Qavanin and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Qavanin or shows a Qavanin tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
QAVANIN_MCP_PROXY Optional HTTP proxy URL, or a comma-separated list tried in turn, for qavanin.ir; system proxies are ignored.Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
Install Python (uv) on your computer first (one time)
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Qavanin for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "qavanin": { "command": "uvx", "args": [ "qavanin-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Qavanin tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Use Qavanin and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Qavanin or shows a Qavanin tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
QAVANIN_MCP_PROXY Optional HTTP proxy URL, or a comma-separated list tried in turn, for qavanin.ir; system proxies are ignored.Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
Install Python (uv) on your computer first (one time)
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Qavanin for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "qavanin": { "type": "stdio", "command": "uvx", "args": [ "qavanin-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Qavanin tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Use Qavanin and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Qavanin or shows a Qavanin tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
QAVANIN_MCP_PROXY Optional HTTP proxy URL, or a comma-separated list tried in turn, for qavanin.ir; system proxies are ignored.Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Claude Code
claude mcp add --scope user qavanin -- uvx qavanin-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"qavanin": {
"command": "uvx",
"args": [
"qavanin-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"qavanin": {
"command": "uvx",
"args": [
"qavanin-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"qavanin": {
"type": "stdio",
"command": "uvx",
"args": [
"qavanin-mcp"
]
}
}
}QAVANIN_MCP_PROXY envDescriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
pypi: qavanin-mcpBased on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 16, 2026
The registry name was verified with the GitHub account sepehr071, which owns the repo
Code last changed 4 days ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
No entries on OSV.dev for qavanin-mcp@0.2.1
Checks only this package version, not every dependency · checked Nov 16, 2026
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 4 days ago, and the latest version (0.2.1) reached the registry 4 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
The law of nearly every country on earth, any date: read it, see what changed it, check citations.
German court decisions (Rechtsprechung) and laws (Gesetze) with citation graph and citation checks.
Search French-language and European case law and French legal texts (codes, statutes, treaties).
Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.
Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
Let your AI agent read Iranian law (قوانین و مقررات ایران).
An unofficial, read-only MCP server for qavanin.ir (سامانه ملی قوانین و مقررات جمهوری اسلامی ایران), the national database of Iranian laws, regulations, court votes and legal opinions.
Search about 168,000 documents by title or full text, read a law or a single article, see how an article was amended, and follow the regulations and court votes that cite it, all from Claude, Cursor or Copilot.
For AI agents · Why · What it can do · Quick start · Tools · How it works · Good to know · FAQ · Configuration · فارسی · Development · Related · Disclaimer · License
YYYY/MM/DD.uvx qavanin-mcp or claude mcp add qavanin -- uvx qavanin-mcp. Transport: stdio. Needs uv (Python 3.10+).QAVANIN_MCP_PROXY (HTTP proxy URL, or a comma-separated list tried in turn); system proxy settings are ignored.qv_. Typical sequence: qv_search -> qv_law (with article) -> qv_amendments -> qv_article_history.1405/07/22); document ids (id, the site's IDS) are 20-digit strings, keep them as strings; text uses Persian ی/ک.repealed or amended are not current text.server.json and the iran-mcp catalog (TOOLS.md, servers.json, llms.txt).Iranian legislation is spread over thousands of laws, by-laws, court votes and opinions, and a law's current text depends on later amendments. Answering "what does article 10 of the civil code say, was it ever amended, and which regulations cite it?" means a lot of searching on a slow, server-rendered site. With qavanin-mcp an agent does it in a few calls and returns only the relevant article instead of an 892 KB law.
You: ماده ۱۰ قانون مدنی چه می‌گوید؟
Agent: *calls*
qv_search(query="قانون مدنی", kind="law")->qv_law(ids=..., article="10")
It finds the civil code, reads just article 10 with its notes, and can follow up with
qv_article_historyto show whether that article was changed.
You need uv. No API key or account.
Claude Code
claude mcp add qavanin -- uvx qavanin-mcp
Claude Desktop
Settings → Developer → Edit Config, then add:
{
"mcpServers": { "qavanin": { "command": "uvx", "args": ["qavanin-mcp"] } } }
</details>
Cursor
Add the Claude Desktop block to ~/.cursor/mcp.json.
VS Code (Copilot agent mode)
Click Install in VS Code above, or add to .vscode/mcp.json:
{
"servers": { "qavanin": { "type": "stdio", "command": "uvx", "args": ["qavanin-mcp"] } } }
</details>
Codex CLI
codex mcp add qavanin -- uvx qavanin-mcp
Or in ~/.codex/config.toml:
[mcp_servers.qavanin]
command = "uvx" args = ["qavanin-mcp"]
</details>
Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": { "qavanin": { "command": "uvx", "args": ["qavanin-mcp"] } } }
</details>
Windsurf
Add the Claude Desktop block to ~/.codeium/windsurf/mcp_config.json.
Anything else
It's a standard stdio MCP server: run uvx qavanin-mcp, or pip install qavanin-mcp and run qavanin-mcp.
Then just ask:
All tools return compact JSON. Document ids from qv_search go to the other tools; qv_lookup finds the ids that qv_search filters take.
| Tool | What it does |
|---|---|
qv_search | Search titles or full text, with filters for kind, approving body, executor, subject, type, status, dates and gazette numbers |
qv_lookup | Find the ids the search filters take: approving bodies, executing bodies, subjects, document types, statuses, curated lists |
qv_law | Read the text of a law as sections, one article with its notes, or the text as of a past date |
qv_law_info | Metadata: type, approver, approval, notification and gazette numbers and dates, last status, executors |
qv_amendments | Which laws amended this one, which it amends, and which of its articles were amended |
qv_article_history | Every amendment of one article: type, date, amending law, replacing text |
qv_related | Regulations, court votes and legal opinions related to a law |
All 7 tools are annotated readOnlyHint: true.
AI agent (Claude, Cursor, Copilot, ...)
│ │ MCP over stdio ▼ qavanin-mcp (runs on your machine) │ │ HTTPS └──────▶ qavanin.ir laws, regulations, court votes, opinions
qavanin-mcp runs locally and reads the same pages the qavanin.ir website serves (server-rendered HTML plus two small JSON lookups). There is no hosted server in between and no API key. The site's bot-check cookie is solved in Python, so no browser is needed.
1405/07/22), ids stay strings (20-digit), and text is normalised to Persian ی/ک. Placeholder dates such as 0000/00/00 are dropped.repealed or amended are not current text. Say which version and status you read.in_text it finds words inside the law text, so open candidates with qv_law(article=...).Is there an MCP server or API for Iranian laws (qavanin.ir)?
Yes: qavanin-mcp is an unofficial MCP server with 7 read-only tools for searching and reading laws, regulations, court votes and legal opinions on qavanin.ir. It reads the same pages as the website; no API key is needed.
How do I use it with Claude, Cursor or Copilot?
Add the server with claude mcp add qavanin -- uvx qavanin-mcp (or the matching config in Quick start), then ask in plain language, in Persian or English.
Is it official, safe and free?
It is unofficial and not affiliated with qavanin.ir or the Iranian government. It is read-only, runs on your machine, and is free under the MIT license.
Is the text legally binding or up to date?
No. It shows what the site shows. Check each document's status and amendments (qv_law_info, qv_amendments) before relying on it, and consult a lawyer for legal advice.
Can I search with Arabic letters (ي/ك)?
Yes. The site stores Arabic ي/ك, and queries in either form match. Output is normalised to Persian ی/ک.
Why is it slow on the first read of a big law?
The site returns a whole law in one response (the civil code is about 892 KB). The server caches it for 5 minutes, so reading further articles is fast.
Can it log in, comment or subscribe?
No. It has no login and never calls comment, subscription or purchase endpoints.
I get a bot-check or connection error
The server solves qavanin.ir's cookie challenge itself. If your network still cannot reach the site, set QAVANIN_MCP_PROXY to an HTTP proxy that can. System proxy variables are ignored on purpose.
Claude Desktop says uvx is not found
Use the full path to uvx (where uvx on Windows, which uvx on macOS/Linux) as `