Skip to main content
Glama
xippios-eurostat-mcp

xippios-eurostat-mcp

by xippios

xippios-eurostat

Typed Python client, MCP server and FastAPI routes for Eurostat dissemination API, part of the xippios SDK family. Names and semantics follow the upstream documentation; every response carries its metadata (source, endpoint, retrieved_at, request), and the release Eurostat states, in published_at and vintage, where it states one.

Install

uv add xippios-eurostat            # client only
uv add "xippios-eurostat[mcp]"     # + MCP server
uv add "xippios-eurostat[http]"    # + FastAPI router

No API key is needed.

Related MCP server: DuckDB Eurostat MCP Server

30-second example

from xippios.eurostat import get_data

milk = get_data("apro_mk_cola", filters={"geo": "AT", "time": ["2022", "2023"]})
cube = milk.data  # the JSON-stat 2.0 dataset, member by member
cube.id  # ["freq", "milkitem", "dairyprod", "unit", "geo", "time"]
cube.size  # [1, 3, 10, 2, 1, 2]: codes per dimension
cube.value["40"]  # 3247.05: cell 40, row-major over size, the last dimension fastest
cube.status["64"]  # "|C": confidential, as cube.extension["status"]["label"] names it
first = next(cube.observations())  # one cell with its codes and labels
first.codes  # {"freq": "A", "milkitem": "PRD", "dairyprod": "D1110D", "unit": "THS_T", ...}
first.labels["dairyprod"], first.value  # "Raw cows' milk delivered to dairies", 3247.05
milk.meta.published_at  # 2026-10-05 23:00+02:00: the dataset's last update, `updated`
milk.meta.vintage  # "2026-10-05T23:00:00+0200": the same, as Eurostat prints it
milk.meta.request  # {"dataset_code": "apro_mk_cola", "filters": {...}, "lang": "EN"}

get_data(dataset_code, *, filters=None, lang=Lang.EN, since_time_period=None, until_time_period=None, last_time_period=None, geo_level=None) sends one request to the Statistics API (statistics/1.0/data/{datasetCode}); dataset_code is its first argument, and every other is passed by name. A DS- dataset, Comext trade or Prodcom production, is requested on Eurostat's Comext base, every other on the main base; the call and its answer are the same, and a value is the text Eurostat prints where a Prodcom indicator is a unit or a flag:

oil = get_data(
    "DS-059358",  # Prodcom: sold production, exports and imports
    filters={"reporter": "AT", "product": "10411200"},  # fish and marine oils, NACE 10.41
    since_time_period="2022",
    until_time_period="2023",
)
oil.data.id  # ["freq", "reporter", "product", "indicators", "time"]
oil.data.value["6"], oil.data.value["12"]  # 349477 (EXPVAL 2022), "KG" (QNTUNIT 2022)

filters maps any dimension of the dataset to one code or a list of codes ({"geo": "AT", "milkitem": "PRD"}); a time filter selects periods, and so do since_time_period, until_time_period and last_time_period. Eurostat accepts one time parameter per query, the one exception being since_time_period with until_time_period; any other combination is refused before sending. lang takes Lang.EN, Lang.FR or Lang.DE and geo_level a GeoLevel (aggregate, country, nuts1, nuts2, nuts3, city), both in xippios.eurostat.models; a plain string such as "FR" works too.

The codes of a dimension that one packaged codelist feeds are checked against it before the request, on the dataset's base: geo, unit and the other ten dimensions of the main base's codelists, and reporter, flow and indicators of the Comext base, as list_codes lists them. A code the codelist lacks raises core's UnknownCode, which says that nothing was sent and names the codes of that codelist closest to it by their text: a hint and no successor, so FCA, which MILKITEM no longer holds, is offered FAT, another measure. A code that Eurostat added after the packaged fetch is refused alike, and download_dataset's key, which no check reads, sends it. meta.names names each checked code with its label ({"geo": {"AT": "Austria"}}). product, which three codelists feed, and partner are sent unchecked, and so is a dimension of one base on a dataset of the other. A cube that holds no cell, a code the dataset does not use or a period not yet released, raises NotFoundError naming the dataset and the filters sent.

