socialstyrelsen-mcp

inooLabs/socialstyrelsen-mcp

3.2

If you are the rightful owner of socialstyrelsen-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Socialstyrelsen MCP Server provides access to the Swedish National Board of Health and Welfare's statistical database API, offering tools for querying various Swedish health statistics.

Tools
5
Resources
0
Prompts
0

Socialstyrelsen MCP Server

An MCP (Model Context Protocol) server that provides access to the Swedish National Board of Health and Welfare (Socialstyrelsen) statistical database API.

What it does

This server exposes tools for querying Swedish health statistics, including:

  • Causes of death (dödsorsaker)
  • Pharmaceuticals (läkemedel)
  • Diagnoses in inpatient/outpatient care
  • Dental health (tandhälsa)
  • Surgeries, births, breastfeeding data, and more

Running locally

pip install -r requirements.txt
python server.py

The server runs on port 8004 using streamable HTTP transport.

Docker

docker build -t socialstyrelsen-mcp .
docker run -p 8004:8004 socialstyrelsen-mcp

Or with docker-compose:

docker-compose up

Available tools

ToolDescription
socialstyrelsen_get_subjectsList all available data subjects
socialstyrelsen_list_distribution_valuesExplore dimensions and their values for a subject
socialstyrelsen_list_distribution_values_by_idGet specific values by ID
socialstyrelsen_list_distribution_values_by_textSearch values by text
socialstyrelsen_list_resultsQuery statistical results with filters

Data source

All data comes from the public Socialstyrelsen API at https://sdb.socialstyrelsen.se/api/v1. No authentication required.