Uk Ons

v0.2.1
io.github.pipeworx-io/uk-ons Checked 1 day ago Published 26 days ago

UK ONS MCP — Office for National Statistics (no auth)

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

list_datasets

Paginated catalog of ONS datasets. Returns id, title, description, contacts, release frequency, last release, theme.

ParameterTypeDescription
limitnumber1-100 (default 20)
offsetnumber0-based offset (default 0)

get_dataset

Single dataset metadata: title, description, methodology, contacts, release frequency, latest version, related links.

ParameterTypeDescription
dataset_id *stringONS dataset ID (e.g., "cpih01", "ashe-table-1")

list_editions

List all named editions of an ONS dataset (e.g., "time-series", "annual"). Returns each edition label, release date, state, and the latest version ID to use with get_version or get_observations.

ParameterTypeDescription
dataset_id *stringONS dataset ID

get_version

Fetch metadata for a specific version of an ONS dataset edition, including dimension definitions with codelist links, CSV/XLS download URLs, release date, and publication state.

ParameterTypeDescription
dataset_id *stringONS dataset ID
edition *stringEdition label
version *stringVersion (e.g., "1", "2")

get_observations

Fetch observations from a dataset/edition/version. Pass dimension filters as `dimensions` map ({"geography": "K02000001", "time": "2023"}). Use `*` for "all values" within a dimension.

ParameterTypeDescription
dataset_id *stringONS dataset ID
dimensions *objectDimension code → value (or "*" for all). Example: {"geography":"K02000001","time":"2023"}.
edition *stringEdition label
version *stringVersion

ons_timeseries

Fetch a single UK ONS time series by its www.ons.gov.uk URI (the classic timeseries API, distinct from the filterable datasets above). Returns the full series JSON (description + observations). e.g. uri "/economy/grossdomesticproductgdp/timeseries/abmi/pn2". (Named ons_timeseries — get_series is used by many other economic-data packs.)

ParameterTypeDescription
uri *stringONS timeseries URI, e.g. "/economy/grossdomesticproductgdp/timeseries/abmi/pn2".