
Scb Opendata Mcp
Brings Statistics Sweden's PxWebApi v2 into Claude's toolset, exposing over 5,000 statistical tables on employment, wages, labor costs, and other civil data. You get table discovery with search, data retrieval with filtering, codelist lookups for valid filter values, and saved query management for frequently used selections. Built with FastMCP and includes pagination for large datasets plus bilingual support for English and Swedish. Reach for this when you need authoritative Swedish government statistics in your analysis workflows. The repository includes companion skill definitions for common statistical tasks, though this is an unofficial implementation generated with AI assistance.
- GitHub stars
- 1
- tools
- 12
- transport
- STDIO
- last updated
- Mar 24, 2026
Tools
12 toolsPublic tool metadata for what this MCP can expose to an agent.
list_tablesList all available statistical tables with pagination
List all available statistical tables with pagination
No parameter schema in public metadata yet.
get_table_metadataGet detailed metadata including variables
Get detailed metadata including variables
No parameter schema in public metadata yet.
search_tablesConvenience wrapper over list_tables, to search tables by name or description
Convenience wrapper over list_tables, to search tables by name or description
No parameter schema in public metadata yet.
get_table_dataFetch data with optional filtering
Fetch data with optional filtering
No parameter schema in public metadata yet.
get_table_default_selectionGet default data selection for a table
Get default data selection for a table
No parameter schema in public metadata yet.
list_codelistsList all available codelists for the table
List all available codelists for the table
No parameter schema in public metadata yet.
get_codelistGet specific codelist details
Get specific codelist details
No parameter schema in public metadata yet.
get_saved_queryGet a saved query including data and selection criteria
Get a saved query including data and selection criteria
No parameter schema in public metadata yet.
get_saved_query_dataGet data from a specific saved query
Get data from a specific saved query
No parameter schema in public metadata yet.
get_saved_query_selectionGet the selection query used in a specific saved query
Get the selection query used in a specific saved query
No parameter schema in public metadata yet.
save_querySave a data query
Save a data query
No parameter schema in public metadata yet.
delete_saved_queryDelete a saved query
Delete a saved query
No parameter schema in public metadata yet.
Sponsors
Readme
MCP Server for Statistics Sweden (SCB) API
A FastMCP server that provides access to Statistics Sweden's PxWebApi v2, offering statistical tables covering employment, labor costs, wages, and other civil data from Sweden.
Features
- Table Discovery: Browse and search 5,155 statistical tables
- Data Retrieval: Fetch statistical data with optional filtering
- Codelists: Access code lists for valid filter values
- Saved Queries: Save and retrieve frequently used queries
- Pagination: Handle large result sets efficiently
- Language Support: English and Swedish
- Error Handling: Robust error handling with retry logic
Installation
Prerequisites
- Python 3.11 or higher
- pip or uv package manager
Install from PyPI
pip install scb-opendata-mcp
# Or with uv
uvx scb_opendata_mcp
Install from source
# Clone the repository
git clone https://github.com/ashwinvis/scb-opendata-mcp.git
cd scb-opendata-mcp
# Install dependencies
pip install .
# Or with uv
uv sync
Usage
Running the server
Details
- Repository
- github.com/ashwinvis/scb-opendata-mcp
- Category
- Data & Analytics
- Package
scb-opendata-mcp- Transport
- STDIO
- Registry
- MCP registry, active