cdc-health-mcp-server

v0.12.1 pre-1.0

Search and query CDC public health data — mortality, vaccinations, surveillance, behavioral risk (Socrata SODA API) via MCP. STDIO or Streamable HTTP.

cdc.caseyjhand.com/mcp
claude mcp add --transport http cdc-health-mcp-server https://cdc.caseyjhand.com/mcp
codex mcp add cdc-health-mcp-server --url https://cdc.caseyjhand.com/mcp
{
  "mcpServers": {
    "cdc-health-mcp-server": {
      "url": "https://cdc.caseyjhand.com/mcp"
    }
  }
}
gemini mcp add --transport http cdc-health-mcp-server https://cdc.caseyjhand.com/mcp
{
  "mcpServers": {
    "cdc-health-mcp-server": {
      "command": "bunx",
      "args": [
        "mcp-remote",
        "https://cdc.caseyjhand.com/mcp"
      ]
    }
  }
}
{
  "mcpServers": {
    "cdc-health-mcp-server": {
      "type": "http",
      "url": "https://cdc.caseyjhand.com/mcp"
    }
  }
}
curl -X POST https://cdc.caseyjhand.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"1.0.0"}}}'

Tools

7

read 5

cdc_discover_datasets

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.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cdc_discover_datasets",
    "arguments": {}
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "domain": {
      "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.",
      "type": "string",
      "enum": [
        "data.cdc.gov",
        "chronicdata.cdc.gov"
      ]
    },
    "query": {
      "description": "Full-text search across dataset names and descriptions (e.g., \"diabetes mortality\", \"lead exposure children\").",
      "type": "string"
    },
    "category": {
      "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.",
      "type": "string"
    },
    "tags": {
      "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.",
      "type": "array",
      "items": {
        "type": "string",
        "description": "Tag value"
      }
    },
    "asset_types": {
      "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.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "dataset",
          "filter",
          "chart",
          "map",
          "story",
          "file",
          "href"
        ]
      }
    },
    "limit": {
      "default": 10,
      "description": "Results to return (default 10, max 10,000). offset plus limit must not exceed 10000.",
      "type": "integer",
      "minimum": 1,
      "maximum": 10000
    },
    "offset": {
      "default": 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.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9999
    },
    "order": {
      "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.",
      "type": "string",
      "enum": [
        "dataset_id",
        "relevance"
      ]
    }
  },
  "required": [
    "domain",
    "limit",
    "offset"
  ],
  "additionalProperties": false
}
view source ↗

cdc_get_dataset_schema

Get a CDC dataset's SoQL fields, display labels, types, descriptions, row count and last update. Filters identify their parent dataset. Publisher metadata includes coverage, update frequency, citation, license and attribution when available. A chart or map's error names its parent dataset. A file's error supplies its download URL and any recorded name and size. The first 100 columns are returned by default. Continue with column_offset. For a dataset description beyond 4,000 characters, pass full_description: true. Get dataset IDs from cdc_discover_datasets.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cdc_get_dataset_schema",
    "arguments": {
      "datasetId": "<datasetId>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "domain": {
      "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.",
      "type": "string",
      "enum": [
        "data.cdc.gov",
        "chronicdata.cdc.gov"
      ]
    },
    "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": {
      "default": 100,
      "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.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "column_offset": {
      "default": 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.",
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    },
    "full_description": {
      "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.",
      "type": "boolean"
    }
  },
  "required": [
    "domain",
    "datasetId",
    "column_limit",
    "column_offset",
    "full_description"
  ],
  "additionalProperties": false
}
view source ↗

cdc_list_catalog_vocabulary

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.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cdc_list_catalog_vocabulary",
    "arguments": {}
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "domain": {
      "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.",
      "type": "string",
      "enum": [
        "data.cdc.gov",
        "chronicdata.cdc.gov"
      ]
    },
    "filter": {
      "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.",
      "type": "string",
      "maxLength": 500
    },
    "tag_limit": {
      "default": 50,
      "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.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "tag_offset": {
      "default": 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.",
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    }
  },
  "required": [
    "domain",
    "tag_limit",
    "tag_offset"
  ],
  "additionalProperties": false
}
view source ↗

cdc_query_dataset

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.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cdc_query_dataset",
    "arguments": {
      "datasetId": "<datasetId>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "domain": {
      "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.",
      "type": "string",
      "enum": [
        "data.cdc.gov",
        "chronicdata.cdc.gov"
      ]
    },
    "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."
    },
    "search": {
      "description": "Full-text search across all text columns. For precise filtering use the where parameter instead.",
      "type": "string"
    },
    "select": {
      "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}\".",
      "type": "string"
    },
    "where": {
      "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'\".",
      "type": "string"
    },
    "group": {
      "description": "SoQL GROUP BY clause. Requires aggregate functions in select.",
      "type": "string"
    },
    "having": {
      "description": "SoQL HAVING clause. Filters aggregated results.",
      "type": "string"
    },
    "order": {
      "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.",
      "type": "string"
    },
    "limit": {
      "default": 100,
      "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.",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "offset": {
      "default": 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.",
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    }
  },
  "required": [
    "domain",
    "datasetId",
    "limit",
    "offset"
  ],
  "additionalProperties": false
}
view source ↗

cdc_query_wonder

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.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cdc_query_wonder",
    "arguments": {}
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "database": {
      "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.",
      "default": "underlying_1999_2020",
      "type": "string",
      "enum": [
        "underlying_1999_2020",
        "provisional",
        "underlying_2018_2024",
        "multiple_1999_2020",
        "multiple_2018_2024"
      ]
    },
    "group_by": {
      "default": [
        "year"
      ],
      "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.",
      "minItems": 1,
      "maxItems": 4,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "year",
          "age_group",
          "sex",
          "race",
          "icd_chapter",
          "icd_subchapter",
          "cause_113",
          "leading_causes",
          "injury_intent",
          "hispanic_origin",
          "month"
        ]
      }
    },
    "cause_icd10": {
      "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.",
      "anyOf": [
        {
          "type": "string",
          "const": ""
        },
        {
          "type": "string",
          "enum": [
            "999--999",
            "999-999"
          ]
        },
        {
          "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."
        },
        {
          "maxItems": 50,
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "999--999",
                  "999-999"
                ]
              },
              {
                "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."
          },
          "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."
        }
      ]
    },
    "mcd_icd10": {
      "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.",
      "anyOf": [
        {
          "type": "string",
          "const": ""
        },
        {
          "type": "string",
          "enum": [
            "999--999",
            "999-999"
          ]
        },
        {
          "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)."
        },
        {
          "maxItems": 50,
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "999--999",
                  "999-999"
                ]
              },
              {
                "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."
          },
          "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."
        }
      ]
    },
    "sex": {
      "default": "all",
      "description": "Filter by sex.",
      "type": "string",
      "enum": [
        "all",
        "male",
        "female"
      ]
    },
    "age_groups": {
      "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.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "1",
          "1-4",
          "5-14",
          "15-24",
          "25-34",
          "35-44",
          "45-54",
          "55-64",
          "65-74",
          "75-84",
          "85+",
          "NS"
        ]
      }
    },
    "year_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.",
      "type": "object",
      "properties": {
        "from": {
          "type": "integer",
          "minimum": 1999,
          "maximum": 2026,
          "description": "First year of the range."
        },
        "to": {
          "type": "integer",
          "minimum": 1999,
          "maximum": 2026,
          "description": "Last year of the range."
        }
      },
      "required": [
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "limit": {
      "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.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "offset": {
      "default": 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.",
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    }
  },
  "required": [
    "database",
    "group_by",
    "sex",
    "offset"
  ],
  "additionalProperties": false
}
view source ↗

disabled 2

cdc_dataframe_describe

List the tables cdc_query_wonder has staged on this server for SQL, each with its row count, its columns and their types, and when it is dropped. cdc_query_wonder stages the whole WONDER table when a call at offset 0 leaves rows past the page it returns, and names it in stagedTable. A staged table holds the columns of the inline rows in CDC's row order, then a <measure>_status column for each measure — the token CDC returned in place of the value ("Suppressed", "Unreliable", "Not Applicable"), null where the value is a number. Dimension columns are text, so a year compares as '2024'. Pass table to describe one table. A table is dropped an hour after the last query that read it, or earlier, earliest-expiring first, once 200 are staged, and the list can include tables other sessions on this server staged.

