search_datasets

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

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/search_datasets for the schema, then POST the same URL with its arguments for the data.

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.

Parameters

NameTypeRequiredDescription
querystringyesSearch query, e.g. “vaccination rates”, “hospital readmissions”.
limitnumbernoMax results, 1-50 (default 10).
offsetnumbernoSkip this many results, for paging (default 0).

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 September 22, 2026