Eurostat keeps two lists of countries. GEO, "Geopolitical entity (reporting)", the codelist of geo on the main base, writes Greece EL and the United Kingdom UK; CXT_FREE_ISO, the codelist of reporter and partner on the Comext base, writes them GR and GB. A geo filter takes GEO's codes and a reporter or partner filter CXT_FREE_ISO's, as list_codes("geo") and list_codes("cxt_free_iso") list them with their labels. The check refuses a code of the other list for geo and for reporter, and its hint names no code of the other list.

meta.published_at is the cube's updated with Eurostat's zone; one printed without a zone is kept as printed with meta.published_at_naive set, and meta.vintage holds the text either way. An unknown dataset, and Eurostat's "No results found", raise NotFoundError too; a query Eurostat refuses raises InvalidRequestError with Eurostat's message, and one it judges too large core's QueryTooLarge, with Eurostat's estimate and limit and how to narrow it. A query Eurostat would answer asynchronously raises AsynchronousResponse (xippios.eurostat.errors), an InvalidRequestError: this package does not poll asynchronous answers, and the Statistics API's own route is to send the same request again later. Eurostat judges a DS- query's size before its dimensions, so a filter on a dimension the dataset lacks may be refused as too large or queued without its name: get_data then asks for the dataset's dataflow, one more request, and raises InvalidRequestError naming the filter and the dimensions the dataset has, and Eurostat's refusal stands where every filter names one. A URL too long for Eurostat's network, a filter of thousands of codes, raises InvalidRequestError with the length of the URL sent. Ask for small slices: the cube comes back whole, and over MCP a result above 64 KB is replaced by a preview and a note.

Datasets and codes

from xippios.eurostat import list_codes, list_dataflows, list_datasets

milk = list_datasets(search="milk")  # 24 leaves: "milk" in a code, a title or a folder
cola = list_datasets(search="apro_mk_cola").data[0]
cola.code, cola.type  # ("apro_mk_cola", "dataset")
cola.title  # "Production of main cows' milk products - annual data"
cola.path  # "Database by themes > Agriculture, forestry and fisheries > ... > Milk and milk products"
cola.last_update, cola.data_start, cola.data_end  # (date(2026, 11, 5), "1968", "2025")
cola.metadata_html  # "https://ec.europa.eu/eurostat/cache/metadata/en/apro_anip_esms.htm"
milk.meta.vintage, milk.meta.published_at  # "20261203T1000", 2026-12-03 10:00 without a zone
list_datasets(search="Milk and milk products")  # the 20 leaves below the folder
trade = list_dataflows(search="DS-045409").data[0]  # a dataflow of the Comext base
trade.id, trade.label  # ("DS-045409", "EU trade since 1988 by HS2-4-6 and CN8")
trade.dissemination_object_type, trade.update_data  # "DATASET", 2026-11-13 11:00+01:00
trade.esms_html  # "https://ec.europa.eu/eurostat/cache/metadata/en/ext_go_detail_sims.htm"
austria = list_codes("geo", search="austria")
austria.data  # [Code(code="AT", label="Austria")]
austria.meta.vintage, austria.meta.published_at  # "29.0", 2026-11-25 23:00+01:00
list_codes("unit", search="THS_T").data[0]  # Code(code="THS_T", label="Thousand tonnes")
list_codes("na_item")  # any other codelist, asked of Eurostat
list_codes("geo", lang="FR")  # French labels, asked of Eurostat
list_codes("milkitem", version="3.0")  # one version of a codelist, asked of Eurostat

