Skip to content
Agentmart
Submit a tool

Scb Opendata MCP

Statistics Sweden’s open data made available as an MCP server, using Python and FastMCP

Connector by ashwinvis · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 1
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/ashwinvis-scb-opendata-mcp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Statistics Sweden’s open data made available as an MCP server, using Python and FastMCP

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
10 read · 1 write · 1 delete
Secrets
None asked for
Install scripts
Not scanned yet
Runs as
Python package

Tools by what they do 12

Read from the source code; the running server may list different tools.

Read 10 · Look things up without changing anything.

  • get_codelist
  • get_saved_query
  • get_saved_query_data
  • get_saved_query_selection
  • get_table_data
  • get_table_default_selection
  • get_table_metadata
  • list_codelists
  • list_tables
  • search_tables

Write 1 · Create, change, send or run things.

  • save_query

Delete 1 · Delete, drop, revoke or wipe things.

  • delete_saved_query

Tools (12)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • delete_saved_query

    Delete a saved query. Remove a previously saved query and its associated data. Args: query_id: The ID of the saved query to delete lang: Language for responses ('en' or 'sv'). Defaults to 'en'. Returns: Dictionary confirming the deletion. Example: Delete a saved query: ``` delete_saved_query("my-query-123") ```

  • get_codelist

    Get a specific codelist with all its values. Codelists map codes to human-readable labels. For example, region code "01" maps to "Stockholm". Use this to understand what values are valid for filtering. Args: codelist_id: The ID of the codelist lang: Language for responses ('en' or 'sv'). Defaults to 'en'. Returns: Dictionary containing: - id: Codelist identifier - label: Codelist name - codes: List of code-value pairs - variables: Variables this codelist applies to Example: Get codelist on aggregated Age intervals: ``` get_codelist("agg_Ålder10år_1")…

  • get_saved_query

    Get a specific saved query. Retrieve the data selection and results from a previously saved query. Args: query_id: The ID of the saved query lang: Language for responses ('en' or 'sv'). Defaults to 'en'. Returns: Dictionary containing: - id: Query identifier - label: Query name - tableId: ID of the table this query applies to - selection: The data selection criteria - data: The retrieved data Example: Get a saved query: ``` get_saved_query("my-query-123") ```

  • get_saved_query_data

    Retrieve data by running a saved query. This tool executes a previously saved query and returns the resulting data. Use this to get the actual statistical data from a saved query without having to respecify all the selection criteria. Args: query_id: The ID of the saved query lang: Language for responses ('en' or 'sv'). Defaults to 'en'. output_format: Output format for the data (json-stat2, csv, xlsx, etc.) output_format_params: Optional parameters for the output format Returns: Dataset containing the query results according to the JSON-stat 2.0 Dataset Schema. Example…

  • get_saved_query_selection

    Get the selection criteria for a saved query. This tool returns the selection criteria (variable filters and placements) that were used to create a saved query. The selection expressions are transformed into actual value codes. Args: query_id: The ID of the saved query lang: Language for responses ('en' or 'sv'). Defaults to 'en'. Returns: SelectionResponse containing the selection criteria that would be applied when running the saved query. Example: Get selection criteria for a saved query: ``` get_saved_query_selection("my-query-123") ```

  • get_table_data

    Retrieve statistical data from a table with optional filtering. It can be useful to explore using `get_table_metadata` and `get_table_default_selection` before executing this tool. This is the main tool for fetching actual data. You can specify which dimensions/variables you want to include using filter parameters. Args: table_id: The ID of the table to retrieve data from lang: Language for responses ('en' or 'sv'). Defaults to 'en'. selection: Optional payload for custom selection. It can be a list of dictionaries containing the fields `variableCode` and either …

  • get_table_default_selection

    Get the default data selection for a table by id. This shows you what data would be returned if you made a basic query without specifying any filters. Useful for understanding typical usage of a table. Args: table_id: The ID of the table lang: Language for responses ('en' or 'sv'). Defaults to 'en'. Returns: Dictionary containing the default selection criteria and expected data structure. Example: Get default selection for employment table: ``` get_table_default_selection("BE0101A") ```

  • get_table_metadata

    Get detailed information about a specific statistical table. This tool provides metadata for a specific table including its dimensions, size, and other key information. Use this to understand what data a table contains before retrieving it. Args: table_id: The ID of the table lang: Language for responses ('en' or 'sv'). Defaults to 'en'. default_selection: Whether to include default selection as specified in `get_table_default_selection` tool. saved_query: Optional saved query ID to apply codelist: Optional codelist to apply. If needed, use `list_codelists` to check for a…

  • list_codelists

    List all available codelists for a particular table_id. Codelists define the values that can take. They allow you to group or categorize data in different ways (e.g., by county instead of municipality). Args: table_id: The ID of the table to retrieve data from lang: Language for responses ('en' or 'sv'). Defaults to 'en'. Returns: Dictionary containing: - codelists: List of codelist information - page: Current page number - total_pages: Total number of pages - total_hits: Total number of codelists Example: List all codelists: ``` list_codelists('TAB…

  • list_tables

    List all available statistical tables from Statistics Sweden. This tool allows you to browse the 5,155 statistical tables covering employment, labor costs, wages, and other economic data. You can filter by search query, limit to recently updated tables, and control pagination. Args: lang: Language for responses ('en' or 'sv'). Defaults to 'en'. query: Search query to filter tables by name or description. past_days: Only show tables updated in the last N days. include_discontinued: Include discontinued tables in results. page_number: Page number for pagination (1-based). …

  • save_query

    Save a data query for later use. This allows you to store a specific data selection so you can quickly retrieve the same data later. The saved query includes both the selection criteria and the retrieved data. Args: table_id: The ID of the table selection: The data selection criteria (variable filters) lang: Language for responses ('en' or 'sv'). Defaults to 'en'. output_format: Optional output format. If not specified, defaults to 'json-stat2'. Available formats can be retrieved using `get_api_config()`. output_format_params: Optional parameters for the output fo…

  • search_tables

    Search statistical tables by name or description. This is a convenience wrapper around list_tables that focuses on the search functionality. Use this when you want to quickly find tables matching specific keywords. Args: query: Search query to filter tables lang: Language for responses ('en' or 'sv'). Defaults to 'en'. page_number: Page number for pagination (1-based). page_size: Number of results per page (max 100). Returns: Dictionary containing search results with tables matching the query. Example: Search for wage tables: ``` search_tables("wage statisti…

Signals

Stars
1
Forks
0
Open issues
0
Weekly downloads
39
Last commit
Mar 24, 2026 (7 months ago)
Last release
Mar 24, 2026 (7 months ago)
Last package publish
Mar 24, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026) and the package registry.

Details

Registry name
io.github.ashwinvis/scb-opendata-mcp
Version
0.2.1
Auth
No auth
Packages
pypi scb-opendata-mcp
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 25, 2026
Cite this page

Scb Opendata MCP. Agent Mart. https://agentmart.dev/connectors/ashwinvis-scb-opendata-mcp (last updated 2026-10-25)