scb-mcp

inooLabs/scb-mcp

3.2

If you are the rightful owner of scb-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

An MCP server providing access to Statistics Sweden's official statistical database via the SCB PX-Web API v2.

Tools
11
Resources
0
Prompts
0

SCB MCP Server

An MCP (Model Context Protocol) server that provides access to the SCB PX-Web API v2, Statistics Sweden's official statistical database.

What it does

This server exposes tools for querying Swedish national statistics, including:

  • Population and demographics
  • Labor market and employment
  • Economy and income
  • Housing and construction
  • Education statistics

Running locally

pip install -r requirements.txt
python server.py

The server runs on port 8000 using streamable HTTP transport.

Docker

docker build -t scb-mcp .
docker run -p 8000:8000 scb-mcp

Or with docker-compose:

docker-compose up

Available tools

ToolDescription
scb_browse_foldersNavigate the virtual folder structure by subject areas
scb_search_tablesSearch for tables by keyword with optional category filter
scb_get_table_infoGet detailed metadata for a specific table
scb_get_table_variablesList variables and sample values for a table
scb_test_selectionValidate a selection before fetching data
scb_preview_dataFetch a safe, limited preview of data
scb_get_table_dataRetrieve full table data with selection filters
scb_find_region_codeResolve municipality/region names to SCB codes
scb_search_regionsFind region-related tables
scb_get_api_statusGet API config and rate limit status
scb_check_usageCheck current rate limit window usage

Data source

All data comes from the public SCB API at https://api.scb.se/OV0104/v2beta/api/v2. No authentication required.