search_datasets

Pack: healthdata · Endpoint: https://gateway.pipeworx.io/healthdata/mcp

Search HealthData.gov for public health datasets by keyword (e.g., “COVID hospitalizations”, “Medicare spending”, “opioid prescriptions”). Returns dataset titles, descriptions, organizations, and resource links.

Parameters

NameTypeRequiredDescription
querystringyesSearch query (e.g., “vaccination rates”, “hospital readmissions”, “air quality health”)
limitnumbernoMax results to return (1-50, default 10)

Example call

Arguments

{
  "query": "COVID-19 hospitalizations"
}

curl

curl -X POST https://gateway.pipeworx.io/healthdata/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_datasets","arguments":{"query":"COVID-19 hospitalizations"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_datasets', {
  "query": "COVID-19 hospitalizations"
});

More examples

{
  "query": "opioid prescriptions by state",
  "limit": 20
}

Response shape

Always returns: total, results

FieldTypeDescription
totalnumberTotal number of datasets matching the search query
resultsarrayArray of matching datasets
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "description": "Total number of datasets matching the search query"
    },
    "results": {
      "type": "array",
      "description": "Array of matching datasets",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Dataset package ID"
          },
          "name": {
            "type": "string",
            "description": "Dataset name"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Dataset title"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Dataset description (truncated to 300 chars)"
          },
          "organization": {
            "type": [
              "string",
              "null"
            ],
            "description": "Organization name that published the dataset"
          },
          "created": {
            "type": [
              "string",
              "null"
            ],
            "description": "Dataset creation timestamp"
          },
          "modified": {
            "type": [
              "string",
              "null"
            ],
            "description": "Dataset last modified timestamp"
          },
          "tags": {
            "type": "array",
            "description": "Dataset tags/keywords",
            "items": {
              "type": "string"
            }
          },
          "num_resources": {
            "type": "number",
            "description": "Number of resources in the dataset"
          },
          "resource_formats": {
            "type": "array",
            "description": "List of resource file formats (e.g., CSV, JSON)",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "name",
          "title",
          "description",
          "organization",
          "created",
          "modified",
          "tags",
          "num_resources",
          "resource_formats"
        ]
      }
    }
  },
  "required": [
    "total",
    "results"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026