list_datasets, list_dataflows, and list_codes for eighteen codelists in English, answer from lists packaged with this version, without a request: meta.retrieved_at is when the package fetched the list, meta.endpoint the operation it came from. list_datasets(*, search=None) reads Eurostat's table of contents (catalogue/toc/xml): every dataset and pre-defined table of the navigation tree, over 10,000 leaves, one per listing in the tree, each with its code, type, English title, the folders above it (path, joined with " > "), its last update and structure change, each a date that Eurostat prints day first ("05.11.2026"), its first and last period and its number of values as Eurostat prints them, and the link to the page that explains it (metadata_html), each None where it prints none. The table takes no filter, so the package filters after the fetch: search keeps a leaf whose code, title or path contains the text, ignoring case, so a folder's title keeps the leaves below it, "Milk and milk products" 20, in the folders under it too. meta.vintage is the table of contents' creationDate as printed and meta.published_at the same time, which Eurostat prints without a zone, so meta.published_at_naive is set. list_dataflows(*, search=None) reads the datasets of the Comext base, whose codes start with DS-, from its list of dataflows (sdmx/2.1/dataflow/ESTAT/all there), which the table of contents does not hold: Comext's trade and Prodcom's production datasets, each a ComextDataflow under its dataflow's own names, its id and label, its dissemination_object_type as printed, the times of its last data update and structure change with the zone that Eurostat prints (update_data, update_structure) and the link to its explanation (esms_html). The list takes no filter either: search keeps a dataflow whose id or label contains the text, ignoring case. meta.vintage is the list's updated as printed and meta.published_at the same time with its zone. list_codes(codelist, *, search=None, lang=Lang.EN, version=None) lists any of Eurostat's SDMX codelists by its id, case-insensitive, which is mostly the dimension's own name. Eighteen come from the package with English labels: FREQ, GEO, UNIT, CROPS, STRUCPRO, MILKITEM, DAIRYPROD, STATINFO, LEG_FORM, FARMTYPE, SO_EUR and UAAREA, the codelists of the dimensions of apro_cpnh1, apro_mk_cola and ef_m_farmleg, named as the dimension is ("geo"); and from the Comext base CXT_PRODCOM2_SOLD, CXT_PRODCOM2_TOTAL and CXT_INDICATORS, the product and indicators codes of the Prodcom datasets, and CXT_NC, CXT_FREE_ISO and CXT_EU_FLUX, the product, reporter and partner, and flow codes of the Comext trade datasets.

Any other codelist is asked of Eurostat (codeListQuery, sdmx/2.1/codelist/ESTAT/{resourceID}), and so is one of the eighteen with lang Lang.FR or Lang.DE, which gives its labels in French or German, where Eurostat has translated them (docs/upstream/OBSERVED.md, "A codelist in French or German holds English labels too"), or with a version: "3.0" for one that Eurostat published before, which may hold codes that a later one dropped, or "latest" for the newest where the package's copy may be older. An id that starts with CXT_ is asked on the Comext base and every other on the main base, and on the other one where the first says that it has no such codelist, so a call sends two requests at most, eight with the client's retries. The answer is cached for five minutes. A codelist that neither base has raises NotFoundError, which names the closest packaged codelists, or for one of the eighteen the arguments to leave out for the package's copy.

meta.vintage is the codelist's version and meta.published_at its last update, None for one that names none, such as CXT_EU_FLUX; meta.endpoint is the operation's name, codeListQuery, and for a packaged codelist the path it was fetched from, its full URL for one of the Comext base. version left out answers the package's copy of a packaged codelist in English, fetched at meta.retrieved_at, where Eurostat's own default is the latest, which "latest" asks for. search keeps the codes whose code or label contains the text, ignoring case. Over MCP eurostat_list_datasets and eurostat_list_dataflows keep the family's cap and eurostat_list_codes takes up to 1,000 codes within the family's 64 KB, so every packaged codelist but GEO, the two PRODCOM product lists and CXT_NC comes whole. The three tools take offset, the rows already shown, and the note of a cut answer names search and the offset to continue with; the next page sends no request, since a codelist asked of Eurostat comes from the cache, and a codelist that only the second base has is asked there first, from the cache too.

A dataset's structure

from xippios.eurostat import get_dataset_structure, list_dataset_codes

milk = get_dataset_structure("apro_mk_cola")
milk.data.label  # "Production of main cows' milk products - annual data"
milk.data.obs_count, milk.data.obs_period_overall_latest  # (9502, "2025")
[(d.id, d.codelist, d.code_count) for d in milk.data.dimensions]
# [("freq", "FREQ", 1), ("milkitem", "MILKITEM", 3), ("dairyprod", "DAIRYPROD", 10),
#  ("unit", "UNIT", 2), ("geo", "GEO", 45), ("TIME_PERIOD", None, None)]
milk.meta.vintage  # "2026-11-05T11:00:00+0100": the dataset's last update, as printed
list_dataset_codes("apro_mk_cola", search="austria").data
# [DatasetCode(dimension="geo", code="AT", label="Austria")]
soya = list_dataset_codes("DS-045409", dimension="product", search="soya beans")
soya.data[0]
# DatasetCode(dimension="product", code="1201", label="Soya beans, whether or not broken")

