Skip to main content
Glama
amar-mcp

amar-mcp

by sepehr071

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

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.

Related MCP server: iran-tax-mcp

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

{
  "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

Tool

What it does

am_inflation

Official CPI index and inflation per month (monthly, point-to-point, 12-month average) by household region, CPI group or province

am_inflation_groups

Compare inflation across CPI groups (food, housing, transport...) for one month

am_labour_force

Unemployment, youth unemployment and participation rates by quarter, total, urban and rural

am_population

Population and households by province, or by county in one province, from the 1395 census

am_search

Search 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_release

One release: topic, period and its Excel, PDF and Word files

am_table

Read any Excel table of a release as compact rows (sheet list, filter, paging)

am_calendar

The publishing calendar: which statistic comes out on which day of a month

am_gdp

GDP growth by quarter or year with agriculture, industry, oil and gas, services; levels in billion rials

am_ppi

Producer price index by quarter and sector (index, quarterly, year-on-year, 4-quarter average)

am_indicators

The 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_news

Latest news and press releases of the Centre, or the text of one item

All 12 tools are annotated readOnlyHint: true.

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.

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

استفادهٔ شخصی و غیرتجاری رایگان است. استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه لینکدین یا گیت‌هاب با سپهر رادمرد تماس بگیرید. متن کامل: PolyForm Noncommercial 1.0.0. نسخه‌های پیش از 0.2.2 با مجوز 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.2 were released under MIT and stay under it.

Available Tools

12 tools
am_calendarRelease calendarA
Read-onlyIdempotent

Get the Statistical Centre of Iran's publishing calendar: which statistics come out on which day of a month.

Use it for "when is the next inflation (or labour, GDP...) release". Items: product, office, month, day, period covered; id appears once published (pass to am_release). Jalali dates; planned dates can shift.

Inputs: year, month, query.

am_gdpGDP growth (quarterly)A
Read-onlyIdempotent

Get Iran's official GDP growth by quarter or year, with the main sectors, latest first.

Base year 1400. growth_pct is year-on-year at constant prices; gdp_ex_oil_pct leaves out oil and gas; sector growth for agriculture, industry, services. Levels in billion rials. Full tables: am_table with source.release.

Inputs: periods, frequency.

am_indicatorsMacro indicatorsA
Read-onlyIdempotent

Read the Centre's monthly macro-indicators workbook: trade, housing, money, budget, prices by decile and more.

About 100 small tables on 12 subjects. No arguments lists topics; topic lists its tables; topic plus table gives data (rows are [label, values...]; placeholders are null). Data end dates differ per table (housing price stops at 1400, trade at 1404). No id needed.

Inputs: find, last, table, topic, +2 more.

am_inflationInflation (CPI)A
Read-onlyIdempotent

Get Iran's official consumer price index (CPI) and inflation from the Statistical Centre of Iran, latest first.

Per month: index, monthly_pct, point_to_point_pct (year-on-year, the headline figure) and twelve_month_avg_pct ("annual inflation"). group or region for breakdowns; province gives one province (no index, no groups). newer_report appears when the portal has a later month as PDF only.

Inputs: group, months, region, province.

am_inflation_groupsInflation by CPI groupA
Read-onlyIdempotent

Compare official inflation across CPI groups (food, housing, transport, health...) for one month.

Per main group: index, monthly_pct, point_to_point_pct, twelve_month_avg_pct. For one group's history use am_inflation with group.

Inputs: period, region.

am_labour_forceLabour forceA
Read-onlyIdempotent

Get Iran's official unemployment and labour-force participation rates by quarter, latest first.

Percent, for the whole country, urban and rural. The newest quarter lags 2-3 months. Other labour tables (employment by sector, hours, wages): am_search.

Inputs: measure, quarters.

am_newsNews and press releasesA
Read-onlyIdempotent

List the latest news and press releases of the Statistical Centre of Iran, or read one item.

Without id: newest items (id, title, summary, GMT time, url), filtered by query. With id: the item's date, categories and text (cut at 4000 characters). For announcements; numbers are in the data tools.

Inputs: id, count, query.

am_populationPopulation of provinces and countiesA
Read-onlyIdempotent

Get population and households by province, or by county within one province, from Iran's 1395 census.

Latest published census (1395 = 2016): total, urban, rural, male, female, households. The 1405 census is not published. Projections or age groups: am_search and am_table.

Inputs: province.

am_ppiProducer price indexA
Read-onlyIdempotent

Get Iran's producer price index (PPI, factory-gate prices) by quarter and sector, latest first.

Per quarter: index (100 = 1400), quarterly_pct, point_to_point_pct, annual_pct (4-quarter average). Detailed PPI series are separate releases: am_search('شاخص قیمت تولید کننده') then am_table.

Inputs: sector, quarters.

am_releaseGet one releaseA
Read-onlyIdempotent

Get one statistical release from amar.org.ir: title, topic path, period and its downloadable files.

Use after am_search. Read Excel files with am_table (same id); PDF and Word are links only.

Inputs: id (required).

am_tableRead an Excel tableA
Read-onlyIdempotent

Read an Excel table of a statistical release as compact rows (works for any release with an xlsx/xls file).

Call with just the id for the sheet list, then sheet; rows are [excel_row_number, cell...]. find picks rows, offset pages, col_offset shifts wide series (newest values are usually at the right end; see cols).

Inputs: id (required), file, find, sheet, +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 12 tools

    Disambiguation4/5

    Most tools target clearly distinct resources or operations, and the descriptions explicitly route agents between search, release metadata, and table reading. The main potential confusion is between am_inflation and am_inflation_groups, and between am_table and am_indicators since both expose tabular data, but the distinctions are documented.

    Naming Consistency5/5

    All tools consistently use the lowercase snake_case am_ prefix followed by a resource-oriented name. There is no mixing of casing or verb conventions.

    Tool Count5/5

    Twelve tools is well within the ideal range and each tool has a clear role: discovery, metadata, calendar/news, generic table reading, and dedicated access to major indicators. The surface is broad without feeling bloated.

    Completeness4/5

    The set covers discovery, release metadata, downloadable tables, calendar, news, and the main statistical domains, with generic search/table tools for long-tail releases. Minor gaps remain, such as direct handling of non-Excel time series or richer table-level metadata, but agents can usually work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      Provides access to Statistics Canada official statistics without authentication, enabling AI agents to query Canadian economic and demographic data.
      6 npm
      MIT
    • 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
      Gives AI agents read-only access to IranTalent's public job portal data with no API key, covering job search with filters, full ad details, a company directory, company profiles and rating breakdowns, plus anonymous employee reviews. Also exposes filter lookup slugs, job market counts, similar jobs, and national salary survey percentiles.
      11
      138 PyPI
      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