Statistical Centre of Iran

io.github.sepehr071Published by GitHub account sepehr071v0.2.0Updated Nov 7, 2026

Read-only Statistical Centre of Iran (amar.org.ir): CPI inflation, unemployment, census, any table.

VerifiedSTDIODesktop onlyWeb Search & ScrapingData & Analytics

Overview

AI-generated overview

Unofficial read-only MCP server that gives an assistant official Statistical Centre of Iran figures: inflation, CPI, unemployment, GDP, census and portal…

What you can do
  • Retrieve CPI and inflation by month, region, CPI group or province, and compare inflation across groups
  • Get labour force rates, GDP growth and producer price index by quarter or year
  • Look up census population and households by province or county
  • Search the portal's releases, open one release's files, and read any Excel table as rows
  • Read the monthly macro-indicators workbook and the publishing calendar
  • Fetch the Centre's latest news and press releases
When to use it
Use it when someone asks for Iran's official inflation, CPI, unemployment, GDP or census population, wants to know what drives inflation or how provinces compare, or needs a table or release date from amar.org.ir. It is not for central-bank figures, exchange or gold prices, or live market data.
Requirements
Local process run with uvx (or pip) on Python 3.10+; no API key or account. Network access to amar.org.ir, which only answers from inside Iran, so an Iranian connection or the optional AMAR_MCP_PROXY environment variable (a proxy URL or comma-separated list) is needed. Desktop MCP client only.
Before you install
Read-only: it cannot log in or change anything, and all tools are marked read-only. Requests go to amar.org.ir, and the optional AMAR_MCP_PROXY value is a proxy address you supply. It is unofficial and not affiliated with the Centre; its figures differ from Central Bank of Iran data, and the newest CPI month may come from a PDF report while the Excel series lags about a week.

Installation

In SourceWeft

  1. Open Statistical Centre of Iran in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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-mcp or claude 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_PROXY to 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_calendar for "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_inflation flags this in newer_report and 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() and am_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

json
{  "mcpServers": {    "amar": { "command": "uvx", "args": ["amar-mcp"] }  }}

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

ToolWhat it does
am_inflationOfficial CPI index and inflation per month (monthly, point-to-point, 12-month average) by household region, CPI group or province
am_inflation_groupsCompare inflation across CPI groups (food, housing, transport...) for one month
am_labour_forceUnemployment, youth unemployment and participation rates by quarter, total, urban and rural
am_populationPopulation and households by province, or by county in one province, from the 1395 census
am_searchSearch the portal's releases by Persian title words, year, frequency, type and topic (a year, frequency or kind alone searches the portal's own releases)
am_releaseOne release: topic, period and its Excel, PDF and Word files
am_tableRead any Excel table of a release as compact rows (sheet list, filter, paging)
am_calendarThe publishing calendar: which statistic comes out on which day of a month
am_gdpGDP growth by quarter or year with agriculture, industry, oil and gas, services; levels in billion rials
am_ppiProducer price index by quarter and sector (index, quarterly, year-on-year, 4-quarter average)
am_indicatorsThe monthly macro workbook (newest release that has an Excel file): trade, housing price and rent, money, budget, household spending, Gini, CPI by decile and province, energy, stock market
am_newsLatest news and press releases of the Centre, or the text of one item

All 12 tools are annotated readOnlyHint: true.

How it works

text
  AI agent  ──MCP/stdio──▶  amar-mcp  ──HTTPS──▶  amar.org.ir  (release pages, Excel files)

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.

Source: README.md at commit e74c592

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

3
  1. v0.2.0LatestNov 7, 2026
  2. v0.1.1Nov 3, 2026
  3. v0.1.0Nov 1, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts