Healthdata

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

HealthData.gov MCP. Keyless.

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

search_datasets

Search HealthData.gov for public-health datasets by keyword (e.g. "COVID hospitalizations", "Medicare spending", "opioid prescriptions"). Returns each dataset's Socrata id (a 4x4 like "g62h-syeh"), title, description, owning agency, tags, when the data was last updated, and its page-view count. Pass the id to get_dataset for full metadata or to get_rows to read the actual rows.

ParameterTypeDescription
query *stringSearch query, e.g. "vaccination rates", "hospital readmissions".
limitnumberMax results, 1-50 (default 10).
offsetnumberSkip this many results, for paging (default 0).

get_dataset

Full metadata for one HealthData.gov dataset by its Socrata id (a 4x4 like "g62h-syeh", returned by search_datasets). Returns title, description, owning agency, licence, every column with its type, row count and the last data update. NOTE: HealthData.gov migrated off CKAN, so an old CKAN package id or slug will NOT resolve — search for the dataset again to get its 4x4.

ParameterTypeDescription
id *stringSocrata 4x4, e.g. "g62h-syeh".

get_rows

Read actual rows from a HealthData.gov dataset by its Socrata 4x4 id. Optional SoQL `where` (e.g. "state = 'CA'") and `order` (e.g. "date DESC"). Use get_dataset first to see the column names. This returns the DATA, not a download link.

ParameterTypeDescription
id *stringSocrata 4x4, e.g. "g62h-syeh".
limitnumberRows to return, 1-1000 (default 20).
offsetnumberSkip this many rows (default 0).
orderstringSoQL ordering, e.g. "date DESC".
wherestringSoQL filter, e.g. "state = 'CA'".