Nursing Home Database

v1.0.1
com.nursinghomedatabase/mcp Checked 8 hours ago Published 8 months ago

MCP server for US nursing facility search and ownership lookup (NursingHomeDatabase).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_facilities Search facilities

Find certified US skilled nursing facilities near an address or in a city. Filter by ownership type, star rating, abuse flag, high-performing icon, or Special Focus status. Returns ownership, ratings, nurse hours (HPRD), nurse/RN turnover, weighted inspection score, beds, fines, straight-line distance_miles, and map links. distance_miles is straight-line miles, not drive time. An address is geocoded on the server.

ParameterTypeDescription
abuse_iconstringCMS abuse icon filter. Y/yes/true/1 keeps only flagged homes; other values keep homes without the flag.
addressstringStreet address with city and state, or a street and ZIP. Geocoded by the Census Bureau as the distance origin. A city, place name, or ZIP alone will not match.
citystring
filedatestringOptional monthly snapshot (YYYY-MM-DD or YYYY-MM). Defaults to the latest loaded file.
icon_hi_perfstringCMS high-performing icon (Risk-Based Survey eligibility). Y/yes/true/1 keeps only homes with the icon; other values keep homes without it. Point-in-time, not a permanent award.
limitinteger
max_overall_ratingintegerMaximum CMS overall star rating (1-5).
min_overall_ratingintegerMinimum CMS overall star rating (1-5).
offsetinteger
ownershipstringOwnership type from ProviderInfo.ownership. Case-insensitive. Prefixes For profit, Non profit, and Government match that kind. Exact labels look like "For profit - Limited Liability company".
qstring
radius_milesnumber
sffstatusstringWhen truthy, keep only Special Focus Facility or candidate homes (non-empty sffstatus).
sortstringSort key: overall_rating (default, desc), survey_rating, quality_rating, staffing_rating, distance (asc, straight-line miles), tothrd or total_nurse_hours (desc), totalnursingstaffturnover or nurse_tu…
statestring
zipstring

search_facilities_by_ownership Search nursing homes by ownership type

Find certified US nursing homes by ownership type (ProviderInfo.ownership). The result rows match a facility search. Combine with state, city, ZIP, or address.

ParameterTypeDescription
ownership *stringCMS ownership type. Case-insensitive. Prefixes For profit, Non profit, and Government match that kind. Exact values from list_distinct_values field=ownership, e.g. "For profit - Limited Liability comp…
addressstringStreet address with city and state, or a street and ZIP. Geocoded by the Census Bureau as the distance origin. A city, place name, or ZIP alone will not match.
citystring
filedatestringOptional monthly snapshot (YYYY-MM-DD or YYYY-MM). Defaults to the latest loaded file.
limitinteger
max_overall_ratinginteger
min_overall_ratinginteger
offsetinteger
qstring
radius_milesnumber
sortstring
statestring
zipstring

summarize_facilities Summarize nursing home statistics

Aggregate numeric ProviderInfo fields (n, mean, min, max; optional median) across certified nursing homes. Facility-equal means, not bed-weighted. Missing values are excluded per metric. Not causal. A named home still needs a single-facility lookup.

ParameterTypeDescription
metrics *arrayMetric keys: tothrd, rnhrd, weekend_tothrd, weekend_rnhrd, totalnursingstaffturnover, registerednurseturnover, weighted_all_cycles_score, overall_rating, survey_rating, staffing_rating, quality_rating…
abuse_iconstring
citystringCity filter. Requires state.
filedatestringOptional monthly snapshot (YYYY-MM-DD or YYYY-MM). Defaults to the latest loaded file.
group_bystringOmit for one national (or filter-scoped) row per metric. ownership_kind is Government | For profit | Non profit.
icon_hi_perfstringCMS high-performing icon. Y keeps homes currently eligible for a Risk-Based Survey.
include_medianbooleanWhen true, each stats object also includes median. Default false.
max_overall_ratinginteger
min_overall_ratinginteger
ownershipstringCMS ownership type. Prefixes For profit, Non profit, and Government match that kind. Applied before aggregation.
sffstatusstring
statestring
zipstring

compare_facilities Compare facilities

Compare up to 25 certified skilled nursing facilities by CMS CCN or web slug. Returns ratings, nurse hours, turnover, inspection score, beds, fines, and map links in one table.

ParameterTypeDescription
ids *arrayCMS CCNs (provnum) or web slugs. Max 25.
filedatestringOptional monthly snapshot (YYYY-MM-DD or YYYY-MM). Defaults to the latest loaded file.

get_facility_changes Show what changed

Monitor one skilled nursing facility across two CMS monthly files. Defaults to latest vs the prior snapshot. Returns field-level diffs for stars, nurse hours, turnover, inspection score, abuse icon, high-performing icon, fines, and occupancy. Care Compare shows this month only — rerun after the next file.

ParameterTypeDescription
id *stringCMS CCN (provnum) or web slug
fromstringEarlier filedate YYYY-MM-DD. Omit to use the snapshot before to.
tostringLater filedate. Omit to use the latest CMS file.

get_facility Get nursing home details

Get one certified skilled nursing facility by CMS CCN (provnum) or web slug. Returns the same decision fields as search_facilities: ratings, nurse hours (HPRD), nurse/RN turnover, weighted inspection score, beds, fines, abuse/SFF flags, and maps deep-links. Use data_as_of as the CMS vintage; do not invent ratings or hours that are missing. Defaults to the latest monthly snapshot; pass filedate from list_file_dates for a prior month.

ParameterTypeDescription
id *string
filedatestringOptional monthly snapshot (YYYY-MM-DD or YYYY-MM). Defaults to the latest loaded file.

get_facility_ownership Get nursing home owners

Get CMS ownership records for one facility — who owns or manages the building. Defaults to the latest CMS monthly snapshot; pass filedate from list_file_dates to query a prior month.

ParameterTypeDescription
id *string
filedatestringOptional monthly snapshot (YYYY-MM-DD or YYYY-MM). Defaults to the latest loaded file.

search_owners Search nursing home owners

Search nursing-home owners by name. Defaults to the latest CMS monthly snapshot; pass filedate from list_file_dates to query a prior month.

ParameterTypeDescription
q *string
filedatestringOptional monthly snapshot (YYYY-MM-DD or YYYY-MM). Defaults to the latest loaded file.
limitinteger
offsetinteger

get_owner Get an owner portfolio

Get an owner portfolio by web_owner slug, including facility names, locations, and overall stars. Defaults to the latest CMS monthly snapshot; pass filedate from list_file_dates to query a prior month.

ParameterTypeDescription
web_owner *string
filedatestringOptional monthly snapshot (YYYY-MM-DD or YYYY-MM). Defaults to the latest loaded file.

list_file_dates List snapshot dates

List CMS monthly snapshot dates available in the database (newest first), plus the current filedate and known unpublished months. Use a returned date as filedate on other tools to retrieve a prior month instead of the latest data.

list_distinct_values List filter values

List distinct ProviderInfo values and counts for a field. Omit field to see the catalog. ownership returns the ownership labels. city requires state.

ParameterTypeDescription
fieldstringProviderInfo field. Omit to list allowed fields. ownership returns the ownership labels.
filedatestringOptional monthly snapshot (YYYY-MM-DD or YYYY-MM). Defaults to the latest loaded file.
statestringOptional two-letter state. Required when field=city.

get_data_freshness Check data freshness

Latest source dataset dates and row counts for the nursing-home files.