Skip to main content
MCP server CX Codex

cdc-health-mcp-server — Claude Code MCP server for CDC data

Lets your agent search the CDC open data catalog, read dataset schemas, run SoQL queries and pull mortality figures from CDC WONDER.

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http cdc-health-mcp-server https://cdc.caseyjhand.com/mcp
Open on GitHub

What cdc-health-mcp-server does

The server sits between your agent and two CDC sources: the open data portal and CDC WONDER. Five tools come with it. One searches the dataset catalog, another returns a dataset's columns and row count, a third lists the catalog's categories and tags with entry counts, a fourth runs SoQL queries with filtering, grouping and full-text search, and the fifth queries WONDER for national mortality, population and death rates. Two resources mirror part of that: cdc://datasets for the most-viewed catalog entries and cdc://datasets/{datasetId} for one dataset's metadata. A prompt named analyze_health_trend walks through a health question step by step.

Transport is STDIO or Streamable HTTP. A public host at https://cdc.caseyjhand.com/mcp means you can skip running anything locally. The local route needs npx and a CDC app token passed as CDC_APP_TOKEN, alongside MCP_LOG_LEVEL, MCP_TRANSPORT_TYPE, MCP_HTTP_HOST and MCP_HTTP_PORT.

Watch the identifiers. cdc_get_dataset_schema expects a four-by-four datasetId such as bi63-dtpu, and charts or maps in the catalog are not tabular — querying one fails with not_queryable. Paging through rows without a unique tie-breaker in order gives unstable results, and the response tells you when that is the case.

What it helps with

  • find a CDC dataset by keyword, category or tag
  • inspect a dataset's columns and row count before querying
  • pull mortality by year, sex and race from CDC WONDER
  • filter and aggregate catalog data with SoQL
  • list catalog categories and tags with entry counts

Example prompts for the agent

  • Find CDC datasets about vaccination and show me their schemas
  • Pull mortality by year and sex from the underlying_2018_2024 database
  • Count catalog entries per category in the CDC catalog

How to install cdc-health-mcp-server

1Platform CLI: remote server

claude mcp add --transport http cdc-health-mcp-server https://cdc.caseyjhand.com/mcp

2Platform CLI

claude mcp add --env CDC_APP_TOKEN=<CDC_APP_TOKEN> --env MCP_LOG_LEVEL=<MCP_LOG_LEVEL> --env MCP_TRANSPORT_TYPE=<MCP_TRANSPORT_TYPE> --env MCP_HTTP_HOST=<MCP_HTTP_HOST> --env MCP_HTTP_PORT=<MCP_HTTP_PORT> --transport stdio cdc-health-mcp-server -- npx -y @cyanheads/cdc-health-mcp-server

Replace <…> with your own values. 2 more environment variables are in the server README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about cdc-health-mcp-server

How do I install cdc-health-mcp-server in Claude Code?

For the hosted server: claude mcp add --transport http cdc-health-mcp-server https://cdc.caseyjhand.com/mcp. To run it locally: `claude mcp add --env CDC_APP_TOKEN=<CDC_APP_TOKEN> --env MCP_LOG_LEVEL=<MCP_LOG_LEVEL> --env MCP_TRANSPORT_TYPE=<MCP_TRANSPORT_TYPE> --env MCP_HTTP_HOST=<MCP_HTTP_HOST> --env MCP_HTTP_PORT=<MCP_HTTP_PORT> --transport stdio cdc-health-mcp-server -- npx -y @cyanheads/cdc-health-mcp-server`.

What does cdc-health-mcp-server do?

It searches the CDC open data catalog, returns dataset schemas and runs SoQL queries against them. A separate tool fetches mortality statistics from CDC WONDER across five databases.

Which CDC WONDER databases can I query?

Five of them: underlying_1999_2020 (the default), provisional, underlying_2018_2024, multiple_1999_2020 and multiple_2018_2024. Grouping by year, age group, sex or race works at the national level only.

Similar MCP servers

All MCP servers for Data and databases →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor