Istat It

v0.2.1
io.github.pipeworx-io/istat-it Checked 1 day ago Published 1 month ago

ISTAT (Istituto Nazionale di Statistica) MCP — Italy's national statistics via the public SDMX 2.1…

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

list_dataflows

Browse or keyword-search ISTAT datasets (dataflows). Each result has an `id` (the dataflowId you pass to get_data / dataflow_structure) and an English name. ISTAT publishes ~4,800 datasets, so always pass `query` to filter unless you really want the whole list. Example: list_dataflows({ query: "unemployment" }) or list_dataflows({ query: "GDP" }).

ParameterTypeDescription
limitnumberMax results to return (default 50).
querystringCase-insensitive substring filter on dataset id or name, e.g. "population", "inflation", "GDP".

dataflow_structure

Get the structure (Data Structure Definition) of one ISTAT dataset: its ordered dimensions and, for each, the valid codes. Use this to learn how to build the dot-separated SDMX key for get_data. The key positions correspond to the dimensions in order; an empty position is a wildcard. Example: dataflow_structure({ dataflow_id: "101_1015" }).

ParameterTypeDescription
dataflow_id *stringISTAT dataflow id from list_dataflows, e.g. "101_1015".

get_data

Pull observations from an ISTAT dataset. `key` is a dot-separated SDMX dimension filter, one position per dimension in the order given by dataflow_structure; leave a position empty to wildcard it. Example: get_data({ dataflow_id: "101_1015", key: "A.IT...", start_period: "2021", end_period: "2023" }) selects annual (A), REF_AREA=IT (Italy), and wildcards the rest. Omit `key` (or pass "") to fetch all series — caution, this can be large. Returns decoded series with their dimension labels and per-period values.

ParameterTypeDescription
dataflow_id *stringISTAT dataflow id, e.g. "101_1015".
end_periodstringEnd period, e.g. "2023".
keystringDot-separated dimension filter (one position per dimension, empty = wildcard), e.g. "A.IT..." . Omit for all series.
last_nnumberReturn only the last N observations per series.
max_seriesnumberCap the number of decoded series returned (default 200).
start_periodstringStart period, e.g. "2021", "2021-01", "2021-Q1".