Hdx
v0.2.1Humanitarian 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search terms, e.g. "displacement", "food security", "conflict fatalities". |
fq | string | Solr filter query (facet filter). e.g. "groups:syr" (location = Syria), "organization:unhcr", "res_format:CSV". Combine with spaces. |
rows | number | Max results, 1-1000 (default 25). |
sort | string | Sort spec, e.g. "metadata_modified desc" or "score desc". |
start | number | 0-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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Dataset 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.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max 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.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max organizations, 1-1000 (default 100). |