Datagov Uk

v0.2.1
io.github.pipeworx-io/datagov-uk Checked 1 day ago Published 1 month ago

data.gov.uk MCP — UK national open-data portal (CKAN API).

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

search_datasets

Search the data.gov.uk catalogue (CKAN package_search) across 57k+ UK government open datasets. Returns matching datasets with titles, descriptions, publishing organization, and resources. Content is English. Pass an empty query to browse everything by relevance/sort.

ParameterTypeDescription
query *stringSearch terms, e.g. "air quality", "house prices", "covid". Pass "" to list all datasets.
fqstringSolr filter query, e.g. "organization:office-for-national-statistics", "res_format:CSV", or "tags:gtfs".
rowsnumberMax results, 1-1000 (default 25).
sortstringSort spec, e.g. "metadata_modified desc" or "score desc".
startnumber0-based offset for paging.

dataset_details

Full dataset record by id or slug (CKAN package_show), including its resources. Each resource exposes a downloadable file: read "url" (the download link), "format" (CSV/XLSX/ZIP/etc.), and "name". data.gov.uk resources are files, not queryable datastore tables.

ParameterTypeDescription
id *stringDataset id (UUID) or slug, e.g. "nhs-regions-geography-april-20161".

list_organizations

List publishing organizations on data.gov.uk (CKAN organization_list) — UK government departments, agencies, councils, NHS bodies, ONS, etc. Use a returned org "name" as fq="organization:<name>" in search_datasets to filter to that publisher.

ParameterTypeDescription
limitnumberMax orgs, 1-1000 (default 100).

organization_details

Full details for one publishing organization (CKAN organization_show): display name, description, dataset count, and (optionally) a sample of its datasets. Use to learn what a given UK publisher releases.

ParameterTypeDescription
id *stringOrganization id or slug, e.g. "office-for-national-statistics" or "natural-england".
include_datasetsbooleanIf true, include a sample of the org's datasets in "packages" (default false).