MCP server exposing 6 tools for ca-hcai-hospital-finance.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/ca-hcai-hospital-finance/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
ca_hospital_finance — California hospital financials from HCAI (Department of Health Care Access and Information, formerly OSHPD): the quarterly financial and utilization report for each licensed hospital. Returns gross patient revenue, deductions, net patient revenue, other operating revenue, total operating expense, derived operating margin, non-operating revenue, assets, liabilities, equity, beds, discharges and patient days, for the trailing four quarters ending in the chosen quarter. Use for "2025 Q1 operating margin for Adventist Health Rideout", "California hospital revenue and expenses", "compare hospitals in Los Angeles county". Filter by hospital name words, facility number or county; omit year/quarter for the latest published quarter. With only year and quarter (or nothing), returns the statewide list of hospitals for that quarter, paged by limit and offset; the answer states total_matches, has_more and next_offset. min_beds and max_beds narrow the list to a licensed-bed range (e.g. 250 to 400) and combine with county.ca_hospital_periods — Which quarterly California hospital financial and utilization reports HCAI has published (year, quarter, release date), newest first. Use before ca_hospital_finance to see the latest quarter available.ca_hospital_screen — Screen California hospitals statewide in HCAI's quarterly financial and utilization report: list the hospitals whose licensed beds fall in a range (e.g. 250 to 400), optionally narrowed by county, ownership (non profit, investor, district, city/county, church, state), hospital group (Comparable = general acute care) or teaching/rural flag, sorted by beds, net patient revenue, operating margin or name. Name a hospital with hospital (words from its licensed name) or facility_no to list just that hospital (a name that matches nothing returns no hospitals and nearest_names, never the statewide list). Also returns counts of the matches by hospital group, so it answers "how many general acute care hospitals in California". Answered from a stored copy of the report (labelled, with data_as_of), so it does not depend on the state portal being reachable. Use ca_hospital_finance for one named hospital's full revenue and expense lines.ca_hospital_payer_mix — Payer mix of California hospitals from HCAI's quarterly report: share of net patient revenue from Medicare (traditional and managed care), Medi-Cal (traditional and managed care), county indigent, other third parties and other payers, summed across every hospital that matches the filters (the whole state if none). Returns dollars and percent share per payer and the combined Medicare plus Medi-Cal share. Name one hospital (or several) with hospital (words from the licensed name, e.g. "Cedars-Sinai") or facility_no (HCAI facility number): the scope block then lists the matched hospitals (name, facility number, county), hospitals_included is their count, and a name that matches nothing returns found false with the nearest names, never statewide figures. Also filters by licensed-bed range, county, ownership, hospital group or teaching/rural flag, all combinable; group_by county, ownership or hospital_type for a breakdown. Figures are trailing four quarters ending in the report quarter. Answered from a stored copy (labelled, with data_as_of).ca_hospital_visits_by_payer — Outpatient visits and inpatient discharges by payer for a named California hospital, from HCAI's quarterly financial and utilization report: Medicare, Medi-Cal, county indigent programs, other third parties, other indigent and other payers, each split into traditional and managed care where HCAI reports it, plus the total. Use for "outpatient visits by payer at Adventist Health Rideout, 2026 Q1", "Medi-Cal managed care discharges at a hospital". Give the hospital name words or the facility number, and a year and quarter (omit for the latest). Counts are for the trailing four quarters ending in the report quarter, as the report publishes them, not a single quarter. When the quarter asked for is newer than the newest published report, the newest is returned and the note and data_as_of say so. Answered live from the state portal; the stored copy does not carry these columns.ca_hospital_fields — The field list of HCAI's California hospital quarterly financial and utilization report: every column name with a plain-language meaning and group (identity, beds, discharges, patient days, outpatient visits, gross revenue, contractual adjustments, capitation, net revenue by payer, expense, assets, liabilities), and which of them the stored copy keeps and the hospital tools return. Optional search words narrow the list. Use to answer "what fields does the California hospital financial dataset have".Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/ca-hcai-hospital-finance/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io