Server Details
MCP server for Statistics Sweden (SCB) - 1200+ tables with population, economy, environment data
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
- Repository
- isakskogstad/SCB-MCP
- GitHub Stars
- 5
- Server Listing
- SCB MCP Server
Available Tools
10 toolsscb_check_usageTry in Inspector
Check current API usage and rate limit status
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
scb_find_region_codeTry in Inspector
Find the exact region code for a specific municipality or area. Supports fuzzy matching (e.g., "Goteborg" matches "Göteborg").
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Municipality or region name (e.g., "Lerum", "Stockholm", "Goteborg") | |
| tableId | No | Optional: Specific table to search for region codes (ensures compatibility) | |
| language | No | Language code: "sv" (Swedish, recommended) or "en" (English) | sv |
scb_get_api_statusTry in Inspector
Get API configuration and rate limit information from Statistics Sweden
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
scb_get_table_dataTry in Inspector
Get statistical data from a table with optional filtering. Without selection, returns a smart default subset (latest time period, all categories). Use scb_preview_data for a quick preview first.
| Name | Required | Description | Default |
|---|---|---|---|
| tableId | Yes | Table ID (e.g., "TAB4552", "TAB4560") | |
| language | No | Language code: "sv" (Swedish, recommended) or "en" (English) | sv |
| selection | No | Optional variable selection. Format: {"VariableName": ["value1", "value2"]}. Use "*" for all values, "TOP(5)" for latest 5. If omitted, API uses smart defaults. |
scb_get_table_infoTry in Inspector
Get detailed metadata about a specific statistical table
| Name | Required | Description | Default |
|---|---|---|---|
| tableId | Yes | Table ID (e.g., "TAB4552", "TAB4560") | |
| language | No | Language code: "sv" (Swedish, recommended) or "en" (English) | sv |
scb_get_table_variablesTry in Inspector
Get available variables and their possible values for a table (essential before fetching data)
| Name | Required | Description | Default |
|---|---|---|---|
| tableId | Yes | Table ID (e.g., "TAB6534") | |
| language | No | Language code: "sv" (Swedish, recommended) or "en" (English) | sv |
| variableName | No | Optional: Show values for specific variable only (e.g., "region", "kön") |
scb_preview_dataTry in Inspector
Get a small preview of data (max ~50 rows) to verify table structure and selection before fetching full data. Safer than scb_get_table_data for initial exploration.
| Name | Required | Description | Default |
|---|---|---|---|
| tableId | Yes | Table ID (e.g., "TAB4552", "TAB4560") | |
| language | No | Language code: "sv" (Swedish, recommended) or "en" (English) | sv |
| selection | No | Optional variable selection (automatically limited to small sample). If omitted, uses smart defaults. |
scb_search_regionsTry in Inspector
Search for region codes by name (e.g., find code for "Lerum", "Stockholm"). Supports fuzzy matching for Swedish characters.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Region name to search for (e.g., "Lerum", "Stockholm", "Goteborg") | |
| language | No | Language code: "sv" (Swedish, recommended) or "en" (English) | sv |
scb_search_tablesTry in Inspector
Search for statistical tables in the SCB database. IMPORTANT: Swedish search terms give MUCH better results. Use "befolkning" not "population", "arbetslöshet" not "unemployment", "inkomst" not "income".
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search term - USE SWEDISH for best results. Examples: "befolkning" (population), "arbetslöshet" (unemployment), "inkomst" (income), "bostäder" (housing), "miljö" (environment). | |
| category | No | Filter by category: "population", "labour", "economy", "housing", "environment", "education", "health", "transport" | |
| language | No | Language code: "sv" (Swedish, recommended) or "en" (English) | sv |
| pageSize | No | Number of results per page (max 100) | |
| pastDays | No | Only show tables updated in the last N days | |
| pageNumber | No | Page number | |
| includeDiscontinued | No | Include discontinued tables |
scb_test_selectionTry in Inspector
Test if a data selection is valid without retrieving data (prevents API errors). Always use this before scb_get_table_data.
| Name | Required | Description | Default |
|---|---|---|---|
| tableId | Yes | Table ID (e.g., "TAB4552") | |
| language | No | Language code: "sv" (Swedish, recommended) or "en" (English) | sv |
| selection | No | Variable selection to test (optional). Format: { "VariableName": ["value1", "value2"] }. Empty selection will validate that defaults can be used. |
FAQ
How do I claim this server?
To claim this server, publish a /.well-known/glama.json file on your server's domain with the following structure:
The email address must match the email associated with your Glama account. Once verified, the server will appear as claimed by you.
What are the benefits of claiming a server?
- Control your server's listing on Glama, including description and metadata
- Receive usage reports showing how your server is being used
- Get monitoring and health status updates for your server
Your Connectors
Sign in to create a connector for this server.