Hdx

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

Humanitarian Data Exchange (HDX) MCP — data.humdata.org, the open humanitarian-data platform run…

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

search_datasets

Search the Humanitarian Data Exchange catalogue (CKAN package_search) for datasets on displacement, refugees, food security, conflict, disasters, health, population, etc. Returns matching datasets with titles, descriptions, publishing organization, locations (groups), and resources. Filter by country/crisis with fq="groups:<iso3>" (e.g. "groups:syr") — get codes from list_locations.

ParameterTypeDescription
query *stringSearch terms, e.g. "displacement", "food security", "conflict fatalities".
fqstringSolr filter query (facet filter). e.g. "groups:syr" (location = Syria), "organization:unhcr", "res_format:CSV". Combine with spaces.
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 has a "download_url"/"url" pointing at the actual data file (usually CSV/XLSX) — that is how you read the underlying rows, since HDX does not expose a keyless row query.

ParameterTypeDescription
id *stringDataset id or slug, e.g. "idmc-idp-data-pak".

list_locations

List the locations on HDX (CKAN group_list) — countries and crises, each keyed by a lowercase ISO3 code (e.g. {"name":"syr","display_name":"Syrian Arab Republic"}). Use a code as fq="groups:<name>" in search_datasets to scope results to a country/crisis.

ParameterTypeDescription
limitnumberMax locations, 1-1000 (default 300; HDX has ~250).

list_organizations

List the publishing organizations on HDX (CKAN organization_list) — UN agencies and NGOs such as OCHA, UNHCR, WFP, IDMC, ACAPS. Use an org "name" as fq="organization:<name>" in search_datasets.

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