Statistics Sweden’s open data made available as an MCP server, using Python and FastMCP
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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.
The package on installation
See scb_opendata_mcp --help for available options. An stdio transport mechanism also exists.
Fallback option
In ~/.vibe/config.toml or ~/.vibe/agents/name_of_agent.toml:
In ~/.config/opencode/opencode.jsonc:
list_tables() - List all available statistical tables with paginationget_table_metadata(table_id) - Get detailed metadata including variablessearch_tables(query) - Convenience wrapper over list_tables, to search tables by name or descriptionget_table_data(table_id, filters) - Fetch data with optional filteringget_table_default_selection(table_id) - Get default data selection for a tablelist_codelists(table_id) - List all available codelists for the tableget_codelist(codelist_id) - Get specific codelist detailsget_saved_query(query_id) - Get a saved query including data and selection criteriaget_saved_query_data(query_id) - Get data from a specific saved queryget_saved_query_selection(query_id) - Get the selection query used in a specific saved querysave_query(table_id, selection) - Save a data querydelete_saved_query(query_id) - Delete a saved queryContributions are welcome! Please feel free to submit a Pull Request.
For issues or questions:
This is an unofficial companion repository SCB Open Data Skills that provides skill definitions for accessing Statistics Sweden's data through this MCP server. These skills are designed to work with major coding agent tools and provide workflows for various statistical domains.
This is an unofficial tool. The code was generated using AI while using official documents and the API specification as context. Tests are also added to verify the functionality. A thorough rigorous verification test is recommended before using it in any serious application.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/scb-opendata-mcp)<a href="https://allmcps.com/mcp/scb-opendata-mcp"><img src="https://allmcps.com/api/badge/scb-opendata-mcp?style=directory" alt="Scb Opendata Mcp on AllMCPs" /></a>