disabledwould be read

Disabled. This deployment runs without a DataCanvas, so cdc_query_wonder stages no tables to query.

schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "table": {
      "description": "A table name as cdc_query_wonder returned it in stagedTable, e.g. \"wonder_k3x9q2m7ab\". Omit to list every staged table.",
      "type": "string",
      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,62}$"
    }
  },
  "additionalProperties": false
}
view source ↗

cdc_dataframe_query

Rank, compare, aggregate, or join staged WONDER tables with one read-only DuckDB SELECT. Use the stagedTable from cdc_query_wonder or a name from cdc_dataframe_describe. Tables keep CDC row order: SELECT * FROM <name> LIMIT <n> OFFSET <m> continues an inline page without another WONDER request. Each <measure>_status holds CDC's token (Suppressed, Unreliable, Not Applicable) or null for a numeric value. Null sorts last in either direction. Dimensions are text, so compare years to '2024'. BIGINT results such as count(*) are strings. Cast to DOUBLE for a number. DuckDB measures rows against a 1,000,000-byte JSON ceiling. On result_too_large, project fewer columns, aggregate, or lower limit. File, network, and settings reads are refused. Tables expire an hour after their last read, or earlier, earliest-expiring first, at 200 tables.

disabledwould be read

Disabled. This deployment runs without a DataCanvas, so cdc_query_wonder stages no tables to query.

schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "sql": {
      "type": "string",
      "minLength": 1,
      "description": "One read-only SELECT (DuckDB SQL) over staged tables, named as stagedTable or cdc_dataframe_describe gives them. A trailing semicolon is accepted."
    },
    "limit": {
      "default": 100,
      "description": "Most rows to return (default 100). At most 1,000 rows come back per call; a larger limit is lowered to 1,000 and the notice says so. Put LIMIT and OFFSET in the SQL to page past them.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "sql",
    "limit"
  ],
  "additionalProperties": false
}
view source ↗

Resources

2

Top 50 CDC catalog entries by popularity with names, categories, asset types, column counts, and update timestamps. Provides an overview of the CDC data landscape for orientation; an entry whose columnCount is 0 is not tabular and yields no data from cdc_get_dataset_schema or cdc_query_dataset. Use cdc_discover_datasets for full catalog search with filtering and pagination.

uri cdc://datasets mime application/json

Dataset metadata and column schema for a specific CDC dataset, addressable by URI. Carries the first 100 columns, the dataset's total column count, and a truncation flag; call cdc_get_dataset_schema with column_offset for the columns beyond that window. The dataset description is capped at 4,000 characters, with descriptionTruncated and descriptionLength set when cut; call cdc_get_dataset_schema with full_description: true for the whole text. The row count and its rowCountSource ("live" or "cached") match what cdc_get_dataset_schema reports for the same ID. A filter carries parentId, the dataset it is a view of; a chart, map, or file has no schema of its own, and the failure names the dataset a chart or map is built on, or a file's name, size in bytes, and download URL. Where the publisher recorded them, temporalCoverage, updateFrequency, geographicCoverage, citation, license, and attribution carry its own text in no fixed format, as on cdc_get_dataset_schema.

uri cdc://datasets/{datasetId} mime application/json

Prompts

1

Structured workflow for investigating a public health question across CDC data. Picks between the two systems this server reads — CDC WONDER for national mortality (1999–2026, final and provisional), the Socrata catalog for everything else — then guides through: discover relevant datasets, inspect schemas, query for baseline data, compare across time/geography/demographics, and synthesize findings.

  • topicrequired — The health topic or question to investigate (e.g., "diabetes mortality trends by state", "childhood vaccination coverage over time").
  • timeRange — Time period of interest (e.g., "2015-2023", "last 10 years"). Defaults to all available years.
  • geography — Geographic scope — "national", a specific state name (e.g., "California"), or "all states" for comparison. Defaults to national.

Extensions

1

io.modelcontextprotocol/skills

{
  "directoryRead": true
}