get_dataset_structure(dataset_code, *, lang=Lang.EN) answers one record: the dataset's title, its last data update and structure change, with Eurostat's zone, its number of values and its first and last period, and its dimensions in key order, the order of download_dataset's key, each with its label, its codelist, which list_codes lists whole, and how many of its codes the dataset holds; the time dimension comes last. Each is None where Eurostat prints none. list_dataset_codes(dataset_code, *, dimension=None, search=None, lang=Lang.EN) answers the codes the dataset holds, the values its filters take, one row each with its dimension and label; dimension keeps one dimension, "time" the periods, and search keeps a code or label that holds its text. Both read Eurostat's structure in SDMX-ML (dataflowQuery): one request on the main base, whose answer lists the codes the dataset uses, so its codes come with their labels in English, French and German, but no period: "time" lists none there, which the content constraint would list at a request more that the package does not send, and get_dataset_structure gives the first and last. A DS- dataset takes two requests on the Comext base, its dataflow and its content constraint (contentConstraintQuery), the codes and periods it holds; its dataflow is asked without its concept scheme, so its dimensions have no label, and the labels of its codes come from the codelists that list_codes reads, the package's copy in English without a request, so a trade dataset in French sends twelve at most. An answer in SDMX-ML is not cached, so a call asks again. A dataset Eurostat does not hold raises NotFoundError, which names the closest codes of the table of contents; a dimension the dataset lacks raises InvalidRequestError after the dataflow is asked. Over MCP eurostat_list_dataset_codes takes up to 1,000 codes within the family's 64 KB and takes no offset: a trade dataset's tens of thousands of products are cut with a note that names dimension and search.

Bulk download

from pathlib import Path

from xippios.eurostat import download_dataset
from xippios.eurostat.models import DataFormat
from xippios.eurostat.parse import parse_sdmx_csv

milk = download_dataset(
    "apro_mk_cola",
    "A...THS_T.AT",
    start_period="2022",
    end_period="2023",
    format=DataFormat.SDMX_CSV,
    compressed=True,
    dest=Path("milk.csv.gz"),
)
milk.data.path  # PosixPath("milk.csv.gz"): the gzip-compressed SDMX-CSV file
milk.data.bytes  # 335
milk.data.filename  # "estat_apro_mk_cola_filtered_en.csv.gz", Eurostat's name for it
milk.meta.vintage  # "05/10/26 23:00:00": LAST UPDATE as printed, day first
milk.meta.published_at  # 2026-10-05 23:00 without a zone, meta.published_at_naive set
rows = parse_sdmx_csv(milk.data.path)  # one SdmxCsvRow per observation, read lazily
first = next(rows)
first.dimensions  # {"freq": "A", "milkitem": "PRD", "dairyprod": "D1110D", ...}
first.time_period, first.obs_value  # ("2022", "3247.05"), as printed
first.obs_value_number  # Decimal("3247.05"), None where the text is no number
first.last_update  # 2026-10-05 23:00 without a zone: LAST UPDATE, read day first

