Skip to content

CDC open data dataset query

Runs a SoQL query on one data.cdc.gov dataset by id: $select columns, $where filters, $group aggregations, $order, $q full-text search, with paging. Needs dataset id.

Inputs

1 required
Dataset ID
Data.cdc.gov dataset id, e.g. 'swc5-untb'Required · dataset_id
Select
SoQL $select, e.g. 'year,stateabbr,measure,data_value'Optional · select
Where
SoQL $where, e.g. "stateabbr='VT' AND year='2023'"Optional · where
Group
SoQL $group (with aggregates in select), e.g. 'stateabbr'Optional · group
Order
SoQL $order, e.g. 'data_value DESC'Optional · order
Q
Full-text search across the dataset, e.g. 'obesity'Optional · q
Limit
Rows to return, e.g. 25Optional · limit
Offset
Rows to skip, e.g. 25Optional · offset

Pricing

Price
Free, no charge per call
Billing
No charge per call. A workspace is still needed so your agent can call it.
License
US Government public data (check each dataset's licence field)
Attribution
Data from the Centers for Disease Control and Prevention (data.cdc.gov)

Call

Your agent reads the schema and the price with inspect_tool before it runs the tool.

MCP call
cURL command
TypeScript
Tool ID

Alternatives

Knowledge & research

Connect your agent to 3,000+ tools for free

Sign in with Google or GitHub. No card required.