cdc-health-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cdc-health-mcp-serverfind CDC datasets on diabetes prevalence"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Public Hosted Server: https://cdc.caseyjhand.com/mcp
Tools
Four tools for discovering and querying CDC public health data. Three query the CDC Open Data portal (Socrata); one queries CDC WONDER mortality statistics:
Tool | Description |
| Search the catalog by keyword, category, or tag. Entry point for all queries. |
| Fetch column schema, row count, and metadata for a dataset. Essential before writing SoQL queries. |
| Execute SoQL queries — filter, aggregate, sort, full-text search, and field selection. |
| Query CDC WONDER for national mortality statistics (deaths, population, crude/age-adjusted rates) by year, age, sex, and race, filtered by ICD-10 cause. |
cdc_discover_datasets
Search the CDC dataset catalog to find relevant datasets.
Full-text search across dataset names and descriptions
Filter by domain category (e.g., "NNDSS", "Vaccinations", "Behavioral Risk Factors")
Filter by domain tags (e.g.,
["covid19", "surveillance"])Returns dataset IDs, names, truncated descriptions, a column count with a short column sample, and update timestamps — use
cdc_get_dataset_schemafor the full column listPagination via offset for browsing large result sets
domainselects the portal:data.cdc.gov(default) orchronicdata.cdc.gov
cdc_get_dataset_schema
Fetch the full column schema for a specific dataset.
Column names, data types, and descriptions
Row count and last-updated timestamp
Essential for understanding column types before writing
$whereclausesAccepts four-by-four dataset identifiers (e.g.,
bi63-dtpu)domainselects the portal hosting the dataset:data.cdc.gov(default) orchronicdata.cdc.gov
cdc_query_dataset
Execute SoQL queries against any CDC dataset.
Full SoQL support:
$select,$where,$group,$having,$orderFull-text search across all text columns via
$qUp to 5,000 rows per request with pagination
Returns the assembled SoQL query string for debugging
All response values are strings (per SODA v2.1) — parse based on column type metadata
domainselects the portal hosting the dataset:data.cdc.gov(default) orchronicdata.cdc.gov
cdc_query_wonder
Query CDC WONDER for national US mortality statistics from the Underlying Cause of Death database (D76, 1999–2020) — a separate CDC system from the Socrata datasets the other tools query.
Group results by any of
year,age_group,sex,race(1–4 dimensions)Filter by ICD-10 underlying cause, sex, ten-year age groups, and year range
Returns deaths, population, and crude death rate, plus age-adjusted rate when not grouping by age
National totals only — sub-national (state/county) breakdowns are not available through the WONDER API (CDC vital-statistics policy)
CDC suppresses any cell with fewer than 10 deaths (returned as
null)Rate-limited to one request per ~15 seconds; requests are spaced automatically
Related MCP server: mcp-data-connecticut
Resources and prompt
Type | Name | Description |
Resource |
| Top 50 datasets by popularity for orientation |
Resource |
| Dataset metadata and column schema (equivalent to schema tool) |
Prompt |
| Guided 5-step workflow: discover, inspect, baseline query, compare, synthesize |
Features
Built on @cyanheads/mcp-ts-core:
Declarative tool definitions — single file per tool, framework handles registration and validation
Unified error handling across all tools
Pluggable auth (
none,jwt,oauth)Swappable storage backends:
in-memory,filesystem,Supabase,Cloudflare KV/R2/D1Structured logging with optional OpenTelemetry tracing
Runs locally (stdio/HTTP) or on Cloudflare Workers from the same codebase
CDC-specific:
Wraps the Socrata SODA API v2.1 — no auth required, optional app token for higher rate limits
Adds CDC WONDER mortality access (
cdc_query_wonder) — national deaths, population, and crude/age-adjusted rates from the Underlying Cause of Death database (1999–2020), a separate XML-over-HTTP CDC systemDiscovery-first approach for a heterogeneous catalog (~1,487 datasets across many health domains)
Two CDC Socrata portals via the
domaininput —data.cdc.gov(default) andchronicdata.cdc.gov(PLACES small-area estimates, the Heart Disease & Stroke Atlas, Environmental Public Health Tracking); restricted to this allowlistConservative request spacing for rate limit compliance (no rate-limit headers returned by Socrata)
Handles SODA string-typed responses — all values returned as strings, parsed via column type metadata
Getting started
Public Hosted Instance
A public instance is available at https://cdc.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"cdc-health-mcp-server": {
"type": "streamable-http",
"url": "https://cdc.caseyjhand.com/mcp"
}
}
}Self-Hosted / Local
Add the following to your MCP client configuration file.
{
"mcpServers": {
"cdc-health-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/cdc-health-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"cdc-health-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/cdc-health-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with Docker:
{
"mcpServers": {
"cdc-health-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/cdc-health-mcp-server:latest"]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcpPrerequisites
Bun v1.3.2 or higher.
Optional: Socrata app token for higher rate limits.
Installation
Clone the repository:
git clone https://github.com/cyanheads/cdc-health-mcp-server.gitNavigate into the directory:
cd cdc-health-mcp-serverInstall dependencies:
bun installConfiguration
All configuration is validated at startup via Zod schemas in src/config/server-config.ts. Key environment variables:
Variable | Description | Default |
| Transport: |
|
| HTTP server port |
|
| Authentication: |
|
| Log level ( |
|
| Directory for log files (Node.js only) |
|
| Storage backend: |
|
| Socrata app token for higher rate limits | none |
| Base URL for SODA API requests |
|
| Base URL for Socrata Discovery API |
|
| Enable OpenTelemetry instrumentation (spans, metrics, completion logs) |
|
Running the server
Local development
Build and run the production version:
# One-time build bun run rebuild # Run the built server bun run start:http # or bun run start:stdioRun checks and tests:
bun run devcheck # Lints, formats, type-checks, and more bun run test # Runs the test suite
Project structure
Directory | Purpose |
| Tool definitions ( |
| Resource definitions. Catalog overview and dataset detail. |
| Prompt definitions. Health trend analysis workflow. |
| Socrata SODA API service layer — HTTP client, catalog search, metadata, queries. |
| Server-specific environment variable parsing and validation with Zod. |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor logging,ctx.statefor storageRegister new tools and resources in the
createApp()arrays
Contributing
Issues and pull requests are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides access to 73 CDC public health datasets covering disease surveillance, vaccination tracking, behavioral risk factors, environmental health, and outbreak detection across 18 surveillance systems through the Socrata Open Data API.Last updated2MIT
- Alicense-qualityCmaintenanceEnables querying and searching Connecticut Open Data via Socrata SoQL API, allowing AI agents to access state agency, public health, education, and transportation datasets using natural language or structured queries.Last updated28MIT
- Alicense-qualityCmaintenanceEnables querying and searching the Providence Open Data catalog via Socrata SoQL, including dataset search, data querying, and metadata retrieval.Last updated26MIT
- Alicense-qualityCmaintenanceEnables querying and exploring FCC Open Data datasets via Socrata SoQL, including dataset search, metadata retrieval, and data querying.Last updated29MIT
Related MCP Connectors
Search and query government open-data portals (Socrata SODA API).
HealthData.gov MCP — wraps HealthData.gov CKAN API (free, no auth)
Colorado open data via Socrata SoQL — business, government, health, demographics.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyanheads/cdc-health-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server