download_dataset(flow_ref, key="", *, provider_ref=None, start_period=None, end_period=None, first_n_observations=None, last_n_observations=None, detail=None, return_data=None, lang=None, label=None, format=None, compressed=False, dest) sends one SDMX 2.1 data query (dataQuery, sdmx/2.1/data/{flowRef}/{key}/{providerRef}), each setting left out at Eurostat's own default, and streams the answer to dest, never holding it in memory or caching it; it returns core's Downloaded (path, size, content type, Eurostat's file name, retrieval time). The release is then read from an SDMX-CSV or JSON-stat file: an SDMX-CSV file's header and first row alone, a JSON-stat file whole, once, as JSON is read. It is a bulk task: Python only, so the MCP server and the router skip it and no agent is handed a file path. key is Eurostat's series key, the dimensions but time in the dataset's order, dot-separated, empty for every code of a dimension, + between codes ("A...THS_T.AT+DE"); "" downloads the whole dataset. provider_ref is the path's segment after the key, the agency that provides the data, "ESTAT" for every dataset of Eurostat's, and takes a key. start_period, end_period, first_n_observations and last_n_observations are Eurostat's startPeriod, endPeriod, firstNObservations and lastNObservations. detail, return_data and label are the query's detail, returnData and label, each a value set of xippios.eurostat.models: Detail ("full", "dataonly", "serieskeysonly", "nodata"), ReturnData ("ALL", "DATA_ONLY") and Label ("id", "name", "both"); lang is Lang, "EN", "FR" or "DE", as get_data takes it, sent in the data query's small letters. Each takes a plain string of its values too, and any other is refused before the request. With label="both" Eurostat writes a dimension's code and its name in one cell, "AT:Austria" (docs/upstream/OBSERVED.md, "A data query with label=both writes a code and its name in one column"). format, DataFormat, is one of the four forms the user guide gives the data query: "SDMX_2.1_STRUCTURED", "SDMX-CSV", which parse_sdmx_csv(path) reads, "JSON", a JSON-stat dataset, which parse_json_stat(path) reads whole into a list of one Cube, telling a gzip file from a plain one by its first bytes, and "TSV". format=None, the default, sends none, and Eurostat answers its default form, SDMX-ML 2.1 Generic. compressed=True asks for any form gzip-compressed, as the user guide documents the parameter for the data query without naming a form; compressed=False, the default, leaves the parameter out, and Eurostat answers the plain file. meta.vintage is the file's release as printed and meta.published_at the same time: an SDMX-CSV file's LAST UPDATE, which Eurostat prints without a zone, and a JSON-stat dataset's updated, with its zone; both are None for an SDMX-CSV file without a row. No parser of the package reads the other three forms, so a file in one of them is written as Eurostat sends it, both are None, and a note says why. A query Eurostat would answer asynchronously raises AsynchronousResponse, an InvalidRequestError, which says to send the same request again later, when Eurostat answers it with the file it prepared meanwhile, or to narrow it; one it refuses as too large raises QueryTooLarge, naming how to narrow it, and a code that the dataset's structure does not allow in key InvalidRequestError with Eurostat's fault. parse_sdmx_csv(path) reads the file, gzip-compressed or plain, row by row: each SdmxCsvRow has the dataflow, the last_update as a naive datetime, the dimensions in column order, the time_period, the obs_value as printed, None when empty, with obs_value_number beside it, its Decimal or None where the text is no number (Prodcom's "KG", ":E"), and obs_flag, conf_status and any other attributes of the dataset, as Eurostat prints them. A file of detail="serieskeysonly" or "nodata" has no TIME_PERIOD or OBS_VALUE column, and its rows' time_period and obs_value are None. A DS- dataset is downloaded from the Comext base, key in its own dimensions' order ("A.AT.10411200." for DS-059358); a Comext trade dataset is served filtered only, a Prodcom dataset whole as well.

MCP

{
  "mcpServers": {
    "eurostat": {
      "command": "uvx",
      "args": ["--from", "xippios-eurostat[mcp]", "xippios-eurostat-mcp"]
    }
  }
}

Tools are read-only and named eurostat_<verb>_<noun>. Results are capped, at 200 rows or 64 KB unless a tool has a cap of its own, with a note on how to see the rest. --http serves streamable HTTP instead of stdio.

Status

Upstream operation

Task function

MCP tool

Status

getData (statistics/1.0/data/{datasetCode})

get_data(dataset_code, filters), a JSON-stat cube

eurostat_get_data

alpha

getTocXml (catalogue/toc/xml), packaged

list_datasets(search), the datasets and tables of the table of contents

eurostat_list_datasets

alpha

dataflowQuery (sdmx/2.1/dataflow/ESTAT/all) on the Comext base, packaged

list_dataflows(search), the DS- datasets of the Comext base as their dataflows

eurostat_list_dataflows

alpha

codeListQuery (sdmx/2.1/codelist/ESTAT/{resourceID}), eighteen codelists packaged in English

list_codes(codelist, search, lang, version), the codes of any codelist of either base

eurostat_list_codes

alpha

dataQuery (sdmx/2.1/data/{flowRef}/{key}/{providerRef}), each form of the query

download_dataset(flow_ref, key, dest), a file on disk in the form asked, Eurostat's own default without a setting, with every setting of the query

none: a bulk task, Python only, which the adapters skip

alpha

dataflowQuery (sdmx/2.1/dataflow/ESTAT/{resourceID}/1.0), SDMX-ML, and contentConstraintQuery for a DS- dataset

get_dataset_structure(dataset_code, lang), a dataset's title, last updates, size, periods and dimensions

eurostat_get_dataset_structure

alpha

the same

list_dataset_codes(dataset_code, dimension, search, lang), the codes a dataset holds, each with its dimension and label

eurostat_list_dataset_codes

alpha

