Statistical Centre of Iran

v0.2.3
io.github.sepehr071/amar-mcp Checked 3 days ago Published 16 days ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

am_release Get one release

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.

ParameterTypeDescription
id *integerRelease id from am_search

am_calendar Release calendar

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.

ParameterTypeDescription
monthMonth 1-12 or Persian name; omit for the year
queryPersian product-name words, all must match, e.g. 'مصرفی'
yearintegerJalali year

am_news News and press releases

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.

ParameterTypeDescription
countintegerHow many latest items for the list
idNews id from the list, to read its text
queryPersian words that must all appear in title or summary (list mode)

am_inflation Inflation (CPI)

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.

ParameterTypeDescription
groupCPI group: Persian name part ('مسکن', 'خوراک') or 2-digit code ('04'); omit for all items. List: am_inflation_groups
monthsintegerLatest months
provinceProvince name (e.g. 'تهران'): that province's all-items inflation instead
regionstringHouseholds: all of Iran, urban or rural

am_inflation_groups Inflation by CPI group

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`.

ParameterTypeDescription
periodJalali YYYY-MM (e.g. '1405-06'); omit for latest
regionstringHouseholds: all of Iran, urban or rural

am_labour_force Labour force

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.

ParameterTypeDescription
measurestringunemployment (15+), participation, youth_unemployment (15-24); all = first two
quartersintegerLatest quarters

am_population Population of provinces and counties

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.

ParameterTypeDescription
provinceProvince name (e.g. 'فارس'): lists its counties instead of all provinces

am_table Read an Excel table

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`).

ParameterTypeDescription
id *integerRelease id from am_search
col_offsetintegerColumns to skip on the left (wide series)
fileintegerExcel file number (1-based, see am_release)
findOnly rows with this text in any cell
max_colsintegerColumns
max_rowsintegerRows
offsetintegerMatching rows to skip (paging)
sheetSheet name or 1-based number; omit to list sheets

am_indicators Macro indicators

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.

ParameterTypeDescription
col_offsetintegerColumns to skip on the left
findOnly rows whose first cell has this text (year, province...)
lastintegerRows: latest in a time table, else first
max_colsintegerColumns
tableTable number from the topic's list, or Persian title words ('اجاره')
topicSubject sheet: population (and labour, education), household (income, expenditure, Gini, deciles), accounts, prices (CPI by decile or province, PPI, food), money, budget, trade, stock, energy, industr…

am_gdp GDP growth (quarterly)

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`.

ParameterTypeDescription
frequencystringQuarterly or yearly
periodsintegerLatest quarters (or years)

am_ppi Producer price index

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.

ParameterTypeDescription
quartersintegerHow many latest quarters
sectorPersian name part: 'كل' (default), 'كشاورزي', 'معدن', 'صنعت', 'برق', 'خدمات'