@pipeworx/ca-hcai-facilities

Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/ca-hcai-facilities’s. Install: one-click buttons

Connect to just the @pipeworx/ca-hcai-facilities pack

https://gateway.pipeworx.io/ca-hcai-facilities/mcp — only @pipeworx/ca-hcai-facilities’s own tools, nothing else in the catalog.

No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.

Tools: 2

California health facility directory and licence history: hospitals, skilled nursing facilities, clinics, psychiatric and recovery facilities, from the California Department of Health Care Access and Information (HCAI) open data.

Tools

  • ca_facility_search(name?, county?, city?, zip?, license_type?, status?, lat?, lon?, radius?, limit?, offset?) — facilities from the state facility list joined to the HCAI Licensed Healthcare Facility Listing. Each row has facility_number (HCAI id), state_facility_id, license_number, name, license_type, license_category, status, address, county, latitude, longitude, licensed_beds, date_opened, date_closed, owner_business_name. license_type: "hospital" covers general acute care, psychiatric and chemical-dependency hospitals and psychiatric health facilities. A search that matches nothing returns count: 0 and a message naming what was searched.
  • ca_facility_license_history(facility_number? | name?, snapshots?) — one facility as it appeared in each semi-annual Licensed Healthcare Facility Listing snapshot, newest first (the current listing, then June and December back to December 2016), with name, status, status date, licence type and category, licensed beds and licence number, and a changes list between snapshots. Reads the newest 6 snapshots by default (up to 12) and returns snapshots_read and snapshots_not_read. A snapshot that could not be read is an entry with error, never counted as “not found”.

Auth

Keyless.

Data sources

  • California Department of Health Care Access and Information (HCAI), facility list (state licensing facility list, with status, opening and closing dates and coordinates).
  • California Department of Health Care Access and Information (HCAI), Licensed Healthcare Facility Listing — the current listing and the semi-annual snapshots (facility id, licence number, licence type and category, licensed beds, status and status date).

Live reads on every call; nothing is stored.

Personal data

The facility list also carries the names and phone numbers of state licensing staff (district, regional and field office contacts, and their supervisors) and a contact person at the owner. The pack never requests or returns them. Output is built field by field from an allow-list of 14 non-personal fields; the only owner field kept is the owner’s business name. src/index.test.ts feeds an upstream row containing every such field and fails if any key or value reaches the output, or if any is added to the requested list.

Licence and conditions of use (recorded 2026-12-06)

The HCAI conditions-of-use page says information on the site “unless otherwise indicated, is considered in the public domain” and “may be distributed or copied as permitted by law”. It names no licence, requires no attribution and has no click-through agreement (“By visiting this website, you are accepting the policies and practices described”). It does not mention automated access or APIs, and prohibits unauthorized attempts to modify information and use of the system for other than its intended purposes. The state data portal’s own metadata leaves the licence field empty; the data.ca.gov listing of the same facility listing is labelled Creative Commons Attribution. Terms silent on reuse: built live, and flagged. Each response carries a source naming the Department.

Notes the next person would rediscover

  • The facility list and the HCAI listing share no id field of the same kind. The list’s facility number matches PERM_ID in the current HCAI listing (the 5-digit state facility id); the 9-digit HCAI id (facility_number) comes from the listing. The pack joins on that key. A facility present in the list and absent from the listing keeps facility_number: null and in_hcai_listing: false.
  • The facility list marks status Active or Inactive only. Search accepts status Open or Closed; Pending is not a value that list carries.
  • date_opened is the list’s value as published; many older facilities show 1946-01-01, which looks like a placeholder, and a missing closing date is stored upstream as 1800-01-01 (returned as null).
  • Snapshot column types differ by year (numbers as strings or numbers, county in upper or title case, dates with or without time); the pack normalises them. Only the December 2016, June 2026 and current snapshots were read when this was built; older ones are read through the same case-insensitive field lookup.
  • The state data portal refused 2,034 of 2,074 outside calls on 2026-11-25 for the sibling hospital-finance pack. This pack has no stored copy: if the portal refuses, history says so per snapshot and search returns rows without the listing fields and says why.

Tools

  • ca_facility_search — 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 Acces
  • ca_facility_license_history — Licence history of one California health facility across the semi-annual Licensed Healthcare Facility Listing snapshots published by the Department of Health Care Access and Information (HCAI), newest

Tools

  • ca_facility_license_history — Licence history of one California health facility across the semi-annual Licensed Healthcare Facility Listing snapshots published by the Department of Health Care Access and Information (HCAI), newest
  • ca_facility_search — 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 Acces

Regenerated from source · build December 6, 2026