ca_facility_search

Pack: ca-hcai-facilities · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

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

Search California licensed health facilities (hospitals, skilled nursing, clinics, psychiatric and recovery facilities) in the California facility list published by the Department of Health Care Access and Information (HCAI) as open data, joined to the HCAI Licensed Healthcare Facility Listing for facility number, licence category and licensed beds. Filter by name words, county, city, zip, license_type (“hospital” covers general acute care and psychiatric hospitals), status (Open or Closed), or lat/lon with radius in miles. Returns facility_number (HCAI id), state_facility_id, name, license_type, license_category, status, address, county, latitude, longitude, licensed_beds, date_opened, date_closed. Staff and owner contact details are never returned.

Parameters

NameTypeRequiredDescription
namestringyesWords from the facility name, e.g. “Cedars-Sinai”.
countystringnoCalifornia county, e.g. “Los Angeles”.
citystringnoCity name, exact match.
zipstringno5-digit ZIP code.
license_typestringnoLicence type words, e.g. “hospital”, “General Acute Care”, “Licensed Clinic”, “Skilled Nursing”.
statusstringnoOpen or Closed.
latnumbernoLatitude for a radius search; give with lon.
lonnumbernoLongitude for a radius search; give with lat.
radiusnumbernoRadius in miles for lat/lon (default 10, max 100).
limitnumbernoRows to return (default 25, max 100).
offsetnumbernoRows to skip for paging.

Example call

Arguments

{
  "county": "Los Angeles",
  "license_type": "hospital",
  "status": "Open",
  "limit": 5
}

curl

curl -X POST https://gateway.pipeworx.io/ca-hcai-facilities/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ca_facility_search","arguments":{"county":"Los Angeles","license_type":"hospital","status":"Open","limit":5}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('ca_facility_search', {
  "county": "Los Angeles",
  "license_type": "hospital",
  "status": "Open",
  "limit": 5
});

Response shape

FieldTypeDescription
countnumber
has_moreboolean
next_offsetnumber
facilitiesarray
searchedobject
data_as_ofstring
sourcestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number"
    },
    "has_more": {
      "type": "boolean"
    },
    "next_offset": {
      "type": "number"
    },
    "facilities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "facility_number": {
            "type": "string"
          },
          "state_facility_id": {
            "type": "string"
          },
          "license_number": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "license_type": {
            "type": "string"
          },
          "license_category": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "zip": {
            "type": "string"
          },
          "county": {
            "type": "string"
          },
          "owner_business_name": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "licensed_beds": {
            "type": "number"
          },
          "date_opened": {
            "type": "string"
          },
          "date_closed": {
            "type": "null"
          },
          "in_hcai_listing": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      }
    },
    "searched": {
      "type": "object",
      "properties": {
        "name": {
          "type": "null"
        },
        "county": {
          "type": "string"
        },
        "city": {
          "type": "null"
        },
        "zip": {
          "type": "null"
        },
        "license_type": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "near": {
          "type": "null"
        }
      },
      "additionalProperties": true
    },
    "data_as_of": {
      "type": "string"
    },
    "source": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the ca-hcai-facilities pack
{
  "mcpServers": {
    "ca-hcai-facilities": {
      "url": "https://gateway.pipeworx.io/ca-hcai-facilities/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build December 6, 2026