Ukhsa

v0.2.1
io.github.pipeworx-io/ukhsa Checked 1 hour ago Published 25 days ago

UK Health Security Agency (UKHSA) data dashboard MCP — keyless.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

navigate

Walk the UKHSA surveillance hierarchy one level at a time to discover valid values. Pass the levels you already know (in order: theme, sub_theme, topic, geography_type, geography) and you get back the list of options for the NEXT level. With no args it lists themes (e.g. infectious_disease, immunisation, climate_and_environment, medicines). With theme="infectious_disease" it lists sub_themes (respiratory, gastrointestinal, vaccine_preventable, ...). Continue down to topics (COVID-19, Influenza, Measles, ...), geography_types (Nation, NHS Region, ...), geographies (England, ...), and finally me…

ParameterTypeDescription
geographystringe.g. "England". Requires the levels above.
geography_typestringe.g. "Nation", "NHS Region". Requires the levels above. May contain spaces.
sub_themestringe.g. "respiratory". Requires theme.
themestringe.g. "infectious_disease".
topicstringe.g. "COVID-19", "Influenza". Requires theme + sub_theme.

list_metrics

Shortcut to list all available metric names for a fully-specified location — supply all five levels (theme, sub_theme, topic, geography_type, geography) at once rather than calling navigate iteratively. Returns metric names like "COVID-19_cases_casesByDay" ready to pass to get_metric_data.(theme, sub_theme, topic, geography_type, geography), without walking each level. Returns metric names like "COVID-19_cases_casesByDay" or "COVID-19_deaths_ONSByDay" ready to pass to get_metric_data.

ParameterTypeDescription
geography *stringe.g. "England".
geography_type *stringe.g. "Nation".
sub_theme *stringe.g. "respiratory".
theme *stringe.g. "infectious_disease".
topic *stringe.g. "COVID-19".

get_metric_data

Pull the time series for one fully-specified UKHSA metric. Requires all six levels (theme, sub_theme, topic, geography_type, geography, metric). Returns paginated observations {count, next, previous, results[]} where each result has date, metric_value, year, month, epiweek, sex, age, stratum, geography_code, etc. Optionally filter by year and control page_size / page. Example: infectious_disease / respiratory / COVID-19 / Nation / England / COVID-19_cases_casesByDay.

ParameterTypeDescription
geography *stringe.g. "England".
geography_type *stringe.g. "Nation".
metric *stringDotted/underscored metric name, e.g. "COVID-19_cases_casesByDay".
sub_theme *stringe.g. "respiratory".
theme *stringe.g. "infectious_disease".
topic *stringe.g. "COVID-19".
pagenumberOptional. 1-based page number for paging through results.
page_sizenumberOptional. Observations per page (default 5 here, max ~365).
yearnumberOptional. Filter to a single calendar year, e.g. 2024.