io.github.cyanheads/cdc-health-mcp-server is an MCP server published by io.github.cyanheads, hosted at cdc.caseyjhand.com. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 5 tools, including cdc_discover_datasets, cdc_get_dataset_schema, cdc_list_catalog_vocabulary, cdc_query_dataset, cdc_query_wonder.
Search and query CDC public health data — mortality, vaccinations, surveillance, behavioral risk.
428 connections through 5 shared values. Tap any node.
Search the CDC dataset catalog by keyword, category, tag, or asset type. Returns IDs, names, truncated descriptions, asset types, column counts, update timestamps, portal links, and for a file its download URL and MIME type. The catalog also holds charts, maps, stories, files, and links; an entry whose columnCount is 0 is one of those and yields no data from the other tools — download a file from its downloadUrl, reach a link through its accessPoints, and a chart or map through the dataset its parentIds name. Use cdc_get_dataset_schema for the full column list of a chosen dataset.
| Parameter | Type | Description |
|---|---|---|
| tags | array | Filter by domain tags (e.g., ["covid19", "surveillance"]). Tags widen the search instead of narrowing it — a dataset matches when it carries any one of them, so every tag added returns more results, and an unrecognized tag matches nothing and leaves the result set unchanged. Values match the catalog… |
| limit | integer | Results to return (default 10, max 10,000). offset plus limit must not exceed 10000. |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| order | string | Result ordering. Defaults to "relevance" when query is set and to "dataset_id" otherwise, at every offset; an explicit value always wins. "relevance" ranks the best matches for the query first, but its order varies between calls, so paging a relevance search by offset can repeat or skip entries. "da… |
| query | string | Full-text search across dataset names and descriptions (e.g., "diabetes mortality", "lead exposure children"). |
| domain | string | CDC Socrata host to search. "data.cdc.gov" (default) and "chronicdata.cdc.gov" front the same catalog and return the same entries, so switching hosts neither widens nor narrows a search — chronic-disease and small-area collections such as PLACES, the Heart Disease & Stroke Atlas, and Environmental P… |
| offset | integer | Pagination offset for browsing beyond first page (max 9999). offset plus limit must not exceed 10000; both CDC portals hold well under two thousand entries, so offsets near that ceiling page past the end of the catalog. |
| category | string | Filter by domain category (e.g., "NNDSS", "Vaccinations", "Behavioral Risk Factors"). Values come from the catalog's own vocabulary and are matched exactly, ignoring case — "Vaccinations" and "vaccinations" each match 89 entries while "Vaccination" matches none. Call cdc_list_catalog_vocabulary for … |
| asset_types | array | Limit the search to these catalog asset types, spelled as assetType reports them. An entry matches when it is any one of them, and totalCount counts only those; ["dataset", "filter"] returns just the entries with rows to query. Omitted or [] searches every type. |
{
"name": "cdc_discover_datasets",
"title": "Cdc Discover Datasets",
"description": "Search the CDC dataset catalog by keyword, category, tag, or asset type. Returns IDs, names, truncated descriptions, asset types, column counts, update timestamps, portal links, and for a file its download URL and MIME type. The catalog also holds charts, maps, stories, files, and links; an entry whose columnCount is 0 is one of those and yields no data from the other tools — download a file from its downloadUrl, reach a link through its accessPoints, and a chart or map through the dataset its parentIds name. Use cdc_get_dataset_schema for the full column list of a chosen dataset.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string",
"description": "Tag value"
},
"description": "Filter by domain tags (e.g., [\"covid19\", \"surveillance\"]). Tags widen the search instead of narrowing it — a dataset matches when it carries any one of them, so every tag added returns more results, and an unrecognized tag matches nothing and leaves the result set unchanged. Values match the catalog's own tag vocabulary, case-insensitively; call cdc_list_catalog_vocabulary for the values in use with their entry counts, or read the tags field on any result. To narrow, combine tags with query or category, which intersect with the tag set."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 10000,
"minimum": 1,
"description": "Results to return (default 10, max 10,000). offset plus limit must not exceed 10000."
},
"order": {
"enum": [
"dataset_id",
"relevance"
],
"type": "string",
"description": "Result ordering. Defaults to \"relevance\" when query is set and to \"dataset_id\" otherwise, at every offset; an explicit value always wins. \"relevance\" ranks the best matches for the query first, but its order varies between calls, so paging a relevance search by offset can repeat or skip entries. \"dataset_id\" sorts by each entry's catalog ID — a stable order whose offset pages walk every match exactly once."
},
"query": {
"type": "string",
"description": "Full-text search across dataset names and descriptions (e.g., \"diabetes mortality\", \"lead exposure children\")."
},
"domain": {
"enum": [
"data.cdc.gov",
"chronicdata.cdc.gov"
],
"type": "string",
"default": "data.cdc.gov",
"description": "CDC Socrata host to search. \"data.cdc.gov\" (default) and \"chronicdata.cdc.gov\" front the same catalog and return the same entries, so switching hosts neither widens nor narrows a search — chronic-disease and small-area collections such as PLACES, the Heart Disease & Stroke Atlas, and Environmental Public Health Tracking are found from either."
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9999,
"minimum": 0,
"description": "Pagination offset for browsing beyond first page (max 9999). offset plus limit must not exceed 10000; both CDC portals hold well under two thousand entries, so offsets near that ceiling page past the end of the catalog."
},
"category": {
"type": "string",
"description": "Filter by domain category (e.g., \"NNDSS\", \"Vaccinations\", \"Behavioral Risk Factors\"). Values come from the catalog's own vocabulary and are matched exactly, ignoring case — \"Vaccinations\" and \"vaccinations\" each match 89 entries while \"Vaccination\" matches none. Call cdc_list_catalog_vocabulary for every value with its entry count rather than guessing at one."
},
"asset_types": {
"type": "array",
"items": {
"enum": [
"dataset",
"filter",
"chart",
"map",
"story",
"file",
"href"
],
"type": "string"
},
"description": "Limit the search to these catalog asset types, spelled as assetType reports them. An entry matches when it is any one of them, and totalCount counts only those; [\"dataset\", \"filter\"] returns just the entries with rows to query. Omitted or [] searches every type."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"datasets",
"totalCount",
"appliedFilters"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"rate_limited",
"dataset_not_found",
"access_denied",
"upstream_error",
"page_out_of_range",
"invalid_query"
],
"description": "Machine-readable failure mode. Declared by this tool: `rate_limited`: Socrata API returns 429 Too Many Requests. `dataset_not_found`: Socrata returned 404 for the catalog endpoint itself — the Discovery API address is wrong or the service moved. `access_denied`: Socrata returned 403 — the catalog refused this request rather than failing to serve it. `upstream_error`: Socrata catalog API returned a 5xx server error, could not be reached, did not finish answering within 20 seconds, or answered with a body that is not the JSON it serves. `page_out_of_range`: offset is above 0 and offset plus limit exceeds 10000, which Socrata's catalog rejects outright. `invalid_query`: Catalog API returned 400 — typically a malformed query or invalid filter value. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"notice": {
"type": "string",
"description": "Guidance on an empty page — the catalog values closest to a category or tag filter that matched nothing, how to broaden the search, or where the result set ends — and, on a relevance-ordered page with matches past it, that offset paging can repeat or skip entries."
},
"datasets": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"description": "Four-by-four dataset identifier (e.g., \"bi63-dtpu\")."
},
"name": {
"type": "string",
"description": "Dataset display name from the catalog (e.g., \"Provisional COVID-19 Deaths by Sex and Age\")."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Domain tags when provided."
},
"category": {
"type": "string",
"description": "Domain category when provided."
},
"mimeType": {
"type": "string",
"description": "MIME type of a file entry as the catalog records it, parameters included (e.g. \"application/x-zip-compressed\", \"application/pdf; charset=binary\"). Present on file entries only, and absent on one the catalog records no type for."
},
"assetType": {
"type": "string",
"description": "Catalog asset type as Socrata reports it — \"dataset\", \"filter\", \"chart\", \"map\", \"story\", \"file\", or \"href\" — and the value asset_types takes. Descriptive only: \"filter\" entries carry real columns and query normally, while \"chart\" and \"map\" entries do not. Read columnCount, not this field, to decide whether an entry is queryable."
},
"pageViews": {
"type": "number",
"description": "Total page views when provided."
},
"parentIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Four-by-four IDs of the datasets this entry is built on — every chart, map, and filter names one, and a story can name several. A chart or map has no rows of its own; cdc_get_dataset_schema and cdc_query_dataset read its parent. Absent on an entry built on no other dataset."
},
"permalink": {
"type": "string",
"description": "The entry's page on the CDC portal. For a link (href) entry it is a catalog landing page, the destination itself in accessPoints; for a file entry the file itself is at downloadUrl."
},
"updatedAt": {
"type": "string",
"description": "Last data update timestamp when provided."
},
"columnCount": {
"type": "number",
"description": "Number of columns in the dataset when reported by the catalog. A count of 0 means the entry is not tabular — cdc_get_dataset_schema and cdc_query_dataset return no usable data for it."
},
"description": {
"type": "string",
"description": "Dataset description when provided by the catalog, as plain text — markup stripped and entity references decoded — then truncated to 300 characters, so the limit bounds visible text. Fetch the full text via cdc_get_dataset_schema with full_description: true."
},
"downloadUrl": {
"type": "string",
"description": "URL that downloads a file entry, on the host this search addressed. It redirects to the file itself; fetch it with GET. Present on file entries only — no other asset type has a file to download."
},
"accessPoints": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "The URL."
},
"label": {
"type": "string",
"description": "Label the publisher gave the URL — free text, e.g. \"html\", \"map-server\"."
}
},
"description": "One publisher-labelled URL.",
"additionalProperties": false
},
"description": "The URLs a link (href) entry points to, each with its publisher's label, in catalog order — the only place a link entry's destination appears. Absent when the catalog lists none."
},
"columnSample": {
"type": "array",
"items": {
"type": "string"
},
"description": "First 8 column field names as a preview. Call cdc_get_dataset_schema for the full column list with data types."
}
},
"description": "A single dataset catalog entry.",
"additionalProperties": false
},
"description": "Matching datasets."
},
"totalCount": {
"type": "number",
"description": "Total matching datasets in the catalog (for pagination)."
},
"appliedFilters": {
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Tag filters used — a dataset matched when it carried any one of them."
},
"query": {
"type": "string",
"description": "Search query used."
},
"category": {
"type": "string",
"description": "Category filter used."
},
"assetTypes": {
"type": "array",
"items": {
"enum": [
"dataset",
"filter",
"chart",
"map",
"story",
"file",
"href"
],
"type": "string"
},
"description": "Asset types the search was limited to — an entry matched when it was any one of them."
}
},
"description": "Filters applied to this query; absent fields indicate no filter on that dimension. Query, category, tags, and asset types intersect with each other, but multiple tags union, as do multiple asset types.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Fetch the column schema for a CDC dataset — names, data types, descriptions, row count, last-updated timestamp, and, for a filter, the dataset it is a view of — with the period and area it covers, how often it is updated, its suggested citation, license, and attribution wherever the publisher recorded them. A chart, map, or file has no schema of its own: the failure names the dataset a chart or map is built on, and a file's name, size in bytes, and download URL. Returns the first 100 columns by default; wide datasets continue via column_offset. The dataset description is capped at 4,000 characters by default; pass full_description: true for the whole text. Get dataset IDs from cdc_discover_datasets.
| Parameter | Type | Description |
|---|---|---|
| domain | string | CDC Socrata host to fetch the dataset from. "data.cdc.gov" (default) and "chronicdata.cdc.gov" front the same catalog, so a four-by-four ID resolves on either and the default works whichever host the dataset was found on. |
| datasetId * | string | Four-by-four dataset identifier (e.g., "bi63-dtpu"). Obtain from cdc_discover_datasets. |
| column_limit | integer | Columns to return in this call (default 100). Every dataset under the default arrives whole; past it the response reports totalCount and a nextOffset to pass back as column_offset. Raise this to pull a wide schema in one call — a value at or above the column count returns every column. |
| column_offset | integer | Index of the first column to return, for continuing past a previous call (default 0). Columns keep the order the dataset declares, so column_offset plus column_limit walks the schema without gaps or repeats. An offset at or past the column count returns an empty window rather than an error. |
| full_description | boolean | Return the dataset description whole (default false). By default a description longer than 4,000 characters is cut there, and the response sets descriptionTruncated and descriptionLength. Column descriptions are never shortened either way. |
{
"name": "cdc_get_dataset_schema",
"title": "Cdc Get Dataset Schema",
"description": "Fetch the column schema for a CDC dataset — names, data types, descriptions, row count, last-updated timestamp, and, for a filter, the dataset it is a view of — with the period and area it covers, how often it is updated, its suggested citation, license, and attribution wherever the publisher recorded them. A chart, map, or file has no schema of its own: the failure names the dataset a chart or map is built on, and a file's name, size in bytes, and download URL. Returns the first 100 columns by default; wide datasets continue via column_offset. The dataset description is capped at 4,000 characters by default; pass full_description: true for the whole text. Get dataset IDs from cdc_discover_datasets.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"datasetId"
],
"properties": {
"domain": {
"enum": [
"data.cdc.gov",
"chronicdata.cdc.gov"
],
"type": "string",
"default": "data.cdc.gov",
"description": "CDC Socrata host to fetch the dataset from. \"data.cdc.gov\" (default) and \"chronicdata.cdc.gov\" front the same catalog, so a four-by-four ID resolves on either and the default works whichever host the dataset was found on."
},
"datasetId": {
"type": "string",
"pattern": "^[a-z0-9]{4}-[a-z0-9]{4}$",
"description": "Four-by-four dataset identifier (e.g., \"bi63-dtpu\"). Obtain from cdc_discover_datasets."
},
"column_limit": {
"type": "integer",
"default": 100,
"maximum": 9007199254740991,
"minimum": 1,
"description": "Columns to return in this call (default 100). Every dataset under the default arrives whole; past it the response reports totalCount and a nextOffset to pass back as column_offset. Raise this to pull a wide schema in one call — a value at or above the column count returns every column."
},
"column_offset": {
"type": "integer",
"default": 0,
"maximum": 10000,
"minimum": 0,
"description": "Index of the first column to return, for continuing past a previous call (default 0). Columns keep the order the dataset declares, so column_offset plus column_limit walks the schema without gaps or repeats. An offset at or past the column count returns an empty window rather than an error."
},
"full_description": {
"type": "boolean",
"default": false,
"description": "Return the dataset description whole (default false). By default a description longer than 4,000 characters is cut there, and the response sets descriptionTruncated and descriptionLength. Column descriptions are never shortened either way."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"name",
"columns",
"totalCount"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cap": {
"type": "number",
"description": "The column_limit that bounded this response."
},
"name": {
"type": "string",
"description": "Dataset display name from the catalog (e.g., \"Provisional COVID-19 Deaths by Sex and Age\")."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"dataset_not_found",
"not_queryable",
"access_denied",
"invalid_query",
"rate_limited",
"upstream_error"
],
"description": "Machine-readable failure mode. Declared by this tool: `dataset_not_found`: Dataset ID does not exist or has been retired. `not_queryable`: The ID names a catalog asset with no columns — a chart, map, story, file, or external link rather than a tabular dataset. `access_denied`: Socrata returned 403 — the asset is not readable through this endpoint or access is restricted. `invalid_query`: Socrata rejected the metadata request with a 400. `rate_limited`: Socrata API returns 429 Too Many Requests. `upstream_error`: Socrata metadata API returned a 5xx server error, could not be reached, did not finish answering within 20 seconds, or answered with a body that is not the JSON it serves. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"shown": {
"type": "number",
"description": "Number of columns returned in this response."
},
"notice": {
"type": "string",
"description": "Guidance when the response is a subset of the schema — which columns it covers, how to reach the rest, or that column_offset ran past the end."
},
"columns": {
"type": "array",
"items": {
"type": "object",
"required": [
"fieldName",
"dataType"
],
"properties": {
"dataType": {
"type": "string",
"description": "Column data type (text, number, calendar_date, etc.)."
},
"fieldName": {
"type": "string",
"description": "Column field name (use in SoQL queries)."
},
"description": {
"type": "string",
"description": "Column description when provided."
}
},
"description": "A single column in the dataset schema.",
"additionalProperties": false
},
"description": "The requested window of dataset columns, with full types and descriptions. Bounded by column_limit/column_offset; the enrichment fields say how the window sits in the whole schema."
},
"license": {
"type": "string",
"description": "Name of the license the dataset is published under — publisher-written text in no fixed format (\"Public Domain U.S. Government\", \"Open Data Commons Attribution License\"). Absent when the publisher named none."
},
"citation": {
"type": "string",
"description": "How the publisher asks the dataset to be cited — publisher-written text in no fixed format, placeholders such as \"[Last accessed date]\" included. Absent when the publisher recorded none."
},
"parentId": {
"type": "string",
"description": "Four-by-four ID of the dataset this asset is a view of — set on a filter, naming the dataset it was derived from. Absent on a dataset in its own right."
},
"rowCount": {
"type": "number",
"description": "Total rows in the dataset; omitted when neither a live nor a cached figure is available. Read rowCountSource before sizing a pagination walk against it — the cached figure can understate an actively-updated dataset by a third or more."
},
"truncated": {
"type": "boolean",
"description": "True when the returned columns are a subset of the schema. Absent means every column of the dataset is in this response."
},
"updatedAt": {
"type": "string",
"description": "Last data update timestamp when provided."
},
"nextOffset": {
"type": "number",
"description": "Value to pass as column_offset on the next call to continue after the last column returned. Present only when columns remain beyond this window."
},
"totalCount": {
"type": "number",
"description": "Total columns in the dataset schema, before column_limit/column_offset."
},
"attribution": {
"type": "string",
"description": "The office the publisher credits for the dataset — publisher-written text in no fixed format (\"National Center for Health Statistics\"). Absent when the publisher recorded none."
},
"description": {
"type": "string",
"description": "Dataset description when provided, as plain text — markup stripped and entity references decoded. Capped at 4,000 characters by default and ending in \"…\" when cut, with descriptionTruncated and descriptionLength set."
},
"rowCountSource": {
"enum": [
"live",
"cached"
],
"type": "string",
"description": "Provenance of rowCount. \"live\" is a count(*) run against the dataset for this call. \"cached\" is the figure Socrata stored when it last built its column cache, returned when the count request did not succeed; Socrata does not refresh it as rows land. Absent exactly when rowCount is absent."
},
"updateFrequency": {
"type": "string",
"description": "How often the publisher updates the dataset — publisher-written text in no fixed format (\"R/P1M\", \"Weekly\", \"irregular\", \"No longer updated (dataset archived)\"). Absent when the publisher recorded none; updatedAt is when the data last changed, which alone does not tell a monthly series from a closed one."
},
"temporalCoverage": {
"type": "string",
"description": "Period the data covers — publisher-written text in no fixed format, relayed as written (\"2015-01-01/2026-05-31\", \"1999/2018\", \"2019/present\", \"N/A\"). Absent when the publisher recorded none."
},
"descriptionLength": {
"type": "number",
"description": "Character count of the whole description, present only when description was cut."
},
"geographicCoverage": {
"type": "string",
"description": "Area the data covers — publisher-written text in no fixed format (\"United States\", \"50 states and District of Columbia\"). Absent when the publisher recorded none."
},
"descriptionTruncated": {
"type": "boolean",
"description": "True when description was cut at the 4,000-character cap. Absent means description is the whole text."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}List the controlled vocabularies cdc_discover_datasets' category and tags filters are matched against — every domain category and domain tag the CDC catalog publishes, each with the number of entries carrying it. Call it before filtering a search: a value the catalog does not carry matches nothing and returns an empty page, which is indistinguishable from a real value with no results. All categories come back whole; the tag vocabulary runs to roughly 1,600 values, so tags are ranked by entry count and returned one page at a time via tag_limit and tag_offset. Pass filter to narrow both vocabularies to the values that have a word containing or starting each of its words, or whose every word contains or starts one of its words; a filter under three letters or digits matches whole words only.
| Parameter | Type | Description |
|---|---|---|
| domain | string | CDC Socrata host to read the vocabulary from. "data.cdc.gov" (default) and "chronicdata.cdc.gov" front the same catalog and publish the same vocabulary, so this selects which host answers, never which values exist. |
| filter | string | Narrow both vocabularies to the values related to this text (at most 500 characters). A value matches when each word of the filter appears inside one of its words or begins with one ("vaccin" reaches "Vaccinations" and "covid-19 vaccination"; "vaccinations" reaches "vaccination", "children" reaches … |
| tag_limit | integer | Tags to return in this call (default 50). Tags are ranked by entry count, so the default page is the most-used end of the vocabulary; the response reports how many matched and a nextOffset while more remain. A tag_limit at or above the number of matching tags returns all of them in one call. Categor… |
| tag_offset | integer | Index of the first tag to return, for continuing past a previous call (default 0). Ranking is stable, so tag_offset plus tag_limit walks the vocabulary without gaps or repeats. An offset at or past the number of matching tags returns an empty tag list rather than an error. |
{
"name": "cdc_list_catalog_vocabulary",
"title": "List CDC Catalog Vocabulary",
"description": "List the controlled vocabularies cdc_discover_datasets' category and tags filters are matched against — every domain category and domain tag the CDC catalog publishes, each with the number of entries carrying it. Call it before filtering a search: a value the catalog does not carry matches nothing and returns an empty page, which is indistinguishable from a real value with no results. All categories come back whole; the tag vocabulary runs to roughly 1,600 values, so tags are ranked by entry count and returned one page at a time via tag_limit and tag_offset. Pass filter to narrow both vocabularies to the values that have a word containing or starting each of its words, or whose every word contains or starts one of its words; a filter under three letters or digits matches whole words only.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"domain": {
"enum": [
"data.cdc.gov",
"chronicdata.cdc.gov"
],
"type": "string",
"default": "data.cdc.gov",
"description": "CDC Socrata host to read the vocabulary from. \"data.cdc.gov\" (default) and \"chronicdata.cdc.gov\" front the same catalog and publish the same vocabulary, so this selects which host answers, never which values exist."
},
"filter": {
"type": "string",
"maxLength": 500,
"description": "Narrow both vocabularies to the values related to this text (at most 500 characters). A value matches when each word of the filter appears inside one of its words or begins with one (\"vaccin\" reaches \"Vaccinations\" and \"covid-19 vaccination\"; \"vaccinations\" reaches \"vaccination\", \"children\" reaches \"Child Vaccinations\"), or when each of its words contains or starts a word of the filter (\"nndss weekly\" reaches \"nndss\" and \"week\"). A word sitting inside a filter word past its start is no match: \"international\" does not reach \"national\", nor \"teenage\" \"age\". Matching is not fuzzy — a misspelling returns nothing rather than a guess. A word under three letters or digits matches only an equal word, so a short filter reaches the values carrying it as a whole word (\"tb\" reaches \"tuberculosis (tb)\", never \"outbreak\"); a short filter that reaches none, or one with no letters or digits, is ignored and both vocabularies come back unfiltered."
},
"tag_limit": {
"type": "integer",
"default": 50,
"maximum": 9007199254740991,
"minimum": 1,
"description": "Tags to return in this call (default 50). Tags are ranked by entry count, so the default page is the most-used end of the vocabulary; the response reports how many matched and a nextOffset while more remain. A tag_limit at or above the number of matching tags returns all of them in one call. Categories are never paged — every one arrives whole."
},
"tag_offset": {
"type": "integer",
"default": 0,
"maximum": 10000,
"minimum": 0,
"description": "Index of the first tag to return, for continuing past a previous call (default 0). Ranking is stable, so tag_offset plus tag_limit walks the vocabulary without gaps or repeats. An offset at or past the number of matching tags returns an empty tag list rather than an error."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"domain",
"categories",
"tags",
"vocabularySize",
"categoryCount",
"tagCount"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cap": {
"type": "number",
"description": "The tag_limit that bounded this response."
},
"tags": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"datasetCount"
],
"properties": {
"value": {
"type": "string",
"description": "The value as the catalog spells it, which cdc_discover_datasets matches ignoring case but otherwise exactly."
},
"datasetCount": {
"type": "number",
"description": "Catalog entries carrying this value, charts, maps, stories, files, and links included."
}
},
"description": "One vocabulary value with its catalog entry count.",
"additionalProperties": false
},
"description": "The requested window of domain tags, ranked by entry count. Pass values to cdc_discover_datasets' tags input; tags union there, so each one added widens the result set."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"rate_limited",
"dataset_not_found",
"access_denied",
"upstream_error",
"invalid_query"
],
"description": "Machine-readable failure mode. Declared by this tool: `rate_limited`: Socrata API returns 429 Too Many Requests. `dataset_not_found`: Socrata returned 404 for the vocabulary endpoint itself — the Discovery API address is wrong or the service moved. `access_denied`: Socrata returned 403 — the catalog refused this request rather than failing to serve it. `upstream_error`: Socrata catalog API returned a 5xx server error, could not be reached, did not finish answering within 20 seconds, or answered with a body that is not the JSON it serves. `invalid_query`: Socrata rejected the vocabulary request with a 400. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"shown": {
"type": "number",
"description": "Number of tags returned in this response."
},
"domain": {
"enum": [
"data.cdc.gov",
"chronicdata.cdc.gov"
],
"type": "string",
"description": "CDC Socrata host this vocabulary was read from."
},
"notice": {
"type": "string",
"description": "Guidance when the response is a subset of the vocabulary, when a filter under three letters or digits was ignored because no value carries it as a whole word, when the filter matched nothing, or when tag_offset ran past the end of the matches."
},
"tagCount": {
"type": "number",
"description": "Tags matching the filter, before tag_limit and tag_offset."
},
"truncated": {
"type": "boolean",
"description": "True when the returned tags are a subset of the matching ones. Absent means every matching tag is in this response."
},
"categories": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"datasetCount"
],
"properties": {
"value": {
"type": "string",
"description": "The value as the catalog spells it, which cdc_discover_datasets matches ignoring case but otherwise exactly."
},
"datasetCount": {
"type": "number",
"description": "Catalog entries carrying this value, charts, maps, stories, files, and links included."
}
},
"description": "One vocabulary value with its catalog entry count.",
"additionalProperties": false
},
"description": "Every domain category matching the filter, ranked by entry count. Pass a value to cdc_discover_datasets' category input exactly as spelled here."
},
"nextOffset": {
"type": "number",
"description": "Value to pass as tag_offset on the next call to continue after the last tag returned. Present only while matching tags remain."
},
"categoryCount": {
"type": "number",
"description": "Categories matching the filter. Every one of them is in this response."
},
"vocabularySize": {
"type": "object",
"required": [
"categories",
"tags"
],
"properties": {
"tags": {
"type": "number",
"description": "Domain tags published for this host."
},
"categories": {
"type": "number",
"description": "Domain categories published for this host."
}
},
"description": "Size of each full vocabulary on this host, before any filter was applied.",
"additionalProperties": false
},
"truncationCeiling": {
"type": "number",
"description": "Upper bound on the entry count of every tag after this page — the tags from nextOffset on. Tags are ranked by entry count, so none of those is carried by more entries than the last tag shown. It does not bound the tags before tag_offset: those rank at or above the first tag shown."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Execute a SoQL query against any CDC dataset. Supports filtering, aggregation, sorting, full-text search, and field selection. Use cdc_discover_datasets to find dataset IDs and cdc_get_dataset_schema to inspect columns before querying.
| Parameter | Type | Description |
|---|---|---|
| group | string | SoQL GROUP BY clause. Requires aggregate functions in select. |
| limit | integer | Rows to return (default 100). One call returns at most 1,000 rows: a larger limit, up to 1,000,000, is capped at 1,000, and the response says so and gives a nextOffset when more rows remain. Up to that cap, a page comes back shorter than limit only at the end of the result set. |
| order | string | SoQL ORDER BY clause. Field name with optional ASC/DESC: "total_deaths DESC". Set one from the first page whenever paging with offset, and keep it for the whole walk: SODA does not order results implicitly, so consecutive offsets without a deterministic order, or under a changed one, can skip or rep… |
| where | string | SoQL WHERE clause. Strings must be single-quoted: "state='California' AND year=2020". If a column name matches a SoQL keyword (group, select, where, order, limit, offset, having, search), wrap it in backticks: "`group`='By Year'". |
| domain | string | CDC Socrata host to query. "data.cdc.gov" (default) and "chronicdata.cdc.gov" front the same catalog, so a four-by-four ID returns the same rows from either and the default works whichever host the dataset was found on. |
| having | string | SoQL HAVING clause. Filters aggregated results. |
| offset | integer | Row offset for pagination (max 1,000,000). Pair with a deterministic order clause — an offset walk over unordered results can skip or repeat rows. |
| search | string | Full-text search across all text columns. For precise filtering use the where parameter instead. |
| select | string | SoQL SELECT clause — column names, aliases, or aggregates: "state, sum(deaths) as total_deaths". Omit for all columns. To enumerate distinct values of a column, set select to "{column}, count(*) as count" with group="{column}" and order="count DESC, {column}". |
| datasetId * | string | Four-by-four dataset identifier (e.g., "bi63-dtpu"). Obtain from cdc_discover_datasets. |
{
"name": "cdc_query_dataset",
"title": "Cdc Query Dataset",
"description": "Execute a SoQL query against any CDC dataset. Supports filtering, aggregation, sorting, full-text search, and field selection. Use cdc_discover_datasets to find dataset IDs and cdc_get_dataset_schema to inspect columns before querying.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"datasetId"
],
"properties": {
"group": {
"type": "string",
"description": "SoQL GROUP BY clause. Requires aggregate functions in select."
},
"limit": {
"type": "integer",
"default": 100,
"maximum": 1000000,
"minimum": 1,
"description": "Rows to return (default 100). One call returns at most 1,000 rows: a larger limit, up to 1,000,000, is capped at 1,000, and the response says so and gives a nextOffset when more rows remain. Up to that cap, a page comes back shorter than limit only at the end of the result set."
},
"order": {
"type": "string",
"description": "SoQL ORDER BY clause. Field name with optional ASC/DESC: \"total_deaths DESC\". Set one from the first page whenever paging with offset, and keep it for the whole walk: SODA does not order results implicitly, so consecutive offsets without a deterministic order, or under a changed one, can skip or repeat rows. End it with a tie-breaker unique to each row: on ungrouped rows, the system field `:id`, present on every dataset (order=\"year DESC, :id\"); on a grouped query, the grouped columns (order=\"total DESC, state\"); on a distinct select, the selected columns. Socrata rejects `:id` once rows are grouped."
},
"where": {
"type": "string",
"description": "SoQL WHERE clause. Strings must be single-quoted: \"state='California' AND year=2020\". If a column name matches a SoQL keyword (group, select, where, order, limit, offset, having, search), wrap it in backticks: \"`group`='By Year'\"."
},
"domain": {
"enum": [
"data.cdc.gov",
"chronicdata.cdc.gov"
],
"type": "string",
"default": "data.cdc.gov",
"description": "CDC Socrata host to query. \"data.cdc.gov\" (default) and \"chronicdata.cdc.gov\" front the same catalog, so a four-by-four ID returns the same rows from either and the default works whichever host the dataset was found on."
},
"having": {
"type": "string",
"description": "SoQL HAVING clause. Filters aggregated results."
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 1000000,
"minimum": 0,
"description": "Row offset for pagination (max 1,000,000). Pair with a deterministic order clause — an offset walk over unordered results can skip or repeat rows."
},
"search": {
"type": "string",
"description": "Full-text search across all text columns. For precise filtering use the where parameter instead."
},
"select": {
"type": "string",
"description": "SoQL SELECT clause — column names, aliases, or aggregates: \"state, sum(deaths) as total_deaths\". Omit for all columns. To enumerate distinct values of a column, set select to \"{column}, count(*) as count\" with group=\"{column}\" and order=\"count DESC, {column}\"."
},
"datasetId": {
"type": "string",
"pattern": "^[a-z0-9]{4}-[a-z0-9]{4}$",
"description": "Four-by-four dataset identifier (e.g., \"bi63-dtpu\"). Obtain from cdc_discover_datasets."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"rows",
"rowCount",
"effectiveQuery"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cap": {
"type": "number",
"description": "The row limit that bounded this response: the requested limit, or 1,000 when a larger one was capped."
},
"rows": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Result rows with requested fields. Most values are strings (including numbers/dates); geo columns return GeoJSON objects."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"dataset_not_found",
"no_such_column",
"type_mismatch",
"invalid_query",
"not_queryable",
"access_denied",
"rate_limited",
"upstream_error"
],
"description": "Machine-readable failure mode. Declared by this tool: `dataset_not_found`: Dataset ID does not exist or has been retired. `no_such_column`: WHERE/SELECT/GROUP/ORDER references a column that does not exist on this dataset. `type_mismatch`: Filter value type does not match the column data type (e.g., quoting a number). `invalid_query`: Socrata rejected the SoQL query for other syntax or semantic reasons. `not_queryable`: The ID names a non-tabular asset: the data endpoint answered with rows carrying no fields, and the asset reports no columns. `access_denied`: Socrata returned 403 — typically an ID naming a story, file, or external link rather than a tabular dataset. `rate_limited`: Socrata API returns 429 Too Many Requests. `upstream_error`: Socrata data API returned a 5xx server error, could not be reached, did not finish answering within 20 seconds, or answered with a body that is not the JSON it serves. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"shown": {
"type": "number",
"description": "Number of rows returned in this response."
},
"notice": {
"type": "string",
"description": "Guidance when no rows matched, when offset ran past the end of the result set, when every matched row came back with no fields, or when further rows remain — how to check the filters, lower offset, pick columns the rows populate, or page on without gaps."
},
"rowCount": {
"type": "number",
"description": "Number of rows returned in this response."
},
"truncated": {
"type": "boolean",
"description": "True when rows exist beyond the ones returned, established by fetching one row more than the limit rather than inferred from the row count. Absent means this response is the complete remainder of the result set."
},
"nextOffset": {
"type": "number",
"description": "Offset to pass on the next call, under the same order, to resume immediately after the last row returned. Present only when further rows exist and the resume point is within the offset ceiling. The walk is gap-free only when that order ends in a tie-breaker unique to each row; when it does not, the notice says to restart from offset 0 with one."
},
"effectiveQuery": {
"type": "string",
"description": "The SoQL clauses sent to Socrata, as `$clause=value` pairs joined by \"&\". Values read exactly as they were supplied — not URL-encoded — so a clause can be copied back into the matching parameter of another call."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Query CDC WONDER for national US mortality statistics — deaths, population, and crude and age-adjusted death rates with their 95% confidence intervals — from one of five mortality databases, final and provisional, underlying-cause and multiple-cause, together covering 1999 through the current year. Break results out by year, month, age group, sex, race, Hispanic origin, or underlying cause of death — ICD-10 chapter or sub-chapter, CDC's 113-cause list, its 15 leading causes, or injury intent — and filter by ICD-10 cause of death, sex, age group, or year range; on a multiple-cause database, mcd_icd10 matches a cause listed anywhere on the death certificate rather than only the one certified as underlying. WONDER is a separate CDC system from the Socrata datasets the other cdc_* tools query. Data is national only — sub-national (state/county) breakdowns are not available through the API (CDC vital-statistics policy). Where this server stages tables (cdc_dataframe_query is listed), a first page that leaves rows past it also stages the whole table, which cdc_dataframe_query ranks, compares, or pages with SQL without another WONDER request. CDC rejects requests made less than 15 seconds apart across all five databases, so calls are spaced automatically: calls made while another is running wait their turn and run one after another, each queued call adding about 16 seconds plus its own query time before it returns. A request WONDER has not finished answering within 20 seconds fails as a retryable upstream_error, so one call queued behind another returns within about 56 seconds.
| Parameter | Type | Description |
|---|---|---|
| sex | string | Filter by sex. |
| limit | integer | Rows to return from the table CDC sent — any positive integer. One call returns at most 10,000 rows: a larger limit is lowered to 10,000, and the response says so and gives a nextOffset when rows remain. Omitted, it is 100 where this server stages tables for SQL (cdc_dataframe_query is listed), and … |
| offset | integer | Index of the first row to return, for continuing past a previous call. Rows keep CDC's order, which is stable for a given query, so offset plus limit walks the table without gaps or repeats. An offset at or past the row total returns an empty page rather than an error. |
| database | string | Which WONDER mortality database to query. "underlying_1999_2020" (D76) is final data for 1999–2020 and the default. "provisional" (D176) runs 2018 through the current year, updated weekly; its latest year is partial — deaths only through the data-through date the response names, against a full-year … |
| group_by | array | Dimensions to break results out by (1–4, each at most once), in output-column order — e.g. ["year"], ["year","sex"], ["icd_chapter","year"]. Results are always national. "race" resolves to whichever race vocabulary the selected database uses — four bridged groups (Asian and Pacific Islander combined… |
| mcd_icd10 | any | Filter to deaths with any of these ICD-10 codes recorded anywhere on the death certificate, whether or not it was the underlying cause — e.g. "died with a respiratory condition listed", a population no underlying-cause query can produce. Takes one code or range, or a list of them, e.g. opioid involv… |
| age_groups | array | Restrict to deaths in any of the listed age groups — e.g. ["25-34","35-44"] covers both; a repeated group counts once. "1" is the under-1-year group. "NS" is the group CDC puts a death in when the age was not recorded; it is not covered by any of the ten-year groups, so a filter listing all eleven o… |
| year_range | object | Inclusive year range; from must not be later than to. Its bounds span every database; the selected one holds a narrower span, and a range outside it is rejected with that database's span named. Omit for all years the database holds. |
| cause_icd10 | any | Filter to ICD-10 underlying causes of death — the single condition CDC certified as having started the chain of events leading to death. Takes one code or range, or a list of them for a cause defined as a code set, e.g. drug overdose as ["X40","X41","X42","X43","X44","X60","X61","X62","X63","X64","X… |
{
"name": "cdc_query_wonder",
"title": "Cdc Query Wonder",
"description": "Query CDC WONDER for national US mortality statistics — deaths, population, and crude and age-adjusted death rates with their 95% confidence intervals — from one of five mortality databases, final and provisional, underlying-cause and multiple-cause, together covering 1999 through the current year. Break results out by year, month, age group, sex, race, Hispanic origin, or underlying cause of death — ICD-10 chapter or sub-chapter, CDC's 113-cause list, its 15 leading causes, or injury intent — and filter by ICD-10 cause of death, sex, age group, or year range; on a multiple-cause database, mcd_icd10 matches a cause listed anywhere on the death certificate rather than only the one certified as underlying. WONDER is a separate CDC system from the Socrata datasets the other cdc_* tools query. Data is national only — sub-national (state/county) breakdowns are not available through the API (CDC vital-statistics policy). Where this server stages tables (cdc_dataframe_query is listed), a first page that leaves rows past it also stages the whole table, which cdc_dataframe_query ranks, compares, or pages with SQL without another WONDER request. CDC rejects requests made less than 15 seconds apart across all five databases, so calls are spaced automatically: calls made while another is running wait their turn and run one after another, each queued call adding about 16 seconds plus its own query time before it returns. A request WONDER has not finished answering within 20 seconds fails as a retryable upstream_error, so one call queued behind another returns within about 56 seconds.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"sex": {
"enum": [
"all",
"male",
"female"
],
"type": "string",
"default": "all",
"description": "Filter by sex."
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "Rows to return from the table CDC sent — any positive integer. One call returns at most 10,000 rows: a larger limit is lowered to 10,000, and the response says so and gives a nextOffset when rows remain. Omitted, it is 100 where this server stages tables for SQL (cdc_dataframe_query is listed), and otherwise the rest of the table from offset, up to 10,000 rows. WONDER's request carries no limit of its own, so every call fetches the whole table and returns a slice of it: the figures, caveats and messages are the same on every page, and a smaller page saves no time. Where tables are staged, a call at offset 0 that leaves rows past its page stages the whole table and names it in stagedTable, and cdc_dataframe_query reads the rest of it without another WONDER request; a call at a later offset stages nothing."
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 10000,
"minimum": 0,
"description": "Index of the first row to return, for continuing past a previous call. Rows keep CDC's order, which is stable for a given query, so offset plus limit walks the table without gaps or repeats. An offset at or past the row total returns an empty page rather than an error."
},
"database": {
"enum": [
"underlying_1999_2020",
"provisional",
"underlying_2018_2024",
"multiple_1999_2020",
"multiple_2018_2024"
],
"type": "string",
"default": "underlying_1999_2020",
"description": "Which WONDER mortality database to query. \"underlying_1999_2020\" (D76) is final data for 1999–2020 and the default. \"provisional\" (D176) runs 2018 through the current year, updated weekly; its latest year is partial — deaths only through the data-through date the response names, against a full-year population — so its counts and rates read low next to a finished year, and a notice says so whenever the years queried include it. \"underlying_2018_2024\" (D158) is settled data for 2018–2024. \"multiple_1999_2020\" (D77) and \"multiple_2018_2024\" (D157) record every cause listed on the death certificate; without an mcd_icd10 filter they return the same figures as the underlying-cause database for the same era, so pick one only to use that filter. The two 1999–2020 databases report race in CDC's four bridged groups and the other three in six single-race groups, so figures broken out by race are not comparable between the two families."
},
"group_by": {
"type": "array",
"items": {
"enum": [
"year",
"age_group",
"sex",
"race",
"icd_chapter",
"icd_subchapter",
"cause_113",
"leading_causes",
"injury_intent",
"hispanic_origin",
"month"
],
"type": "string"
},
"default": [
"year"
],
"maxItems": 4,
"minItems": 1,
"description": "Dimensions to break results out by (1–4, each at most once), in output-column order — e.g. [\"year\"], [\"year\",\"sex\"], [\"icd_chapter\",\"year\"]. Results are always national. \"race\" resolves to whichever race vocabulary the selected database uses — four bridged groups (Asian and Pacific Islander combined) on the 1999–2020 databases, six single-race categories on the others, one of them \"More than one race\" — so a race series from one family cannot be spliced onto one from the other. \"hispanic_origin\" splits Hispanic or Latino, Not Hispanic or Latino, and Not Stated. \"month\" groups by calendar month (labels such as \"Jan., 2019\") and returns deaths only: CDC publishes no monthly population, so population and both rates are \"Not Applicable\". The rest group by underlying cause: \"icd_chapter\" and \"icd_subchapter\" by node of CDC's ICD-10 tree, each row carrying the node's code range as cause_code (e.g. \"C00-D48\"; the sub-chapter's when both are grouped, null where CDC sent none), which cause_icd10 takes as it stands; \"cause_113\" by CDC's 113-cause list, each row carrying cause_level, its depth in that nested list (1 for a top-level cause) — a deeper cause is already counted in the one containing it, so deaths do not sum across levels; \"leading_causes\" by the 15 leading causes, ranked by deaths, and only on its own — CDC refuses it beside any other dimension, though the filters still apply; \"injury_intent\" by intent (unintentional, suicide, homicide, undetermined, legal intervention, or no injury). The most values the listed dimensions can take, multiplied, must be 10,000 or fewer — e.g. icd_subchapter (177) × year (22 on the 1999–2020 databases) × sex (2) fits, and adding age_group (12) does not — or the call is refused before any request, since WONDER takes longer than the request deadline to answer a larger table. year beside month, and icd_chapter beside icd_subchapter, add nothing to the product, since each month names its year and each sub-chapter sits inside one chapter."
},
"mcd_icd10": {
"anyOf": [
{
"type": "string",
"const": ""
},
{
"enum": [
"999--999",
"999-999"
],
"type": "string"
},
{
"type": "string",
"pattern": "^[A-Z][0-9]{2}(\\.[0-9]+)?(-[A-Z][0-9]{2}(\\.[0-9]+)?)?$",
"description": "ICD-10 code or range, same form as cause_icd10 — a chapter such as \"S00-T98\" (injury and poisoning, a chapter the underlying-cause finder does not list), a block such as \"J09-J18\" (influenza and pneumonia), or a single code such as \"T40.1\" (heroin)."
},
{
"type": "array",
"items": {
"anyOf": [
{
"enum": [
"999--999",
"999-999"
],
"type": "string"
},
{
"type": "string",
"pattern": "^[A-Z][0-9]{2}(\\.[0-9]+)?(-[A-Z][0-9]{2}(\\.[0-9]+)?)?$",
"description": "ICD-10 code or range."
}
],
"description": "One list entry: an ICD-10 code or range, or the withheld-cause marker."
},
"maxItems": 50,
"description": "A list of up to 50 entries, each in the single-value form, matched as a union: a death counts once when it matches any of them, so a code set such as X40–X44 plus X60–X64 is one series with one set of rates. Repeated entries are ignored. An empty list reads as omitted."
}
],
"description": "Filter to deaths with any of these ICD-10 codes recorded anywhere on the death certificate, whether or not it was the underlying cause — e.g. \"died with a respiratory condition listed\", a population no underlying-cause query can produce. Takes one code or range, or a list of them, e.g. opioid involvement as [\"T40.0\",\"T40.1\",\"T40.2\",\"T40.3\",\"T40.4\",\"T40.6\"]. Valid only when database is \"multiple_1999_2020\", \"multiple_2018_2024\", or \"provisional\"; the other databases record only the underlying cause and reject it. \"999--999\", the withheld-cause marker described under cause_icd10, is offered here too but only by \"provisional\", where the 24-week withholding also covers drug poisoning (T36-T50) as a listed cause. Combines with cause_icd10, which keeps meaning the underlying cause: a death must match both filters. Omit for all causes."
},
"age_groups": {
"type": "array",
"items": {
"enum": [
"1",
"1-4",
"5-14",
"15-24",
"25-34",
"35-44",
"45-54",
"55-64",
"65-74",
"75-84",
"85+",
"NS"
],
"type": "string"
},
"description": "Restrict to deaths in any of the listed age groups — e.g. [\"25-34\",\"35-44\"] covers both; a repeated group counts once. \"1\" is the under-1-year group. \"NS\" is the group CDC puts a death in when the age was not recorded; it is not covered by any of the ten-year groups, so a filter listing all eleven of those still leaves those deaths out and returns fewer deaths than the same query unfiltered. CDC refuses \"NS\" beside only some of the other groups: list it on its own to count those deaths, or list all twelve values — the same as omitting age_groups — to include them. Omit for all ages, which includes them."
},
"year_range": {
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "integer",
"maximum": 2026,
"minimum": 1999,
"description": "Last year of the range."
},
"from": {
"type": "integer",
"maximum": 2026,
"minimum": 1999,
"description": "First year of the range."
}
},
"description": "Inclusive year range; from must not be later than to. Its bounds span every database; the selected one holds a narrower span, and a range outside it is rejected with that database's span named. Omit for all years the database holds."
},
"cause_icd10": {
"anyOf": [
{
"type": "string",
"const": ""
},
{
"enum": [
"999--999",
"999-999"
],
"type": "string"
},
{
"type": "string",
"pattern": "^[A-Z][0-9]{2}(\\.[0-9]+)?(-[A-Z][0-9]{2}(\\.[0-9]+)?)?$",
"description": "ICD-10 underlying-cause code or range. WONDER takes a node of its ICD-10 tree — a chapter such as \"A00-B99\" (infectious) or \"V01-Y89\" (external causes), a block such as \"X40-X49\" (accidental poisoning) or \"C00-C97\" (malignant neoplasms), or a single code such as \"I21\" — and rejects any other span, e.g. \"X40-X44\", naming it in the error. List the codes (or blocks) to cover a span that is not a tree node."
},
{
"type": "array",
"items": {
"anyOf": [
{
"enum": [
"999--999",
"999-999"
],
"type": "string"
},
{
"type": "string",
"pattern": "^[A-Z][0-9]{2}(\\.[0-9]+)?(-[A-Z][0-9]{2}(\\.[0-9]+)?)?$",
"description": "ICD-10 code or range."
}
],
"description": "One list entry: an ICD-10 code or range, or the withheld-cause marker."
},
"maxItems": 50,
"description": "A list of up to 50 entries, each in the single-value form, matched as a union: a death counts once when it matches any of them, so a code set such as X40–X44 plus X60–X64 is one series with one set of rates. Repeated entries are ignored. An empty list reads as omitted."
}
],
"description": "Filter to ICD-10 underlying causes of death — the single condition CDC certified as having started the chain of events leading to death. Takes one code or range, or a list of them for a cause defined as a code set, e.g. drug overdose as [\"X40\",\"X41\",\"X42\",\"X43\",\"X44\",\"X60\",\"X61\",\"X62\",\"X63\",\"X64\",\"X85\",\"Y10\",\"Y11\",\"Y12\",\"Y13\",\"Y14\"]. Omit for all causes. Accepted by every database. \"999--999\" is not an ICD-10 code but CDC's own marker for deaths whose cause it is still withholding under the provisional database's six-month reporting lag, and the cause_code a chapter row carries for them; it counts that backlog, and only the \"provisional\" database offers it. \"999-999\", the cause_code a sub-chapter row carries for the same deaths, is accepted too and sent as \"999--999\". On that database CDC withholds external-cause (V01-Y89) and sudden-death (R95, R96) causes for the 24 weeks before its data-through date, so a filter reaching them — a block or chapter containing one included — undercounts those weeks; the notice names the cutoff."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"rows",
"rowCount",
"database",
"databaseTitle",
"caveats",
"cellNotes",
"messages",
"suppressedCount",
"effectiveQuery",
"totalCount"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cap": {
"type": "number",
"description": "Page size that ended this response — limit as applied, or its default when omitted. Present only when rows remain past the page."
},
"rows": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"null"
]
}
},
"description": "One page of the table CDC sent, in its order. Each row carries the group-by dimensions, then cause_code or cause_level when group_by adds one, then deaths, population, crude_rate, and age_adjusted_rate (per 100,000) when age standardization is possible — it is omitted when age_group is a grouping dimension or age_groups selects a single group, and it is the rate to compare across groups, since crude_rate moves with each group's age mix. Each rate is followed by its 95% confidence interval: crude_rate_lower and crude_rate_upper, then age_adjusted_rate_lower and age_adjusted_rate_upper when the row has age_adjusted_rate. The bounds are CDC's own published figures, never computed here, and are null wherever CDC sent no interval (a \"Not Applicable\" rate, for one); an \"Unreliable\" rate reads null but keeps the interval CDC published with it. Dimension values are CDC's own labels with only surrounding whitespace removed, so the same year keys identically across databases; nothing inside a label is changed, and on the provisional database a year reads \"2025 (provisional)\" or \"2026 (provisional and partial)\" rather than a bare year. A measure cell CDC returned as a status token instead of a number is null here; cellNotes names the cell and the token. totalCount says how many rows the whole table holds, and stagedTable, when present, holds all of them for SQL."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_query",
"rate_limited",
"upstream_error",
"staging_failed"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_query`: The request contradicts itself (a reversed year_range, a group_by dimension listed twice), asks for a combination CDC refuses (age_groups holding \"NS\" beside only some of the known age groups, leading_causes beside another dimension), groups into a table past the bound group_by states, does not fit the selected database (a year_range outside its span, mcd_icd10 or the withheld-cause marker where it is not offered), or WONDER itself rejected it, e.g. an ICD-10 code or range its tree does not hold. `rate_limited`: A request reached WONDER less than 15 seconds after the previous response to the same source IP finished, and WONDER returned 429. This server queues its own calls, so the earlier request usually came from another client sharing that IP. `upstream_error`: WONDER returned an unexpected response, was unreachable, or did not finish answering a request within 20 seconds. `staging_failed`: WONDER answered, but the whole table could not be staged for SQL beside the page. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"shown": {
"type": "number",
"description": "Number of rows returned in this response."
},
"notice": {
"type": "string",
"description": "Guidance on reading this response: where the page sits in the table and how to reach the rest, what CDC withheld or flagged and what that means for the counts, how the rows relate, and what the selected database means for the figures."
},
"caveats": {
"type": "array",
"items": {
"type": "string"
},
"description": "CDC-provided caveats and footnotes: data revisions, population-estimate sources, suppression and rate-reliability rules. CDC's links to its methodology pages are kept as Markdown links, e.g. \"[More information.](https://wonder.cdc.gov/wonder/help/ucd-expanded.html#Confidence-Intervals)\"."
},
"database": {
"type": "string",
"description": "WONDER dataset code the rows came from — e.g. \"D76\", \"D176\", \"D157\"."
},
"messages": {
"type": "array",
"items": {
"type": "string"
},
"description": "Every message CDC attached to this table, verbatim apart from links, which are kept as Markdown links; empty when it attached none. Some say rows were withheld before the table was sent — \"Rows with zero Deaths are hidden.\" and \"Rows with suppressed Deaths are hidden.\" — and others withhold nothing, such as the note that a leading_causes table is ordered by deaths. A withheld row is absent from rows entirely, with nothing in the table marking the gap. A stratum hidden for zero deaths recorded none, so deaths summed from rows stay complete; while the suppressed-deaths message is present, a stratum missing from rows may have been dropped rather than unobserved, and any count, ranking, or completeness claim drawn from rows is partial. The notice says which reading applies."
},
"rowCount": {
"type": "number",
"description": "Number of rows returned in this response."
},
"cellNotes": {
"type": "array",
"items": {
"type": "object",
"required": [
"row",
"column",
"token"
],
"properties": {
"row": {
"type": "number",
"description": "Zero-based index into this response's rows, relative to the page rather than the whole table."
},
"token": {
"type": "string",
"description": "Token CDC returned in place of a number: \"Suppressed\" (withheld for confidentiality, fewer than 10 persons), \"Unreliable\" (a rate CDC judges statistically unstable and replaces with this token — on D76 and D77 when it is computed from 20 or fewer deaths, and D176, D158, and D157 when its 95% confidence interval is wider than 160% of the rate, whatever the death count; the row's deaths and population stand), or \"Not Applicable\" (no population denominator)."
},
"column": {
"type": "string",
"description": "Measure column whose numeric value the token replaced."
}
},
"description": "One flagged measure cell: where it is and what CDC put there.",
"additionalProperties": false
},
"description": "One entry per measure cell in this response's rows that CDC returned as a status token rather than a number — the cells that read null in rows."
},
"truncated": {
"type": "boolean",
"description": "True when rows remain past the ones returned. Absent means this response runs to the end of the table, which is also the case for an offset past it."
},
"nextOffset": {
"type": "number",
"description": "Offset to pass on the next call to resume immediately after the last row returned. Present only when further rows remain."
},
"totalCount": {
"type": "number",
"description": "Rows in the whole table CDC returned — an exact count, taken before any page."
},
"stagedTable": {
"type": "string",
"description": "Name of the table holding all totalCount rows for SQL with cdc_dataframe_query — e.g. \"wonder_k3x9q2m7ab\" — in CDC's row order, with the columns of rows followed by a <measure>_status column per measure holding the token CDC returned in place of the value (null where the value is a number). Present when this call staged the table, which is dropped an hour after the last query that read it, or earlier, earliest-expiring first, once 200 are staged."
},
"databaseTitle": {
"type": "string",
"description": "CDC's own title for that database, naming the era and record type the rows describe — e.g. \"Underlying Cause of Death, 1999-2020\"."
},
"effectiveQuery": {
"type": "string",
"description": "Human-readable summary of the grouping and filters sent to WONDER."
},
"suppressedCount": {
"type": "number",
"description": "How many cellNotes carry the \"Suppressed\" token, counted over the rows in this response."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Use the cdc_* tools to access CDC public health data. Most tools query the CDC Open Data portal (~1,080 datasets) via the Socrata SODA API: search the catalog, inspect dataset schemas, and run SoQL queries across vaccinations, behavioral risk, surveillance, and other domains. Datasets are addressed by four-by-four IDs (e.g. bi63-dtpu); the catalog is heterogeneous, so the workflow is discover → inspect schema → query. The category and tags filters on cdc_discover_datasets are matched against the catalog's own controlled vocabulary, so a value it does not carry matches nothing — cdc_list_catalog_vocabulary lists both vocabularies with their entry counts. Socrata values come back as strings (geo columns as GeoJSON objects), and a column like "year" may be numeric in one dataset and text in another — match WHERE literals to the actual dataType from the schema. Separately, cdc_query_wonder queries CDC WONDER — a different CDC system — for national mortality statistics (deaths, population, crude and age-adjusted rates with their 95% confidence intervals), broken out by year, month, age, sex, race, Hispanic origin, or underlying cause and filtered by ICD-10 cause; its database input selects one of five mortality databases (final and provisional, underlying-cause and multiple-cause) covering 1999 through the current year. It is national-only, and CDC rejects requests made less than 15 seconds apart, so consecutive calls are spaced automatically. Where this server stages tables — cdc_dataframe_describe and cdc_dataframe_query are listed — a cdc_query_wonder call at offset 0 that leaves rows past its page (100 rows unless limit is set) stages the whole table and names it in stagedTable, and cdc_dataframe_query ranks, compares, or pages it with SQL without another WONDER request; without them, an omitted limit returns up to 10,000 rows in one call. The cdc-health-guide skill (skill://cdc-health-guide/SKILL.md) carries the gates for comparing death rates across groups and years, race beside Hispanic origin, the provisional database's partial year and withheld causes, finding a peak month, splicing databases, and reading stratified Socrata tables.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.