MCP server exposing 3 tools for statfin-fi.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/statfin-fi/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
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".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 tertiary level qualification). path is "folder/table.px" using the bare 4-character table id, e.g. "vkour/15ig.px" or "khi/11xs.px".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": "tertiary level qualification"} against "vkour/15ig.px" returns the 1,672,232 Finns who hold one — and this pack resolves them against the table's own metadata, defaults the year to the latest published and every other breakdown to its total, and reports each of those choices back in `selection_resolved` alongside a flattened `figures` list. `select` keys and values may be either the English label or the native Finnish code ("contentscode", "kaste5T8"). Pass `body` instead for a raw PxWeb query object when you already know the codes.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/statfin-fi/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io