Scb Opendata MCP server
io.github.ashwinvis/scb-opendata-mcp·v0.2.1·1 starsStatistics Sweden’s open data made available as an MCP server, using Python and FastMCP
1 stars18 downloads/wk
Reviews
Write oneNobody has reviewed Scb Opendata yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Scb Opendata tools (12, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
delete_saved_querywrite actionDelete a saved query.
get_codelistGet a specific codelist with all its values.
get_saved_queryGet a specific saved query.
get_saved_query_dataRetrieve data by running a saved query.
get_saved_query_selectionGet the selection criteria for a saved query.
get_table_dataget_table_default_selectionGet the default data selection for a table by id.
get_table_metadataGet detailed information about a specific statistical table.
list_codelistsList all available codelists for a particular table_id.
list_tablesList all available statistical tables from Statistics Sweden.
save_querySave a data query for later use.
search_tablesSearch statistical tables by name or description.
Public scan report
scanner v0.1.10 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan6 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 187 days ago4/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Scb Opendata compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 75/100
- higher than 45% of 48,255 servers
- Tools
- 12
- the typical server has 7
- Tools that change things
- 8%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 65% of 28,688 servers
- Downloads a week
- 18
- more than 5% of 12,191 servers with a package
What its tools let an agent do: 10 read · 1 create · 1 delete
Install Scb Opendata in Claude Code, Cursor or VS Code
claude mcp add scb-opendata-mcp -- uvx scb-opendata-mcp
What the publisher says
From the Scb Opendata repository's README, as published. We do not edit it. Read it on GitHub
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_mcpInstall 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 syncUsage
Running the server
The package on installation
scb_opendata_mcp
# Or with uv
uv run scb_opendata_mcpSee scbopendatamcp --help for available options. An stdio transport mechanism also exists.
Fallback option
uv run fastmcp run src/scb_opendata_mcp/server.py -t http # HTTP serverConfiguration for common agent harnesses
Claude Code
claude mcp add --scope user --transport http scb_opendata_mcp http://localhost:6767Mistral Vibe
In ~/.vibe/config.toml or ~/.vibe/agents/nameofagent.toml:
[[mcp_servers]]
name = "scb_opendata_mcp"
transport = "http"
url = "http://localhost:6767/mcp"OpenCode
In ~/.config/opencode/opencode.jsonc:
{
"mcp": {
"scb_opendata_mcp": {
"type": "remote",
"url": "https://localhost:6767/mcp",
"enabled": true
}
}
}Tools Available
Table Discovery
- list_tables() - List all available statistical tables with pagination
- gettablemetadata(table_id) - Get detailed metadata including variables
- searchtables(query) - Convenience wrapper over listtables, to search tables by name or description
Data Retrieval
- gettabledata(table_id, filters) - Fetch data with optional filtering
- gettabledefaultselection(tableid) - Get default data selection for a table
Codelist Tools
- listcodelists(tableid) - List all available codelists for the table
- getcodelist(codelistid) - Get specific codelist details
Saved Query Tools
- getsavedquery(query_id) - Get a saved query including data and selection criteria
- getsavedquerydata(queryid) - Get data from a specific saved query
- getsavedqueryselection(queryid) - Get the selection query used in a specific saved query
- savequery(tableid, selection) - Save a data query
- deletesavedquery(query_id) - Delete a saved query
Development
Running Tests
uv run pytestContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License
Support
For issues or questions:
- Review the OpenAPI specification or alternatively from .
- Visit Statistics Sweden API documentation:
- På svenska:
- In English:
SCB Open Data Skills
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.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Scb Opendata: common questions
- Is Scb Opendata MCP server safe?
- Mostly: it is graded B (75/100). Read the Scb Opendata safety report
- How do I install Scb Opendata?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Scb Opendata need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Scb Opendata maintained?
- The last commit was 225 days ago (2026-03-24). The latest release is v0.2.1.
- How does Scb Opendata compare with other MCP servers?
- safety score 75/100 (higher than 45% of 48,255 servers); tools 12 (the typical server has 7); tools that change things 8% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.