Statfin Fi
v0.2.1Statistics Finland (StatFin) PxWeb MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
subjects
Browse the Statistics Finland (StatFin) subject tree of Finnish official statistics — population, education, employment, consumer prices, housing, health and national accounts tables published by Tilastokeskus. Entries with type "l" are folders (drill in with their id, e.g. "vkour" for educational structure of population, "khi" for the consumer price index); type "t" are tables whose id is the bare 4-character code plus ".px" (e.g. "15ig.px"), which you pass to table_meta and query_table as "folder/table.px" — for example "vkour/15ig.px".
| Parameter | Type | Description |
|---|---|---|
path | string | Sub-path under /StatFin/ (default empty = root list of ~135 subject folders). e.g. "vkour" or "khi". |
table_meta
List the dimensions and every valid value of one Statistics Finland (StatFin) PxWeb table of Finnish official statistics — use it to see exactly what a table breaks down by before slicing it, or when query_table reports that a value matched nothing. StatFin dimension codes are native Finnish and cannot be guessed from the English table title: "vkour/15ig.px" uses "ikaryhma_10_20180101" for age (whose total is "15-", not "SSS"), "sukupuoli_9_20180101" for gender, "syntypera_101_20180101" for origin, "timeperiod_y" for year, and contentscode values such as "kaste5T8" (population with a tertiar…
| Parameter | Type | Description |
|---|---|---|
path * | string | folder/table.px with the bare 4-character table id, e.g. "vkour/15ig.px" or "khi/11xs.px". Find ids with subjects. |
query_table
Get an actual figure out of a Statistics Finland (StatFin) table of Finnish official statistics — how many Finns hold a tertiary qualification, the current consumer price index, births and deaths, employment, and the rest of the Tilastokeskus catalogue. path is "folder/table.px" using the bare 4-character table id (e.g. "vkour/15ig.px", "khi/11xs.px"); the longer "statfin_<folder>_pxt_<id>.px" form found in older StatFin docs was retired upstream and is rewritten to the current form for you. Answers in ONE call: pass `select` with plain-English labels from the question — {"Information": "t…
| Parameter | Type | Description |
|---|---|---|
path * | string | folder/table.px with the bare 4-character table id, e.g. "vkour/15ig.px" or "khi/11xs.px". |
body | object | Raw PxWeb query, for callers who already have the codes: {query: [{code, selection: {filter: "item", values: [...]}}], response: {format: "json-stat2"}}. Takes precedence over select. Codes come from… |
select | object | Dimension → value, in plain English or native codes, e.g. {"Information": "tertiary level qualification", "Year": "2024"} or {"contentscode": "kaste5T8"}. A value may be an array to take several. Un… |