# bag-health-mcp [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/malkreide/bag-health-mcp  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/bag-health-mcp

## Description
BAG public-health open data: indicators, programmes, statistics

## Tools
Capabilities this server exposes over MCP:

- **bag_health_mcp__list_diseases** — List all 51 disease topics available in the BAG Infectious Disease Dashboard (IDD). Returns the topic slug needed for other tools, grouped by category (respiratory, enteric, STI, vector-borne, wastewater). <use_case>Discover what diseases are available before querying data.</use_case><important_notes>Start here; the topic slugs returned are required inputs for the other tools.</important_notes><example>bag_health_mcp__list_diseases() -> categories incl. 'influenza', 'measles', 'covid19'.</example>
- **bag_health_mcp__list_series** — List all available data series for a specific disease topic. Each series is identified by 'topic/chapter/aggregation/temporality'. Returns series IDs to use with bag_health_mcp__get_series_details and bag_health_mcp__get_disease_data.<use_case>Find which exact series exist for a disease (e.g. weekly cases vs yearly incidence) before fetching data.</use_case><important_notes>Needs a valid topic slug from bag_health_mcp__list_diseases.</important_notes><example>bag_health_mcp__list_series(topic='influenza') -> 'influenza/cases/incValue/iso_week', ...</example>
- **bag_health_mcp__get_series_details** — Get metadata and available filter values for a specific data series. Shows which canton, age group, sex, and other dimensions are available. Always call this before bag_health_mcp__get_disease_data to know valid filter options.<use_case>Learn the valid filter values (cantons, age groups, sex) for a series so a subsequent data query uses accepted parameters.</use_case><important_notes>Available dimensions vary by series — always check here rather than assuming.</important_notes><example>bag_health_mcp__get_series_details(series_id='influenza/cases/incValue/iso_week') -> cantons=['ZH','BE',...], age_groups=[...].</example>
- **bag_health_mcp__get_disease_data** — Fetch time-series surveillance data for a disease from the BAG IDD. Returns weekly or yearly case counts, incidence rates, or other metrics. Data updated every Wednesday. <use_case>Get the actual numbers/trend for a disease in a canton over time — the core data-retrieval tool.</use_case><important_notes>Call bag_health_mcp__get_series_details first for valid filters. 'incValue' = incidence per 100'000; 'value' = absolute count.</important_notes><example>bag_health_mcp__get_disease_data(series_id='influenza/cases/incValue/iso_week', canton='ZH') -> weekly influenza incidence for Zurich.</example>
- **bag_health_mcp__list_export_files** — List all available export file names from the BAG IDD. These are complete datasets (CSV/JSON) per disease, e.g. INFLUENZA_oblig, COVID19_wastewater_sequencing, MEASLES_oblig. Use with bag_health_mcp__download_export to get raw data files.<use_case>Discover which complete bulk datasets can be downloaded for offline/bulk analysis.</use_case><important_notes>Returns file names, not the data — pass one to bag_health_mcp__download_export.</important_notes><example>bag_health_mcp__list_export_files() -> ['INFLUENZA_oblig', 'COVID19_wastewater_sequencing', ...].</example>
- **bag_health_mcp__download_export** — Download a complete export dataset from the BAG IDD as CSV or JSON. Returns the raw data content for a specific disease file. Useful for bulk analysis. Files are updated weekly.<use_case>Retrieve a full raw dataset (all rows) for one disease for downstream/offline analysis.</use_case><important_notes>The preview is truncated at 3000 chars; for very large datasets use the IDD web interface. Get file names from bag_health_mcp__list_export_files.</important_notes><example>bag_health_mcp__download_export(file='INFLUENZA_oblig', format='csv') -> raw CSV content.</example>
- **bag_health_mcp__get_data_version** — Get the current data version of the BAG IDD. Returns the date of the last data update (format YYYYMMDD). IDD is updated every Wednesday.<use_case>Check how fresh the data is / which weekly snapshot you are looking at.</use_case><important_notes>Data is updated only weekly (Wednesdays); not real-time.</important_notes><example>bag_health_mcp__get_data_version() -> version='20260325', date='2026-03-25'.</example>
- **bag_health_mcp__get_canton_situation** — Get a public health situation overview for a specific canton or Switzerland. Combines current incidence data for key school-relevant diseases (influenza, measles, norovirus proxy via acute_respiratory_infection) with trend information. Designed for school authorities and city administration Public Health Reporting. <use_case>One-call situational overview for a canton (Schulamt / city administration) without orchestrating multiple series queries.</use_case><important_notes>Aggregates several series; a single unavailable series is reported as a per-disease status, not a failure of the whole call.</important_notes><example>bag_health_mcp__get_canton_situation(canton='ZH') -> per-disease latest value, trend and change for Zurich. Anchor query: 'Wie ist die aktuelle Grippesituation im Kanton Zürich?'</example>
- **bag_health_mcp__search_health_indicators** — Search health indicators across three Swiss sources: 'obsan' (Swiss Health Observatory — hundreds of indicators incl. the HBSC youth-survey series), 'versorgungsatlas' (Swiss health-care supply atlas, ~124 indicators), and 'suchtschweiz' (addiction / HBSC series, served via Obsan's official mirror). Returns matching indicator_ids to pass to bag_health_mcp__get_indicator_series. IMPORTANT: this serves AGGREGATED population statistics (prevalences/metrics by age/sex/region) — NOT individual advice, diagnosis or case assessment, and no personal data. Especially for 'suchtschweiz' (prevention topics in a school context): the figures are population-level survey aggregates only. <use_case>Find which indicators exist for a topic (e.g. youth alcohol) before fetching a series.</use_case><important_notes>The catalogue does not state which cuts an indicator publishes — get_indicator_series reports that per indicator ('variant', 'variants_available'). Most Obsan indicators DO have a cantonal cut (50 of 60 sampled); the HBSC youth series (source='suchtschweiz', ages 11-15) is the exception and is national only, as HBSC is not cantonally representative. Other 'monam' indicators come from the Swiss Health Survey and are cantonal. A few catalogue entries have no series at all; the series call names that case rather than returning nothing.</important_notes><example>bag_health_mcp__search_health_indicators(source='suchtschweiz', topic='alkohol') -> Obsan HBSC alcohol-prevalence indicators.</example>
- **bag_health_mcp__get_indicator_series** — Fetch one health indicator's time series from Obsan, the Versorgungsatlas or Sucht Schweiz (HBSC). Use an indicator_id from bag_health_mcp__search_health_indicators. Obsan publishes an indicator in several CUTS (national, by canton, by age class, by social position, as a distribution); this tool picks one, names it in 'variant' and lists the others in 'variants_available'. They are different measurements with different units, not interchangeable. Pass region='ZH' for the cantonal cut where the indicator has one. Versorgungsatlas returns a cantonal year/value series (26 cantons + a 'CH' total, 95% CIs, canton-vs-Switzerland ratio). IMPORTANT: AGGREGATED population statistics only — NOT individual advice, diagnosis or case assessment, no personal data. For 'suchtschweiz' (school-context prevention topics) the values are national HBSC survey aggregates by age/sex. <use_case>Get a national trend, or a cantonal series with a Switzerland comparison.</use_case><important_notes>Read 'variant' before reading the numbers: 'g'/'kg' are rates, 'gum' is a distribution in %. The HBSC youth series (source='suchtschweiz', ages 11-15) is national only — a canton request returns the national cut with a note, because HBSC is not cantonally representative. Some Obsan observations are pooled spans ('1998-02' = 1998–2002); those carry the full label in 'period' and its first year in 'year'. Where an indicator publishes no series, the call fails with that reason instead of returning an empty series.</important_notes><example>bag_health_mcp__get_indicator_series(source='obsan', indicator_id='obsan/lebenserwartung', region='ZH') -> ZH life expectancy from the 'kg' cut, with the source's own canton and category legends.</example>

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "bag-health-mcp": {
    "command": "uvx",
    "args": ["bag-health-mcp"]
  }
}
```

## Documentation

## What bag-health-mcp does

The bag-health-mcp MCP server gives AI agents read-only access to Swiss public-health datasets. Its primary source is the Swiss Federal Office of Public Health (BAG) Infectious Disease Dashboard, covering 51 disease topics and 1,386 data series across Switzerland, Liechtenstein, and the 26 Swiss cantons. The available subjects include influenza, COVID-19, measles, wastewater surveillance, and other infectious-disease indicators.

It also provides a health-indicator layer drawing from the Swiss Health Observatory (Obsan), the Versorgungsatlas, and Sucht Schweiz data exposed through the Obsan mirror. These sources cover population-level measures rather than personal records or individual medical assessments.

## How it works

The server exposes ten parameterized MCP tools. Calls read from allow-listed upstream public-data APIs and do not modify external state. Tool annotations identify the operations as read-only, non-destructive, and idempotent, while indicating that they reach external systems.

A typical workflow starts by finding a disease or indicator, examining the available dimensions, and then requesting the relevant series. Disease data can be filtered by dimensions such as canton, age, and sex when the selected series supports them. Indicator queries can specify a source, topic, region, and year range. Results identify the selected indicator cut, such as national, cantonal, age-based, social-position, or distribution data.

The server also includes static MCP resources for canton codes, disease categories, and data-licence information. Two reusable prompts package workflows for drafting a canton situation brief and checking whether a disease is currently elevated.

## Tools and capabilities

The bag-health-mcp MCP server includes these capabilities:

- List the 51 disease topics grouped by category.
- Enumerate series for a selected disease.
- Inspect available series dimensions, including canton, age, and sex.
- Retrieve infectious-disease surveillance time series.
- Produce a situational overview for a canton, including the documented Schulamt use case.
- List and download complete CSV or JSON export files.
- Check the current data version, which is updated every Wednesday.
- Search Obsan, Versorgungsatlas, and Sucht Schweiz indicators by source, topic, region, and year range.
- Retrieve an indicator series with its selected variant and other available variants; indicator results include 95% confidence intervals.

For Versorgungsatlas data, the documented output contains cantonal and national series, confidence intervals, and a canton-to-Switzerland ratio. Some Obsan indicators are available only in particular cuts, and some catalogue entries have no series.

## Limitations and notes

The indicator layer contains aggregated population statistics only. It is not intended for diagnosis, individual advice, case assessment, or access to personal data. An indicator that appears relevant to a canton may still be national-only; for example, the documented HBSC youth alcohol-consumption series is not cantonally representative. The response identifies this limitation through a region note.

Coverage and availability depend on the upstream source and the selected series. Health data is live or externally retrieved, while the fixed reference resources can be fetched without an upstream call. Users should cite the relevant source: BAG data requires attribution under Swiss Open Government Data terms, and Obsan data should cite its per-indicator source. Versorgungsatlas and Sucht Schweiz results likewise reflect the source-specific datasets described by the server.

_Full upstream README: https://allmcps.com/mcp/bag-health-mcp/readme_

