SCB MCP

by isakskogstad

Not rated
GitHub

About

Connect LLMs or AI-chatbots to let them query and interact with official data and statistics from SCB (Sweden Statistics)

Details

Author
isakskogstad
Categories
Database, Other

Setup

Install SCB MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/isakskogstad/SCB-MCP

Follow the installation instructions in the repository README, then restart your MCP client.

SCB MCP är server som LLM:s och AI-chatbotar kan använda för att söka, hitta och hämta officiell data och statistik från Statistikbyrån (SCB). Det omfattar 1 200+ statistiktabeller med data om befolkning & demografi, ekonomi & finans, miljö, arbetsmarknad, utbildning och transport. Perfekt för att bygga interaktiva instrumentpaneler, forskningsverktyg och utbildningsapplikationer.

The SCB MCP server provides seamless integration withStatistics Sweden's PxWebAPI 2.0, enabling LLM:s to access:

- Population & Demographics: Regional data, migrations, births, deaths (312+ regions)
- Economy & Finance: GDP, taxes, business statistics, national accounts
- Environment: Greenhouse gas emissions, water/waste management, sustainability metrics
- Labor Market: Employment, unemployment, occupational data, skills matching
- Education: Student statistics, course enrollments, skills development

Data ranges from 1950s to present (monthly/quarterly updates). Real-time population statistics updated to November 2025.

- Befolkning & demografi: Regionaldata, migrationer, födslar, dödsfall (312+ regioner)
- Ekonomi & finans: BNP, skatter, företagsstatistik, nationalräkenskaper
- Miljö: Växthusgaser, vatten/avfallshantering, hållbarhetsvärdena
- Arbetsmarknad: Sysselsättning, arbetslöshet, yrkesdata, kompetensmatchning
- Utbildning: Studentstatistik, kursanmälningar, kompetensutveckling

Servern körs lokalt via stdio. Klona, bygg och peka din MCP-klient motdist/index.js.

git clone https://github.com/isakskogstad/SCB-MCP.git cd SCB-MCP npm install npm run build
claude mcp add scb -- node /absolut/sökväg/till/SCB-MCP/dist/index.js

Claude Desktop / Codex / Gemini / Cursor (stdio)

Lägg till i klientens MCP-konfiguration (t.ex.~/Library/Application Support/Claude/claude_desktop_config.jsonför Claude Desktop):

{ "mcpServers": { "scb": { "command": "node", "args": ["/absolut/sökväg/till/SCB-MCP/dist/index.js"] } } }

The server runs locally over stdio. Clone, build, and point your MCP client todist/index.js.

git clone https://github.com/isakskogstad/SCB-MCP.git cd SCB-MCP npm install npm run build
claude mcp add scb -- node /absolute/path/to/SCB-MCP/dist/index.js

Claude Desktop / Codex / Gemini / Cursor (stdio)

{ "mcpServers": { "scb": { "command": "node", "args": ["/absolute/path/to/SCB-MCP/dist/index.js"] } } }
# Hitta befolkningsrelaterade tabeller results = scb.search_tables(query="befolkning statistik", limit=10) # Filtrera efter kategori results = scb.search_tables(query="miljö", category="environment", limit=5)
results = scb.search_tables(query="population", limit=10) results = scb.search_tables(query="environment", category="environment", limit=5)
# Lerum kommun region = scb.find_region_code(query="Lerum") # Returnerar: code="1441", name="Lerum" # Större regioner region = scb.find_region_code(query="Stockholm") # Returnerar: code="01" (län), code="0180" (kommun) # Fuzzy matching - fungerar utan svenska tecken region = scb.find_region_code(query="Goteborg") # Returnerar: code="1480", name="Göteborg"
region = scb.find_region_code(query="Lerum") region = scb.find_region_code(query="Stockholm") # Fuzzy matching - works without Swedish characters region = scb.find_region_code(query="Goteborg") # Returns: code="1480", name="Göteborg"
# Medelålder i Lerum 2024 data = scb.get_table_data( tableId="TAB637", selection={ "Region": ["1441"], "Kon": ["1+2"], "Tid": ["2024"], "ContentsCode": ["BE0101G9"] } ) # Resultat: Medelålder i Lerum 2024: 40.1 år
data = scb.get_table_data( tableId="TAB637", selection={ "Region": ["1441"], "Kon": ["1+2"], "Tid": ["2024"], "ContentsCode": ["BE0101G9"] } )
# Jämför två regioner över tid data = scb.get_table_data( tableId="TAB637", selection={ "Region": ["1441", "0180"], # Lerum och Stockholm "Kon": ["1+2"], "Tid": ["TOP(5)"], "ContentsCode": ["BE0101G9"] } ) # Stockholm: 41.0 år (2024), Lerum: 40.1 år (2024) # Trend: Stockholm åldras snabbare
data = scb.get_table_data( tableId="TAB637", selection={ "Region": ["1441", "0180"], # Lerum and Stockholm "Kon": ["1+2"], "Tid": ["TOP(5)"], "ContentsCode": ["BE0101G9"] } ) # Stockholm: 41.0 years (2024), Lerum: 40.1 years (2024)

- SCB-databas:https://www.scb.se/
- API-dokumentation:
https://www.scb.se/en/services/open-data-api/pxwebapi/
- Dataexplorer:
https://pxweb.scb.se/pxweb/en/

Slingshot MCP introduces Slingshot Aerospace’s space data platform in your AI chat—explore satellites, orbits, and Portal insights through Slingshot’s hosted server.

A modular server providing unified access to multiple astronomical datasets, including astroquery services and DESI data sources.

Access data on 261 countries and 13.4 million cities — population, GDP, geography, rankings, and comparisons. Built for Claude, Cursor, and AI agents.

A nutrition analysis platform integrating Canada's Food Guide recipes with Health Canada's official nutrition databases.

Interact with the Hugging Face Dataset Viewer API to browse, filter, and get statistics for datasets.

Access ERDDAP servers worldwide to search, discover, and retrieve oceanographic and environmental scientific datasets.

A Centralized MCP Server for Fetching Data from Many Countries' Govs

Provides seamless access to particle physics data from the Particle Data Group (PDG) for AI assistants and applications.

Access the Protein Data Bank (PDB) for 3D structures of proteins and nucleic acids, with tools for structural analysis and comparison.

H1B salary data, compensation benchmarks, and job market analysis

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.