Labsco
MCP SERVER

Query Statistics Sweden's 1,200+ official tables — population, economy, environment, labour, education — with region names resolved to codes and fuzzy matching for missing Swedish characters.

Economic, Alternative & Prediction-Market Data
Summary
Region-code resolution is why this beats calling the API yourself.

PxWebAPI is queryable but unforgiving: every table has its own variable codes and every municipality is a number. Resolving "Lerum" to 1441 and tolerating "Goteborg" without the umlaut removes the step where a query silently returns the wrong place. The documented working order — check variables, preview, then fetch — is worth following; the README is primarily Swedish with English sections folded in.

What it is

An MCP server over Statistics Sweden's PxWebAPI 2.0. It handles the two things that make official statistics hard to query from a conversation: finding the right table among more than a thousand, and turning a place name into the code the API expects.

What you get
  • Statistical tables found by natural-language query, with an optional category filter and a result limit — `search_tables`
  • Place names resolved to region codes — `find_region_code` returns "1441" for Lerum, "1480" for Göteborg, and both the county and municipality codes for Stockholm
  • Fuzzy matching that works without Swedish characters — "Goteborg" matches "Göteborg", "Malmo" matches "Malmö"
  • Table data fetched by ID with a selection object over Region, Kon, Tid and ContentsCode — `get_table_data`, with `"TOP(5)"` and wildcards supported for time periods
  • A table's variables and their valid codes listed before you query, since codes vary between tables — `get_table_variables`
  • A cheap preview to test a selection before pulling a large dataset — `preview_data`
  • Coverage across 312+ regions and 75+ years of history, with monthly and quarterly updates, in Swedish or English
Requirements

No account and no key — SCB's data is open. The server runs locally over stdio: clone the repository, `npm install`, `npm run build`, then `claude mcp add scb -- node /absolute/path/to/SCB-MCP/dist/index.js`, or the equivalent `mcpServers` block pointing at `dist/index.js`. Version 2.5.3, published to the MCP Registry, speaking MCP 2025-03-26. Rate limiting is 30 requests per 10 seconds, and all tools default to Swedish for the best search results.

Setup effort

Build from source — clone the repository and build it, then point your client at the binary