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
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | Words from the facility name, e.g. “Cedars-Sinai”. |
county | string | no | California county, e.g. “Los Angeles”. |
city | string | no | City name, exact match. |
zip | string | no | 5-digit ZIP code. |
license_type | string | no | Licence type words, e.g. “hospital”, “General Acute Care”, “Licensed Clinic”, “Skilled Nursing”. |
status | string | no | Open or Closed. |
lat | number | no | Latitude for a radius search; give with lon. |
lon | number | no | Longitude for a radius search; give with lat. |
radius | number | no | Radius in miles for lat/lon (default 10, max 100). |
limit | number | no | Rows to return (default 25, max 100). |
offset | number | no | Rows 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
| Field | Type | Description |
|---|---|---|
count | number | |
has_more | boolean | |
next_offset | number | |
facilities | array | |
searched | object | |
data_as_of | string | |
source | string |
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.