Statistics Sweden’s open data made available as an MCP server, using Python and FastMCP
MCPpedia last refreshed this data
SCB OpenData MCP Server is an MCP server that statistics Sweden’s open data made available as an MCP server, using Python and FastMCP. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 73/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"io-github-ashwinvis-scb-opendata-mcp": {
"args": [
"scb-opendata-mcp"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Statistics Sweden’s open data made available as an MCP server, using Python and FastMCP
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
uvx 'scb-opendata-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked scb-opendata-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in analytics
Ask your agent about your own Apple Health data: 194 metrics, 22 tools, local, 0 deps.
MCP server for Dynatrace Managed to access logs, events, and metrics.
Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
Read and manage Churnkey cancel flows, retention metrics, and payment recovery
MCP Security Weekly
Get CVE alerts and security updates for SCB OpenData MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
pip install scb-opendata-mcp
# Or with uv
uvx scb_opendata_mcp
# 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
The package on installation
scb_opendata_mcp
# Or with uv
uv run scb_opendata_mcp
See scb_opendata_mcp --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 server
claude mcp add --scope user --transport http scb_opendata_mcp http://localhost:6767
In ~/.vibe/config.toml or ~/.vibe/agents/name_of_agent.toml:
[[mcp_servers]]
name = "scb_opendata_mcp"
transport = "http"
url = "http://localhost:6767/mcp"
In ~/.config/opencode/opencode.jsonc:
{
"mcp": {
"scb_opendata_mcp": {
"type": "remote",
"url": "https://localhost:6767/mcp",
"enabled": true
}
}
}
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 queryuv run pytest
Contributions 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.