
Scb Mcp
io.github.isakskogstadPublished by GitHub account isakskogstadv2.5.3Updated Oct 27, 2026
MCP server for Statistics Sweden (SCB) - 1200+ tables with population, economy, environment data
Overview
Connects an assistant to Statistics Sweden's PxWebAPI, letting it search 1,200+ official statistical tables and fetch population, economy, environment, labour…
- What you can do
- Search statistical tables by keyword and category across 1,200+ SCB tables
- Resolve region names to official region codes, with fuzzy matching for names lacking Swedish characters
- Inspect a table's variables and value codes before querying
- Fetch table data for chosen regions, variables and time periods, with preview and TOP() limits for large selections
- When to use it
- Useful when you need official Swedish statistics — demographics, GDP, emissions, employment, education — for analysis, dashboards, research or educational material, and want the assistant to find the right table and pull the numbers itself.
- Requirements
- The manifest lists a remote endpoint at scb-mcp.onrender.com with no authentication, environment variables or headers. The README instead describes running it locally over stdio: clone the repository, install with npm and build, then point the MCP client at the built entry file. Network access to SCB's PxWebAPI is needed.
Installation
In SourceWeft
- Open Scb Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.isakskogstad%2Fscb-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config.
{
"mcpServers": {
"scb": {
"type": "http",
"url": "https://scb-mcp.onrender.com/mcp"
}
}
}README
📊 SCB MCP Server
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.
Översikt
🇬🇧 Overview
The SCB MCP server provides seamless integration with Statistics 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
🇬🇧 Key features (English)
Huvudfunktioner
🚀 Installation
Servern körs lokalt via stdio. Klona, bygg och peka din MCP-klient mot dist/index.js.
Claude Code (CLI)
Claude Desktop / Codex / Gemini / Cursor (stdio)
Lägg till i klientens MCP-konfiguration (t.ex. ~/Library/Application Support/Claude/claude_desktop_config.json för Claude Desktop):
🇬🇧 Installation (English)
The server runs locally over stdio. Clone, build, and point your MCP client to dist/index.js.
Claude Code (CLI)
Claude Desktop / Codex / Gemini / Cursor (stdio)
Användarguide
1. Sök efter statistiktabeller
🇬🇧 Usage guide (English)
1. Search for statistical tables
2. Hitta regionkoder
🇬🇧 Resolve region codes (English)
3. Hämta data
🇬🇧 Fetch data (English)
Best practices
🇬🇧 Best practices (English)
Praktiska exempel
Ex: Befolkningstrend Lerum vs Stockholm
🇬🇧 Example 1: Population trends (English)
Resurser
- 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/
Av: Isak Skogstad
Source: README.md at commit 4f07125
Tools
0Version history
1- v2.5.3LatestSep 16, 2026
Score
75% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listedRequired15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.