/eurostat-mcp-server:eurostat-guidefrom eurostat-mcp-server
Guides analysis of Eurostat statistics including Comext trade and PRODCOM data. Helps compare countries/regions, resolve statistical codes, query staged observations with SQL, and apply coverage/comparability checks before ranking or aggregating.
Ships in eurostat-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this server for statistics disseminated by Eurostat, including detailed Comext trade and PRODCOM collections. No API key is required. Catalogue discovery is not evidence that every European statistic is covered; use the dataset's metadata to establish what the figures measure.
| Identifier | Obtain it from |
|---|---|
| Dataset code | A dataset or table result from eurostat_search_datasets or eurostat_browse_themes |
| Theme code | A folder result from eurostat_browse_themes; dataset codes are not folders |
| Dimension code | The selected dataset's eurostat_get_dataset_info result |
| Dimension value code | That dimension's eurostat_get_dimension_values result; metadata samples are not exhaustive |
| Canvas identifier | A staging response's canvasId; supply it as canvas_id in subsequent calls |
| SQL table and column names | eurostat_dataframe_describe on that canvas; do not derive names from a dataset code |
Keep codes as identifiers and labels as display text. Resolve codes within the chosen dataset rather than borrowing a global classification list or another dataset's values.
eurostat_search_datasets needs every word somewhere in a dataset's label, theme breadcrumb or code, in any order, so "business demography NUTS 3" resolves without naming the label verbatim; spacing beside catalogue punctuation is ignored ("2015=100" finds "2015 = 100"). When no dataset holds every word, a missing word can match the start of a word in a dimension value's label: "pharmacist" finds "Pharmacists" (med_spec=PHARM), "sex" does not find "Essex". Those rows carry matchedValues, whose codes are filter values for eurostat_query_dataset.
Within a dataset, eurostat_get_dimension_values filter matches substrings of a value's code and label together, ignoring accents ("palma frankfurt" finds DE_EDDF_ES_LEPA, "zurich" finds Zürich), and code_prefix lists the codes under a parent ("2204" on a CN list returns that heading and the codes beneath it). An aggregate outside the code tree, such as COICOP ELC_GAS or NRG, shares no parent's prefix: find it with filter.
Resolve the question to a measure before selecting the dataset. Inspect dataset metadata and resolve the required dimension values, then fetch a bounded slice. Request one geographic level at a time with geo_level; to pick regions under one parent, list them with eurostat_get_dimension_values, geo_level and code_prefix (nuts2 with DE for German regions), then filter geo on those codes. Compare the same period and dimensional definition across places; if places have different latest periods, either use a common populated period or state each period explicitly. For regional trends, resolve classification compatibility before treating observations as a continuous series.
Write since_period and until_period in any accepted form; each is read as the span of days it covers, and the response echoes the canonical form ("2020-Q01" as "2020-Q1", "2026-D1" as "2026-D001", "2020-A1" as "2020"). Eurostat keeps only the periods wholly inside the range, per frequency: since_period "2022-06" on annual data drops 2022, which starts before the bound, and until_period "2023-06" drops 2023, which ends after it.
A range fails as invalid_period, before any request, when a bound is malformed ("2020-1"), names a period that does not exist ("2020-13", "2020-Q5", "2021-W53" in a 52-week year, "2023-02-29", "2023-D366"), or starts after the other bound ends. Bounds of different frequencies compare by day: "2021" to "2020-06" fails, while "2020-06" to "2020" is accepted but holds no whole annual period, so annual data returns nothing for it.
Both bounds on one day, in any forms ("2022-06-15" twice, "2022-06-15" with "2022-D166", "2022-06-30" with "2022-06"), select that day alone. Eurostat answers such a range as sent with the whole series, so the query asks for that one date, and the download asks for that day and the next and drops the next before anything is counted or staged; its appliedQuery.url ends a day past untilPeriod. A day with no published period (a weekend on daily data, any single day on monthly or annual data) returns nothing: the query fails as no_results, the download as invalid_dimension, or as no_results when only the next day has cells.
eurostat_download_dataset takes no last_n_periods: the bulk table keeps a column for every period when asked for the latest N, so only a period range shrinks the transfer. For the latest N periods of a download, list the dataset's periods with eurostat_get_dimension_values, dimension "time", and set since_period to the earliest of the last N.
Use eurostat_query_dataset for a filtered slice and eurostat_download_dataset for a bulk extract. On a deployment with dataframe tools, request stage=true in eurostat_query_dataset when a slice needs SQL analysis or has more rows than its preview, even if it is small. A smaller preview does not make the upstream match smaller. Reduce dimension or period coverage when the upstream refuses a large extraction; staging does not bypass Eurostat's extraction limits. An extraction Eurostat is still preparing (async_response from a query, async_queued from a download) is served when the identical call is repeated a few minutes later, so repeat it or narrow it.
When a call stages observations, the response carries canvasId and tableName. Call eurostat_dataframe_describe with that identifier as canvas_id for the staged table and column names before writing SQL, then eurostat_dataframe_query with a read-only query. Pass the same canvas_id back to a staging call to place further results beside the first; the tables expire with the canvas. Check that a table was actually returned rather than assuming every preview has a retained counterpart. Without the dataframe tools, narrow the request until the required observations can be obtained inline.
Bulk observations carry dimension codes without their label columns. To label them, use eurostat_get_dimension_values to stage the relevant dimension's code/label list on the existing canvas, describe the new table, and join on codes. A staged geo table holds every level, with a level column, unless geo_level was passed; filter level to the observations' level before joining or aggregating, because aggregates and regions overlap the countries they contain. A filtered inline value list does not imply that its staged table contains only that filter's matches.
First define the result's grain: which dimensions identify one row? Hold other dimensions fixed or retain them in grouping and join keys. Joining only on geography and time can multiply observations when either side still contains several units or indicators. Check key uniqueness before joining, and aggregate only measures that are meaningful to add; averaging or summing percentages and indices requires a justified interpretation.
Use SQL analysis patterns after describing the actual tables. Keep result completeness separate from data completeness: retrieving every SQL row cannot repair an incomplete bulk transfer or a statistically mismatched slice.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
eurostat-mcp-server@cyanheads is listed by cyanheads/cyanheads — review the source before installing
npx claudepluginhub cyanheads/cyanheads --plugin eurostat-mcp-serverOther plugins' skills for the same job