ashwinvis avatar

Scb Opendata Mcp

ashwinvis/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 tools

Public 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

PyPI

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


View the full README on GitHub

Details

Repository
github.com/ashwinvis/scb-opendata-mcp
Category
Data & Analytics
Package
scb-opendata-mcp
Transport
STDIO
Registry
MCP registry, active

Related Data & Analytics MCP servers

View all
1bamwor-dev avatarBamwor Mcp Serverbamwor-dev/bamwor-mcp-serverWorld geographic data for AI agents: 261 countries, 5.2M cities, rankings, and 9 indexes.1stars
2bullrundata avatarMarket Intelligence Mcpbullrundata/market-intelligence-mcpRecession probability, capital rotation scoring, and economic data API1stars
3carvectorio avatarCarvector Mcpcarvectorio/carvector-mcpVehicle specs, federal recalls, complaints, TSBs, investigations and OBD-II DTC data for AI agents.1stars
4chrischall avatarSetlist Mcpchrischall/setlist-mcpsetlist.fm concert data for Claude — setlists, artists, venues, tours, and cities1stars
5cloudcorprecords avatarScholardatacloudcorprecords/scholardataGoogle Scholar as JSON: scholarly search results, case-law opinions and citation formats.1stars
6kdraigo avatarkdraigokdraigo/kdraigo_mcpYour AI writes Go trading strategies; kdraigo backtests them on one-minute Binance and Bybit data.1stars