# scb-mcp

Connects AI assistants to Statistics Sweden through PxWebAPI 2.0. Fetches official Swedish demographic, economic, and environmental metrics covering data from the 1950s onward.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 9
- Author: isakskogstad
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/isakskogstad/SCB-MCP
- Updated: 2026-04-22
- HTML: https://affpapa.org/en/nevibecode/mcp/scb-mcp

## What it does

This MCP server links language models directly to Statistics Sweden (SCB) public data. It exposes more than 1,200 statistical tables across 312 Swedish regions. Datasets cover population shifts, national accounts, employment, and greenhouse gas metrics. Records span from the 1950s up to November 2025.

Built-in tools resolve administrative region codes and handle fuzzy spelling. Typing "Goteborg" without diacritics still resolves to Göteborg code 1480. Search runs in Swedish by default. Because of this Swedish baseline, searching directly in Swedish yields better table matches than English keywords.

The underlying API enforces a rate limit of 30 requests per 10 seconds. Heavy automated scraping will hit this threshold quickly. The server runs either locally via Node.js or through a hosted HTTP endpoint.

## Requirements
- Remote server: `https://scb-mcp.onrender.com/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http scb-mcp https://scb-mcp.onrender.com/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add scb-mcp --url https://scb-mcp.onrender.com/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "scb-mcp": {
            "url": "https://scb-mcp.onrender.com/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "scb-mcp": {
            "type": "http",
            "url": "https://scb-mcp.onrender.com/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http scb-mcp https://scb-mcp.onrender.com/mcp
```

## When to use it
- retrieve official Swedish population and migration statistics
- convert city and municipality names into SCB region codes
- fetch historical economic indicators and national accounts
- pull Swedish labor market and unemployment trends

## Example prompts
- Search for Swedish population change tables covering Stockholm municipality.
- Find the official region code for Lerum using the SCB tool.
- Get quarterly unemployment statistics in Sweden for the past two years.

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89609
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89899
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40459
- [dbx](https://affpapa.org/en/nevibecode/mcp/dbx.md) — MCP server · ★ 27844
- [Metabase](https://affpapa.org/en/nevibecode/mcp/metabase.md) — MCP server · ★ 49863

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
