@pipeworx/scb-se

Connect: https://gateway.pipeworx.io/scb-se/mcp · Install: one-click buttons

Tools: 6

Statistics Sweden (SCB) MCP — Swedish official statistics: figures from the PxWeb statistical database, plus what SCB has just published and what it is scheduled to publish next. Keyless.

Tools

Figures and table navigation (PxWeb API, api.scb.se)

  • subjects(path?) — navigate the subject tree (root or sub-path)
  • table_meta(path) — table definition (dimensions, valid values)
  • query_table(path, body) — request data from a table; body is a PxWeb query ({query: [{code, selection: ...}], response: {format: "json-stat2"}})
  • sweden_latest_figure(indicator, period?) — a Swedish headline statistic as a number in one call. Covers inflation (CPI annual change, percent) and cpi (index, 2020=100). Pinned to KPI2020M, because the similarly-named KPItotM froze at 2025M12 and would hand back a year-old figure.

Releases (SCB website, www.scb.se)

  • scb_se_statistical_news(days?, from?, to?, lang?, limit?) — statistical news releases (statistiknyheter) already published: headline, summary, date, statistical product, URL. Swedish by default; lang: "en" for English titles.
  • scb_se_publishing_calendar(period?, from?, to?, form?, subject_areas?, sort_field?, sort_order?, limit?) — the official publishing calendar: which statistical products are released on which date, with product code, reference period and publishing form. The only way to answer “what is SCB publishing next week”.

Auth

None. No API key on any endpoint. api.scb.se reports maxCallsPerTimeWindow: 30 per 10s window, CORS enabled, licence CC0. www.scb.se/robots.txt is User-agent: * / Disallow: — fully permissive.

Notes and traps

  • The release tools scrape HTML, not an API. www.scb.se serves both listings as HTML fragments; there is no documented contract, and the field shapes can change without notice. The tool descriptions say so rather than implying an API.
  • www.scb.se is a different host from api.scb.se and sits behind an F5 BIG-IP. It is reached with a browser User-Agent.
  • The publishing calendar is a GET. Four different POST body shapes all return HTTP 200 with a plausible 20-row table that silently ignores every parameter and serves the default “1 week ahead” — it passes a smoke test while answering the wrong question. The real contract is ?period=Custom&dateFrom=…&dateTo=…&form=3&subjectAreas=AM&sortOrder=1&sortField=2&paging=0, and dateFrom/dateTo are honoured only with period=Custom.
  • <h4>N hits</h4> in the calendar is the count on the current page (max 20), not the total. The total appears only as the high end of the last pagination range link.
  • The news datetime attribute differs by language path. /en/ stamps US M/D/YYYY h:mm:ss AM; the Swedish path stamps YYYY-MM-DD HH:MM:SS. Parsing only one yields an empty window, not an error.
  • News paging is 1-indexed (paging=0 → 404), 5 items per page, and the archive runs hundreds of pages deep, so the walk is bounded by the requested date window and a page cap.
  • The Atom feed at https://www.scb.se/Feed/statistiknyheter/ is well-formed but returns exactly 10 entries (~9 days) and ignores ?lang=en, so it is not used as the source.
  • PxWeb v2beta (https://api.scb.se/OV0104/v2beta/api/v2/tables?lang=en&pastDays=7) answers “which tables got new data” and is a separate question from either tool here. It carries no nextUpdate field — forward-looking scheduling exists only in the calendar.

Data sources

  • PxWeb API — https://api.scb.se/OV0104/v1/doris/en/ssd/
  • Statistical news — https://www.scb.se/hitta-statistik/statistiknyheter/ · https://www.scb.se/en/finding-statistics/statistical-news/
  • Publishing calendar — https://www.scb.se/en/finding-statistics/publishing-calendar/

Tools

  • 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
  • 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 kn
  • query_table — Pull data from a table. body is a PxWeb query object.
  • scb_se_statistical_news — What Statistics Sweden (SCB) has JUST PUBLISHED \u2014 the statistical news releases (statistiknyheter) from the last few days, with headline, summary, publication date and the statistical product eac
  • scb_se_publishing_calendar — What Statistics Sweden (SCB) is SCHEDULED to publish and when \u2014 the official publishing calendar (publiceringskalender), returning each upcoming release with its statistical product, product code
  • 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 C

Tools

  • query_table — Pull data from a table. body is a PxWeb query object.
  • scb_se_publishing_calendar — What Statistics Sweden (SCB) is SCHEDULED to publish and when u2014 the official publishing calendar (publiceringskalender), returning each upcoming release with its statistical product, product code,
  • scb_se_statistical_news — What Statistics Sweden (SCB) has JUST PUBLISHED u2014 the statistical news releases (statistiknyheter) from the last few days, with headline, summary, publication date and the statistical product each
  • 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
  • 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 r
  • 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 kno

Regenerated from source · build September 10, 2026