Stat Ee
v0.2.1Statistics Estonia (andmed.stat.ee) PxWeb MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
stat_ee_find_table
Search Statistics Estonia (Statistikaamet) for ESTONIA official statistics tables by plain-English keyword — "average monthly wage", "population", "GDP", "unemployment", "consumer price index", "births", "exports". Returns each matching table with its full ready-to-use path, its English label chain (e.g. "Economy > Wages and salaries and labour costs > Wages and salaries"), and whether it is a folder or a table. START HERE for any question about Estonian data. Set fetch_latest:true to also return the most recent figures from the top-matching table in one call — useful for "what is the curr…
| Parameter | Type | Description |
|---|---|---|
query * | string | Plain-English words describing the statistic, e.g. "average monthly wage", "unemployment rate", "population by county". All words must appear somewhere in a match's label chain. |
fetch_latest | boolean | When true and the top match is a queryable table (.px), automatically fetches the most recent period's data from that table and includes it as "latest_data" in the response. Use this when you want the… |
limit | number | Max matches to return (default 25, max 100). |
max_depth | number | Levels of the subject tree to walk below the starting path (default 5, max 6). Tables sit 4-5 levels below the root. |
path | string | Optional sub-path to search under, e.g. "majandus" (Economy) or "rahvastik" (Population). Default searches the whole tree. |
estonia_average_wage
Estonia's average and MEDIAN monthly gross wage in ONE call, from Statistics Estonia (Statistikaamet, table PA111), keyless, with the recent quarterly trend. PREFER for "what is the average wage in Estonia", "Estonian salary", "average monthly wage in Estonia according to official statistics", "are Estonian wages rising". GROSS (before income tax and the employee's share of contributions) and per EMPLOYEE POSITION, so somebody holding two jobs is counted twice. Use subjects/table_meta/query_table for breakdowns by economic activity or county.
| Parameter | Type | Description |
|---|---|---|
quarters | number | How many recent quarters to include (1-40, default 8). Headline fields describe the newest. |
subjects
Browse Statistics Estonia (Statistikaamet) official ESTONIA national statistics — the subject tree of available tables, one level at a time. Items are type "l" (folder) or "t" (table, id ends in .px). Handy for listing everything under a path you already know; to go straight from an English question ("average monthly wage in Estonia") to a table path in one call, use stat_ee_find_table. Follow either with table_meta + query_table to pull the actual figures.
| Parameter | Type | Description |
|---|---|---|
path | string | Sub-path under /stat/ (default empty = root). e.g. "rahvastik/rahvastikunaitajad-ja-koosseis" |
table_meta
Table definition (dimensions, valid values) for a Statistics Estonia table. Use these to build a filtered query_table call.
| Parameter | Type | Description |
|---|---|---|
path * | string | e.g. "rahvastik/rahvastikunaitajad-ja-koosseis/rahvaarv-ja-rahvastiku-koosseis/RV021.PX" |
query_table
Pull ESTONIA official statistics figures from a Statistics Estonia (Statistikaamet) table — wages, population, GDP, prices, unemployment. body is a PxWeb query object; get valid dimension values from table_meta first. Filter selections to stay under the ~100k-cell limit.
| Parameter | Type | Description |
|---|---|---|
body * | object | {query: [{code, selection: {filter, values}}], response: {format: "json-stat2"}} |
path * | string | Table path ending in .px, e.g. ".../RV021.PX" |