# Healthdata [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/pipeworx-io/mcp-healthdata  
**GitHub Stars:** 0  
**npm Downloads (last month):** 550  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/healthdata

## Description
HealthData.gov MCP — wraps HealthData.gov CKAN API (free, no auth)

## Tools
Capabilities this server exposes over MCP:

- **search_datasets** — Search HealthData.gov for public-health datasets by keyword (e.g. "COVID hospitalizations", "Medicare spending", "opioid prescriptions"). Returns each dataset's Socrata id (a 4x4 like "g62h-syeh"), title, description, owning agency, tags, when the data was last updated, and its page-view count. Pass the id to get_dataset for full metadata or to get_rows to read the actual rows.
- **get_dataset** — Full metadata for one HealthData.gov dataset by its Socrata id (a 4x4 like "g62h-syeh", returned by search_datasets). Returns title, description, owning agency, licence, every column with its type, row count and the last data update. NOTE: HealthData.gov migrated off CKAN, so an old CKAN package id or slug will NOT resolve — search for the dataset again to get its 4x4.
- **get_rows** — Read actual rows from a HealthData.gov dataset by its Socrata 4x4 id. Optional SoQL `where` (e.g. "state = 'CA'") and `order` (e.g. "date DESC"). Use get_dataset first to see the column names. This returns the DATA, not a download link.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "healthdata": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-healthdata"]
  }
}
```

## Documentation

## What Healthdata MCP server does

Healthdata exposes HealthData.gov’s public datasets to MCP-compatible clients. The integration is independent and unofficial, and it accesses the catalog through Pipeworx. It is designed for agents that need to find relevant public-health data, understand a dataset’s schema, and retrieve records for analysis.

Dataset discovery accepts keywords such as COVID-19 hospitalizations, Medicare spending, or opioid prescriptions. Search results include a dataset’s Socrata identifier, title, description, owning agency, tags, last-update time, and page-view count. The Socrata identifier uses the familiar four-by-four format, such as `g62h-syeh`.

## How it works

The hosted MCP endpoint is:

```text
https://gateway.pipeworx.io/healthdata/mcp
```

A client connects to that URL and receives the Healthdata tools. The endpoint also exposes shared Pipeworx gateway tools, including routing and discovery functions, so the tool list is larger than the three Healthdata-specific operations. The full gateway is available at `https://gateway.pipeworx.io/mcp` when an agent needs direct access to all Pipeworx packs.

A typical data workflow starts with `search_datasets`, passes the returned Socrata ID to `get_dataset`, and then calls `get_rows`. The metadata step identifies available columns and their types before a query is written. Row retrieval returns dataset contents, not a download URL.

## Setup and configuration

For a hosted connection, add the endpoint to an MCP client configuration:

```json
{
  "mcpServers": {
    "healthdata": {
      "url": "https://gateway.pipeworx.io/healthdata/mcp"
    }
  }
}
```

The package also supports a local stdio bridge:

```json
{
  "mcpServers": {
    "healthdata": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-healthdata"]
    }
  }
}
```

The npm bridge forwards calls to the hosted gateway and therefore needs network access. Anonymous use is available with a limit of 50 calls per day. Setting `PIPEWORX_API_KEY` with a key from Pipeworx raises the allowance to 200 calls per day. Set `PIPEWORX_META_TOOLS=1` if the local bridge should also list the shared gateway tools.

Clients without MCP support can call the HTTP tool API directly. For example, dataset search uses `POST https://gateway.pipeworx.io/v1/tools/healthdata_search_datasets` with a JSON body containing a `query` field.

## Tools and capabilities

- `search_datasets` finds HealthData.gov datasets by keyword and returns identifiers, descriptive fields, ownership, tags, update dates, and page views.
- `get_dataset` retrieves metadata for a Socrata 4x4, including the licence, columns and types, row count, and last data update.
- `get_rows` reads records from a dataset and accepts optional SoQL `where` and `order` expressions, such as filtering to California or sorting dates descending.
- `ask_pipeworx` and other shared gateway tools can be enabled on the local bridge or are available through the hosted pack endpoint.

## Limitations and notes

Use Socrata 4x4 identifiers with the metadata and row tools. Older CKAN package IDs and slugs do not resolve after HealthData.gov’s migration away from CKAN; search again to obtain the current identifier. The service is keyless for initial use, but anonymous calls are quota-limited. The npm bridge has no offline mode, and HTTPS proxy behavior depends on the Node runtime configuration.

_Full upstream README: https://allmcps.com/mcp/healthdata/readme_

