
Statistical Centre of Iran
io.github.sepehr071由 GitHub 帳號 sepehr071 發布v0.2.0更新於 Nov 7, 2026
Read-only Statistical Centre of Iran (amar.org.ir): CPI inflation, unemployment, census, any table.
概覽
非官方唯讀 MCP 伺服器,讓助理取得伊朗統計中心官方數據:通膨、CPI、失業率、GDP、人口普查與入口網站表格。
- 可以做什麼
- 依月份、地區、CPI 分組或省份取得 CPI 與通膨,並比較各分組通膨
- 取得依季或年度的勞動力調查比率、GDP 成長與生產者物價指數
- 查詢依省份或縣的人口普查人口與家戶數
- 搜尋入口網站的發布物、檢視某次發布物的檔案,並把任一 Excel 表讀成列資料
- 讀取每月總體指標工作簿與發布行事曆
- 取得統計中心最新新聞與新聞稿
- 適用情境
- 當使用者詢問伊朗官方通膨、CPI、失業率、GDP 或普查人口,想了解通膨成因或各省比較,或需要 amar.org.ir 上的表格與發布時間時使用。不適用於央行數據、匯率或黃金價格、即時市場行情。
- 執行需求
- 以 uvx(或 pip)在 Python 3.10+ 上執行的本機程序;不需 API 金鑰或帳號。需能連線 amar.org.ir,該網站僅回應伊朗境內 IP,因此需伊朗網路連線或設定選用環境變數 AMAR_MCP_PROXY(代理位址或逗號分隔清單)。僅支援桌面 MCP 用戶端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Statistical Centre of Iran,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
amar-mcp: Statistical Centre of Iran (مرکز آمار ایران) inflation, unemployment and census MCP server
amar-mcp is an unofficial, read-only MCP server that gives AI agents the official numbers of the Statistical Centre of Iran (amar.org.ir).
Its 12 tools return the consumer price index and inflation (monthly, year-on-year, 12-month average, by CPI group, household region and province), unemployment and participation rates, GDP growth, producer prices, the monthly macro-indicators workbook (trade, housing price and rent, money, budget, household income and spending, CPI by decile), census population by province and county, news, the publishing calendar, and any Excel table of any release.
No API key or account is needed. It works in Claude, Cursor, Copilot and any other MCP client.
[PyPI] [Python] [License: MIT]
For AI agents · Quick start · Tools · FAQ · فارسی
For AI agents
- What: unofficial MCP server (model context protocol) for amar.org.ir, Iran's national statistics portal: official CPI and inflation, labour force survey rates, census 1395 population, the release catalog and calendar, and a reader for the portal's Excel tables.
- Install:
uvx amar-mcporclaude mcp add amar -- uvx amar-mcp. Transport: stdio. Needs uv (Python 3.10+). - Auth: none. Optional
AMAR_MCP_PROXY(HTTP proxy URL, or a comma-separated list); system proxy settings are ignored. - Access: read-only. It cannot log in or change anything, so no confirmation is needed before calling any tool.
- Network: amar.org.ir answers only from inside Iran (it drops foreign IPs), so run the server on an Iranian connection or set
AMAR_MCP_PROXYto an Iranian proxy. - Tools: 12, all prefixed
am_. Typical sequences:am_inflation->am_inflation_groups;am_gdp,am_ppi;am_indicators(topic -> table);am_search->am_release->am_table;am_calendarfor "when is the next release". - Use when: the user asks what Iran's official inflation, CPI, unemployment or population is, what drives inflation (food, housing...), how a province compares, when the Statistical Centre publishes something, or wants any table from amar.org.ir.
- Do not use when: the user wants central-bank data, exchange or gold prices (other servers cover those), or live market data. The monthly CPI Excel series trails the PDF report by about a week;
am_inflationflags this innewer_reportand reads the newer month's national figures from the PDF. - Output: compact JSON. Periods are Jalali (
1405-06= Shahrivar 1405). Percentages are percent. Names and titles are Persian as the Centre has them. - Machine-readable:
server.json.
Example
You: What is Iran's official inflation, and what drives it?
Agent: calls
am_inflation()andam_inflation_groups()For Shahrivar 1405 the Statistical Centre reports 4.24% monthly, 89.8% year-on-year and 73.6% for the 12-month average. Food and tobacco rose 122% year-on-year, transport 115%, housing 38%.
Numbers from a live call on 2026-11-01.
Other prompts: "unemployment rate by quarter", "population of Yazd province and its counties", "inflation in Fars province", "when is the next CPI release", تورم نقطه به نقطه مسکن شهری چقدر است؟, نرخ بیکاری آخرین فصل؟
Quick start
You need uv. No API key or account.
Claude Code: claude mcp add amar -- uvx amar-mcp
Claude Desktop, Cursor, Windsurf, Gemini CLI: add
VS Code: .vscode/mcp.json with {"servers": {"amar": {"type": "stdio", "command": "uvx", "args": ["amar-mcp"]}}}.
Codex CLI: codex mcp add amar -- uvx amar-mcp. Anything else: uvx amar-mcp, or pip install amar-mcp and run amar-mcp.
Tools
All 12 tools are annotated readOnlyHint: true.
How it works
The portal has no JSON API, so the server reads its catalog pages and downloads the Excel files that the portal itself offers, then parses them. It sends browser-like requests (Chrome TLS fingerprint), makes at most 3 concurrent requests, caches answers for 5 minutes and refuses files over 25 MB. The site's certificate chain is incomplete (it omits an intermediate); the server ships that public intermediate certificate to verify the connection normally.
FAQ
Why does it fail from outside Iran? amar.org.ir does not answer foreign IPs. Run it on an Iranian connection or set AMAR_MCP_PROXY.
Why is the newest month missing in am_inflation? The Centre publishes a PDF report first and updates the Excel series about a week later. The answer's newer_report names that release (use am_release for the PDF link); it also carries that month's national index and inflation, read from the PDF.
Are these the same as central-bank figures? No. These are the Statistical Centre's figures; the Central Bank of Iran publishes its own.
Is it affiliated with the Centre? No. It reads public pages and files, no login.
فارسی
amar-mcp یک سرور MCP غیررسمی و فقطخواندنی برای درگاه ملی آمار (مرکز آمار ایران، amar.org.ir) است. با آن میتوانید تورم و شاخص قیمت مصرفکننده (ماهانه، نقطهبهنقطه، متوسط ۱۲ ماه؛ به تفکیک گروه کالا، مناطق شهری و روستایی و استان)، نرخ بیکاری و مشارکت، جمعیت استانها و شهرستانها در سرشماری ۱۳۹۵، تقویم انتشار و هر جدول اکسل منتشرشده را بپرسید.
نصب: claude mcp add amar -- uvx amar-mcp (نیاز به uv). درگاه مرکز آمار فقط از داخل ایران پاسخ میدهد؛ سرور را روی اینترنت ایران اجرا کنید یا AMAR_MCP_PROXY را روی یک پروکسی ایرانی بگذارید.
Author: Sepehr Radmard (سپهر رادمرد), github.com/sepehr071, linkedin.com/in/sepehr-radmard. MIT license.
來源:README.md,提交 e74c592
工具
0版本歷史
3- v0.2.0最新Nov 7, 2026
- v0.1.1Nov 3, 2026
- v0.1.0Nov 1, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分