{
  "markdown": "# @pipeworx/scb-se\n\n[Statistics Sweden (SCB)](https://www.scb.se) MCP — Swedish official statistics: figures from the\nPxWeb statistical database, plus what SCB has just published and what it is scheduled to publish\nnext. Keyless.\n\nPart of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1476+ live data sources.\n\n## Tools\n\n**Figures and table navigation** (PxWeb API, `api.scb.se`)\n\n- `subjects(path?)` — navigate the subject tree (root or sub-path)\n- `table_meta(path)` — table definition (dimensions, valid values)\n- `query_table(path, body)` — request data from a table; `body` is a PxWeb query (`{query: [{code, selection: ...}], response: {format: \"json-stat2\"}}`)\n- `sweden_latest_figure(indicator, period?)` — a Swedish headline statistic as a number in one call.\n  Covers `inflation` (CPI annual change, percent) and `cpi` (index, 2020=100). Pinned to `KPI2020M`,\n  because the similarly-named `KPItotM` froze at 2025M12 and would hand back a year-old figure.\n\n**Releases** (SCB website, `www.scb.se`)\n\n- `scb_se_statistical_news(days?, from?, to?, lang?, limit?)` — statistical news releases\n  (*statistiknyheter*) already published: headline, summary, date, statistical product, URL.\n  Swedish by default; `lang: \"en\"` for English titles.\n- `scb_se_publishing_calendar(period?, from?, to?, form?, subject_areas?, sort_field?, sort_order?, limit?)`\n  — the official publishing calendar: which statistical products are released on which date, with\n  product code, reference period and publishing form. The only way to answer \"what is SCB publishing\n  next week\".\n\n## Auth\n\nNone. No API key on any endpoint. `api.scb.se` reports `maxCallsPerTimeWindow: 30` per 10s window,\nCORS enabled, licence **CC0**. `www.scb.se/robots.txt` is `User-agent: * / Disallow:` — fully\npermissive.\n\n## Notes and traps\n\n- **The release tools scrape HTML, not an API.** `www.scb.se` serves both listings as HTML\n  fragments; there is no documented contract, and the field shapes can change without notice. The\n  tool descriptions say so rather than implying an API.\n- **`www.scb.se` is a different host from `api.scb.se`** and sits behind an F5 BIG-IP. It is\n  reached with a browser User-Agent.\n- **The publishing calendar is a GET.** Four different POST body shapes all return HTTP 200 with a\n  plausible 20-row table that silently ignores every parameter and serves the default \"1 week\n  ahead\" — it passes a smoke test while answering the wrong question. The real contract is\n  `?period=Custom&dateFrom=…&dateTo=…&form=3&subjectAreas=AM&sortOrder=1&sortField=2&paging=0`,\n  and `dateFrom`/`dateTo` are honoured **only** with `period=Custom`.\n- **`<h4>N hits</h4>` in the calendar is the count on the current page (max 20), not the total.**\n  The total appears only as the high end of the last pagination range link.\n- **The news `datetime` attribute differs by language path.** `/en/` stamps US `M/D/YYYY h:mm:ss AM`;\n  the Swedish path stamps `YYYY-MM-DD HH:MM:SS`. Parsing only one yields an empty window, not an error.\n- **News paging is 1-indexed** (`paging=0` → 404), 5 items per page, and the archive runs hundreds of\n  pages deep, so the walk is bounded by the requested date window and a page cap.\n- The Atom feed at `https://www.scb.se/Feed/statistiknyheter/` is well-formed but returns exactly 10\n  entries (~9 days) and ignores `?lang=en`, so it is not used as the source.\n- PxWeb **v2beta** (`https://api.scb.se/OV0104/v2beta/api/v2/tables?lang=en&pastDays=7`) answers\n  \"which tables got new data\" and is a separate question from either tool here. It carries no\n  `nextUpdate` field — forward-looking scheduling exists only in the calendar.\n\n## Data sources\n\n- PxWeb API — `https://api.scb.se/OV0104/v1/doris/en/ssd/`\n- Statistical news — `https://www.scb.se/hitta-statistik/statistiknyheter/` · `https://www.scb.se/en/finding-statistics/statistical-news/`\n- Publishing calendar — `https://www.scb.se/en/finding-statistics/publishing-calendar/`\n\n## Quick Start\n\nAdd to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):\n\n```json\n{\n  \"mcpServers\": {\n    \"scb-se\": {\n      \"url\": \"https://gateway.pipeworx.io/scb-se/mcp\"\n    }\n  }\n}\n```\n\n### What this endpoint actually serves\n\n`tools/list` at `https://gateway.pipeworx.io/scb-se/mcp` returns the tools in the table\nabove **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,\n`discover_tools`, `search_within`, `remember`/`recall` and the rest of the\ngateway-wide set. So the tool count you see is larger than this table: a\nsingle-pack endpoint currently lists roughly 30 shared tools alongside the\npack's own. The connection's `initialize` response states its exact scope, and\nis the authoritative answer for a given day.\n\nThis is deliberate, not multiplexing by accident. The meta-tools are what let a\nscoped connection answer a question this pack does not cover — via\n`ask_pipeworx`, which routes across the whole catalog — without you adding a\nsecond MCP server. There is currently no way to mount a pack endpoint without\nthem; if the extra schemas cost you more context than the routing is worth,\nconnect to the full gateway once rather than to several pack endpoints.\n\nOr connect to the full Pipeworx gateway to get every pack's tools listed\ndirectly, instead of just this one's:\n\n```json\n{\n  \"mcpServers\": {\n    \"pipeworx\": {\n      \"url\": \"https://gateway.pipeworx.io/mcp\"\n    }\n  }\n}\n```\n\nBoth URLs reach the same gateway and the same 1476+ data sources. The\nonly difference is which pack's tools are listed **directly**; `ask_pipeworx`\nreaches all of them from either one.\n\n## Using with ask_pipeworx\n\nInstead of calling tools directly, you can ask questions in plain English —\nthis works on the pack endpoint above as well as on the full gateway:\n\n```\nask_pipeworx({ question: \"your question about Scb Se data\" })\n```\n\nThe gateway picks the right tool and fills the arguments automatically.\n\n## More\n\n- [Docs and guides](https://pipeworx.io/docs)\n- [pipeworx.io](https://pipeworx.io)\n\n## License\n\nMIT\n",
  "bytes": 5998,
  "sha": "e77023ef8b665056c84a4c87ef1965f44c4d6f78697f9be27fbd4774a14866c2",
  "repo_slug": "pipeworx-io/mcp-scb-se",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_pipeworx_io_scb_se_e445a291/readme"
}