Five of these seven tasks choose the base URL by a code: get_data, download_dataset, get_dataset_structure and list_dataset_codes request a dataset whose code starts with DS-, Eurostat's Comext and Prodcom datasets, on https://ec.europa.eu/eurostat/api/comext/dissemination, and every other on the main base URL, https://ec.europa.eu/eurostat/api/dissemination. The Comext base serves Prodcom's DS-059358 and DS-059359 and Comext's DS-045409 and DS-059341. list_codes requests a codelist whose id starts with CXT_ on the Comext base first and every other on the main base first, and on the other one where the first has no such codelist; of the eighteen packaged, twelve are the main base's and six the Comext base's, CXT_PRODCOM2_SOLD and CXT_NC among them, the products of the Prodcom and trade datasets. list_datasets lists the main base's table of contents, and list_dataflows the Comext and Prodcom datasets from the Comext base's list of its dataflows, since the Comext base answers catalogue/toc/xml with HTTP 404, though its WADL lists it (docs/upstream/OBSERVED.md, "The Comext base answers the table of contents with HTTP 404").

Scope

The WADL files of Eurostat's main base (docs/upstream/api/) document 24 operations, and the package's scope is its data, its lists and its releases, 17 of them, as the maintainer decided on 2026-11-27 (https://github.com/xippios/sdk-eurostat/issues/82#issuecomment-7219313682). Six are served today, as the status table above names them: the Statistics API's getData and the SDMX 2.1 API's dataQuery, codeListQuery, dataflowQuery and contentConstraintQuery, wrapped, and getTocXml, whose answer the package ships, the table of contents, refreshed before each release with its copies of eighteen codelists and of the Comext base's list of its datasets. The dataflow query serves one dataset's structure, and its list of every dataflow of the Comext base, the one list of that base's datasets, is the copy that list_dataflows reads. The other eleven wait for their public issues:

Seven are left out. getTocTxt, getLegacyTocTxt and getLegacyTocXml serve the table of contents as text and in two legacy forms, the same content in other forms, and getTocXsd its schema, which holds no data. getJsonLd, getDatasetWithRelations and essmhMetaDataSearch, the paths jsonld, relations and linked-datasets, serve the records of Eurostat's metadata portal. Out beside them: SDMX 3.0, whose WADL the Comext base serves (docs/upstream/api/comext/sdmx-rest-3.0.wadl), the same data and structures under another version of the standard (https://github.com/xippios/sdk-eurostat/pull/11); the other forms of the structure answers, which the package reads in JSON or SDMX-ML, as below; and the bulk download facility, a service beside the API that Eurostat advises for large extractions (https://github.com/xippios/sdk-eurostat/issues/60, closed as not planned).

get_data takes each parameter that the user guide documents for the Statistics API's data query but format, whose one documented value, JSON, it sends. download_dataset takes the data query's flowRef, key, providerRef, startPeriod, endPeriod, firstNObservations, lastNObservations, detail, returnData, lang, label and compressed, and each value of its format, SDMX_2.1_STRUCTURED, SDMX-CSV, JSON and TSV, and leaves format out by default, for the query's own, SDMX-ML 2.1 Generic. list_codes takes the codelist query's version and lang, and its codelist is the query's resourceID. Of the query's format, list_codes asks for JSON, JSON-stat, and leaves its default, SDMX-ML, and TSV out, as above. Five of the query's parameters are left out of list_codes, each for its reason (https://github.com/xippios/sdk-eurostat/issues/35): agencyID, sent as ESTAT, the agency of every codelist that the user guide and the data structures name; detail, whose values other than the default leave the codes out or select what a codelist refers to; completestub, which the WADL lists and the user guide gives no meaning; references, which the user guide documents for dataflows and data structures alone; and compressed, the same answer as a gzip file, which the package would only unpack again. The table of contents' query takes no parameter, and list_datasets leaves out what each leaf holds beside its ten fields: its short description, its titles in French and German, the link to its reference metadata as SDMX, and the folders above it as records of their own (https://github.com/xippios/sdk-eurostat/issues/107). The Comext base's list of its datasets that list_dataflows reads is one answer of the dataflow query, with agencyID ESTAT, resourceID all, every dataflow, and format JSON, the form the package reads, its default, SDMX-ML, and TSV left out, as above. Of the query's other parameters, list_dataflows leaves out version, whose segment the query leaves out for the latest; lang, whose default is English, as the table of contents' titles; detail, whose allstubs leaves out the annotations, which hold the times and the link, and whose other values give the list nothing beyond the default full, as the guide's table has them; completestub, which the WADL lists and the user guide gives no meaning; references, which adds the data structures, which no field of the list reads; and compressed, the same answer as a gzip file.

get_dataset_structure and list_dataset_codes send the dataflow query's agencyID as ESTAT, the dataset's code as its resourceID, in capitals, and its version as 1.0, the one version of every dataflow of Eurostat's; they send its references as descendants and its detail as referencepartial on the main base, and its references as children alone on the Comext base, as ADR-0001 decided; they leave out its completestub, which the user guide gives no meaning, and its compressed, the same answer as a gzip file, and send no lang, since an answer in SDMX-ML holds the names in English, French and German, of which lang picks one. Of the dataflow query's format, get_dataset_structure and list_dataset_codes send none, for its default, SDMX-ML, the form that holds a data structure (https://github.com/xippios/sdk-eurostat/issues/105), and leave JSON and TSV out. Of the content constraint query, which they send for a DS- dataset alone, list_dataset_codes and get_dataset_structure send the agencyID, resourceID and version of its dataflow and leave out its compressed.

Upstream terms and attribution

Data comes from Eurostat dissemination API (https://ec.europa.eu/eurostat/web/main/data/database) under its own terms of use; this package adds no rights to it. Documentation snapshot and its attribution, Eurostat's reuse and citation lines among them: docs/upstream/FETCHED.md.

Workflows

ci.yml runs ruff, its format check, mypy, pytest and pre-commit on Python 3.12, 3.13 and 3.14, requires a changelog entry of every pull request but Dependabot's and refuses a fixture file over 256 KiB that a pull request adds or changes. It runs on every pull request and, called by publish.yml, once for a release, and its job ci is the check the organization's ruleset requires. It is handed no secret, and no variable switches it off.

publish.yml is the release train (conventions §12): on a push to main whose pyproject.toml names a version that has no tag yet and has its section in CHANGELOG.md, it runs ci.yml, refuses a core pinned to git, tags the merge commit, builds the package and, once a reviewer of the environment pypi approves the run, publishes it to PyPI by trusted publishing. Every push to main and a dispatch start it, and a push that brings no release ends quietly. It is handed no secret: the step that tells a release is handed the job's token as GH_TOKEN, the tag goes with the job's token and PyPI trusts the workflow itself. Its job tag holds the one checkout of the repository that keeps its credentials, since it pushes the tag with the job's token; every other checkout sets persist-credentials: false (conventions §13). No variable switches it off.

live.yml runs every live test against the upstream with --tb=short --assert=plain, so its public log holds neither a failing test's arguments nor the values an assertion compared. It runs every night at 04:59 UTC and on demand, never on a pull request. Its pytest step alone is handed XIPPIOS_LIVE_TESTS, and no secret. A variable WORKFLOW_LIVE of off, the repository's over the organization's, switches it off.

conventions.yml calls the organization's review of a pull request against the documents listed under Documents below, the check conventions / conventions, when a pull request opens, is pushed to, reopens or is edited, and on a push to main or a dispatch the review of the range of commits, range / range. It hands the review the organization's secret of the model's key, by name. A variable WORKFLOW_CONVENTIONS of off, the repository's over the organization's, switches both off.

adr-index.yml calls the organization's check of the ADR index, adr-index / adr-index, which runs scripts/adr_index.py --check, when a pull request opens, is pushed to or reopens. It hands over nothing, and the called workflow reads its switch itself: a variable WORKFLOW_ADR_INDEX of off, the repository's over the organization's, skips the check.

Documents

  • sdk-core: docs/conventions.md — the conventions every xippios source package follows: its layout, names, results, tests and releases.

  • sdk-core: docs/adr.md — the index of the family's architecture decisions, which the conventions cite.

  • sdk-core: docs/definition-of-done.md — what a change satisfies before its pull request is opened.

  • sdk-core: docs/review-checklist.md — what the review of a pull request checks, in order.

  • sdk-eurostat: docs/adr.md — the index of this package's own decisions, generated from the records in docs/adr/.

  • sdk-eurostat: docs/upstream/FETCHED.md — the snapshot of the upstream documentation, the reference for names, parameters and semantics.

  • sdk-eurostat: docs/upstream/OBSERVED.md — what Eurostat does that its documentation does not state, each note with the probe that showed it.

Licence

Apache-2.0. See LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers