Skip to main content
Glama

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 tools
scb_check_usageTry in Inspector

Check current API usage and rate limit status

ParametersJSON Schema
NameRequiredDescriptionDefault

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").

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesMunicipality or region name (e.g., "Lerum", "Stockholm", "Goteborg")
tableIdNoOptional: Specific table to search for region codes (ensures compatibility)
languageNoLanguage code: "sv" (Swedish, recommended) or "en" (English)sv
scb_get_api_statusTry in Inspector

Get API configuration and rate limit information from Statistics Sweden

ParametersJSON Schema
NameRequiredDescriptionDefault

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
tableIdYesTable ID (e.g., "TAB4552", "TAB4560")
languageNoLanguage code: "sv" (Swedish, recommended) or "en" (English)sv
selectionNoOptional 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

ParametersJSON Schema
NameRequiredDescriptionDefault
tableIdYesTable ID (e.g., "TAB4552", "TAB4560")
languageNoLanguage 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)

ParametersJSON Schema
NameRequiredDescriptionDefault
tableIdYesTable ID (e.g., "TAB6534")
languageNoLanguage code: "sv" (Swedish, recommended) or "en" (English)sv
variableNameNoOptional: 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
tableIdYesTable ID (e.g., "TAB4552", "TAB4560")
languageNoLanguage code: "sv" (Swedish, recommended) or "en" (English)sv
selectionNoOptional 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesRegion name to search for (e.g., "Lerum", "Stockholm", "Goteborg")
languageNoLanguage 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".

ParametersJSON Schema
NameRequiredDescriptionDefault
queryNoSearch term - USE SWEDISH for best results. Examples: "befolkning" (population), "arbetslöshet" (unemployment), "inkomst" (income), "bostäder" (housing), "miljö" (environment).
categoryNoFilter by category: "population", "labour", "economy", "housing", "environment", "education", "health", "transport"
languageNoLanguage code: "sv" (Swedish, recommended) or "en" (English)sv
pageSizeNoNumber of results per page (max 100)
pastDaysNoOnly show tables updated in the last N days
pageNumberNoPage number
includeDiscontinuedNoInclude 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
tableIdYesTable ID (e.g., "TAB4552")
languageNoLanguage code: "sv" (Swedish, recommended) or "en" (English)sv
selectionNoVariable 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:

{ "$schema": "https://glama.ai/mcp/schemas/connector.json", "maintainers": [ { "email": "your-email@example.com" } ] }

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
Try in Browser

Your Connectors

Sign in to create a connector for this server.