Scb Se
v0.2.1Statistics Sweden PxWeb MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
subjects
CATALOGUE of what Statistics Sweden (SCB) publishes — the subject tree of Swedish official statistics, returned as a browsable list of subjects and table paths. Use when the question is which Swedish statistics exist or where a table lives, then scb_se_table_meta and scb_se_query_table to read figures from it. For a Swedish figure itself — inflation, CPI, and the value for a given month — sweden_latest_figure answers in one call. This listing carries no observations and no time period, so it cannot answer a question that names a month or a year. Sweden only: Canadian figures are statcan,…
| Parameter | Type | Description |
|---|---|---|
path | string | Sub-path under /ssd/ (default empty = root). |
table_meta
Dimension definitions and valid filter values for one Statistics Sweden (SCB) table of SWEDISH official statistics (e.g. "BE/BE0101/BE0101A/BefolkningNy"). Required before scb_se_query_table so you know which codes to pass. Find the table path with scb_se_subjects first.
| Parameter | Type | Description |
|---|---|---|
path * | string | e.g. "BE/BE0101/BE0101A/BefolkningNy" |
query_table
Pull data from a table. body is a PxWeb query object.
| Parameter | Type | Description |
|---|---|---|
body * | object | {query: [{code, selection: {filter, values}}], response: {format: "json-stat2"}} |
path * | string |
scb_se_statistical_news
What Statistics Sweden (SCB) has JUST PUBLISHED — the statistical news releases (statistiknyheter) from the last few days, with headline, summary, publication date and the statistical product each belongs to. Answers "vilka statistiknyheter har SCB publicerat de senaste 3 dagarna", "what did Statistics Sweden publish this week", "senaste statistiknyheterna från SCB". Swedish headlines by default; pass lang="en" for the English titles. For releases still to come rather than already out, use scb_se_publishing_calendar. Read from the SCB website listing, so the field shapes depend on SCB marku…
| Parameter | Type | Description |
|---|---|---|
days | number | How many days back from today, e.g. 3 for "de senaste 3 dagarna". Default 7. Ignored when from/to are given. |
from | string | Start of the window as YYYY-MM-DD, e.g. "2026-08-07". |
lang | string | "sv" (default) for Swedish headlines, "en" for English. |
limit | number | Maximum news items to return. Default 50, max 200. |
to | string | End of the window as YYYY-MM-DD. Defaults to today. |
scb_se_publishing_calendar
What Statistics Sweden (SCB) is SCHEDULED to publish and when — the official publishing calendar (publiceringskalender), returning each upcoming release with its statistical product, product code, reference period, publishing form and publishing date. Answers "what is SCB releasing next week", "när publicerar SCB KPI", "which Swedish statistics come out in September". Also reads backwards over a date range you name, to list what was released between two dates. For the text of releases already out, use scb_se_statistical_news. Read from the SCB website calendar listing, so the field shapes d…
| Parameter | Type | Description |
|---|---|---|
form | string | Publishing form: 0 all (default), 1 Database, 2 Publication, 3 Statistical news, 4 Tables and graphs. Words work too, e.g. "statistical news". |
from | string | Start date as YYYY-MM-DD. Supplying from/to selects the Custom period automatically; date ranges are honoured only in that mode. |
limit | number | Maximum releases to return. Default 40, max 200. |
period | string | Forward1Week (default), Forward1Month, Forward3Months, Forward6Months, Forward1Year, Previous1Week, or Custom. Plain phrasings like "next month" are understood. |
sort_field | string | 1 product name, 2 publishing date (default), 3 publisher. |
sort_order | string | 0 ascending (default), 1 descending. |
subject_areas | string | Comma-separated two-letter SCB subject-area codes to restrict to, e.g. "AM" (labour market), "PR" (prices), "BE" (population), "NR" (national accounts). |
to | string | End date as YYYY-MM-DD. Required together with "from". |
sweden_latest_figure
A Swedish headline statistic as a NUMBER, for the latest month or for a month you name — "what is inflation in Sweden", "Swedish CPI in June 2026". One call — "what is inflation in Sweden", "Swedish CPI right now". Returns the figure, its unit, the exact month it refers to, and the SCB table it came from. Use this when the question asks for a number; use scb_se_subjects only when the question asks what statistics exist. Covers Swedish consumer prices today: inflation (CPI annual change) and the CPI index level.
| Parameter | Type | Description |
|---|---|---|
indicator * | string | Which figure: "inflation" for the CPI annual change in percent, or "cpi" for the CPI index level (2020=100). Common phrasings are understood — "inflation rate", "consumer prices", "kpi". |
period | string | Optional month, as "2026M06" or "2026-06" or "June 2026". Omit for the most recent published month. If the month you name has not been published yet, the response says so and names the latest month th… |