mcpField
N
Nursing Home Database

Nursing Home Database

远程服务
github.com/jmtroller健康医疗04 周前更新
代码仓库

关于 Nursing Home Database

Nursing Home Database 是用于查询和分析美国专业护理机构及其所有者的 MCP 服务,整合 CMS 评级、人员配置、流动率、检查和所有权数据,并支持按月查看历史快照。

主要功能

  1. 01按地点和条件搜索机构
  2. 02比较最多 25 家机构
  3. 03按类别汇总 CMS 指标
  4. 04查询所有者及其机构组合
  5. 05查看月度数据和机构变更

适用场景

  1. 01筛选附近的护理机构
  2. 02比较人员配置和检查指标
  3. 03按州或所有权汇总指标
  4. 04查看所有者的机构组合

MCP 相关

通过 Streamable HTTP 向 MCP 客户端提供机构搜索、比较、汇总、所有权查询和 CMS 快照工具。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://mcp.nursinghomedatabase.com/mcp
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

工具

12
参数类型必填说明
qstring否
zipstring否
citystring否
sortenum否排序键:overall_rating(默认,降序)、survey_rating、quality_rating、staffing_rating、distance(升序,直线英里)、tothrd 或 total_nurse_hours(降序)、totalnursingstaffturnover 或 nurse_turnover(升序)、weighted_all_cycles_score 或 survey_score(升序)。未知值将回退为 overall_rating。overall_rating | survey_rating | quality_rating | staffing_rating | distance | tothrd | total_nurse_hours | totalnursingstaffturnover | nurse_turnover | weighted_all_cycles_score | survey_score
limitinteger否
statestring否
offsetinteger否
addressstring否含城市和州的街道地址,或街道地址和 ZIP。人口普查局将其地理编码为距离起点。仅提供城市、地名或 ZIP 无法匹配。
filedatestring否可选的 CMS 月度快照(YYYY-MM-DD 或 YYYY-MM)。默认为最新文件。请先调用 list_file_dates 获取可用日期。
ownershipstring否ProviderInfo.ownership 中的 CMS 所有权类型。不区分大小写。前缀 For profit、Non profit 和 Government 分别匹配对应类别。调用 list_distinct_values,传入 field=ownership,以获取 13 个精确值(例如 "For profit - Limited Liability company")。
sffstatusstring否为真值时,仅保留 Special Focus Facility 或候选机构(sffstatus 非空)。
abuse_iconstring否CMS 虐待图标筛选器。Y/yes/true/1 仅保留已标记的机构;其他值保留未标记的机构。
icon_hi_perfstring否CMS 高绩效图标(基于风险的调查资格)。Y/yes/true/1 仅保留带有该图标的机构;其他值保留不带图标的机构。此标记仅代表某一时点,并非永久授予。
radius_milesnumber否
max_overall_ratinginteger否CMS 总体星级上限(1-5)。
min_overall_ratinginteger否CMS 总体星级下限(1-5)。

详细介绍

护理院数据库 — MCP

护理院数据库 模型上下文协议 服务的公开文档。它向 AI 助手和其他 MCP 客户端提供美国专业护理机构的搜索、详情、所有权和业主投资组合数据,包括 CMS 护士工时、人员流动率和检查评分。

网站: nursinghomedatabase.com
联系方式: 联系页面

MCP 端点

传输方式可流式传输的 HTTP(通过 HTTPS 传输 JSON-RPC 2.0)
URLhttps://mcp.nursinghomedatabase.com/mcp
身份验证无需(公开访问)
服务名称nhd-mcp
版本1.4.0

发送标准 MCP 会话:initialize → notifications/initialized(可选;可能收到 HTTP 204)→ tools/list → 按需调用 tools/call。

工具

工具用途
search_facilities查找地址附近(或按名称/城市/州/所有权类型查找)的认证专业护理机构,以便根据护士工时、人员流动率和检查评分,从中筛选出三家以上的护理院
search_facilities_by_ownership同样的搜索,但必须指定 CMS ownership 类型(For profit / Non profit / Government,或 list_distinct_values 返回的确切值)
summarize_facilities按全国范围或分组统计护士工时、人员流动率、评级、床位和罚款等数据(样本量、平均值、最小值、最大值;中位数可选)。优先使用此工具,而不是分页调用 search_facilities
get_facility按 CMS 服务提供者编号或网站 slug 查看一家护理院,返回与搜索相同的工时、人员流动率、检查、床位和处罚字段
compare_facilities使用相同的架构比较最多 25 个 CCN/slug — 优先使用此工具,而不是循环调用 get_facility(MCP 每分钟限 60 次请求)
get_facility_changes对比一家护理院在两个 CMS 月度文件中的字段级差异。默认比较最新文件与上一个快照。不包含业主姓名
get_facility_ownership列出一家护理院的所有者及其角色
search_owners按名称查找护理院业主
get_owner查看业主旗下认证专业护理机构的投资组合
list_file_dates列出数据库中的 CMS 月度快照日期,以便查看之前月份的数据
list_distinct_values列出 ProviderInfo 字段(ownership、state、sffstatus、chainname 等)中不同 CMS 值及其计数
get_data_freshness报告最新 CMS 文件的发布时间和所含行数

tools/list 会返回确切的 inputSchema 对象。

历史月份(filedate)

默认情况下,每次查询都会使用最新的 CMS 月度文件。要检索之前月份的数据:

  1. 调用 list_file_dates(返回 current、按从新到旧排序的 filedates,以及未发布月份的 known_gaps)。
  2. 在 search_facilities、search_facilities_by_ownership、summarize_facilities、compare_facilities、get_facility、get_facility_ownership、search_owners、get_owner 或 list_distinct_values 中,将其中一个日期作为 filedate(YYYY-MM-DD 或 YYYY-MM)传入。get_facility_changes 不接受 filedate;请传入 from 和 to。

CMS 快照使用每月第一天的日期(YYYY-MM-01)存储。像 2026-07 或 2026-07-15 这样的值会被规范化为 2026-07-01。未知日期会返回验证错误 — 请调用 list_file_dates,不要猜测。

search_facilities

查找某个地址附近经认证的 SNF,帮助你根据工时、人员流动率和检查评分,从三家以上的养老院中筛选候选对象。也可以按名称、城市、州或邮政编码搜索。

参数类型说明
qstring机构名称自由文本
addressstring用于距离搜索的起点地址(例如 150 Corporate Woods Drive, Magnolia, TX 77354)
citystring城市筛选条件
statestring州筛选条件
zipstring邮政编码筛选条件
radius_milesnumber直线距离半径,单位为英里;提供 address 时默认为 25
min_overall_ratingintegerCMS 总体星级评分下限(REST 接口已支持;此 MCP 工具也支持)
max_overall_ratingintegerCMS 总体星级评分上限(REST 接口已支持;此 MCP 工具也支持)
abuse_iconstring按 CMS 虐待标记筛选(Y / N、true / false)(REST 接口已支持;此 MCP 工具也支持)
sffstatusstring设置后,仅保留具有 CMS 特别关注机构(或候选机构)状态的养老院(REST 接口已支持;此 MCP 工具也支持)
ownershipstringCMS 所有权类型(ProviderInfo.ownership)。不区分大小写。前缀 For profit、Non profit 和 Government 分别匹配对应类型。调用 list_distinct_values 并设置 field=ownership,可获取 13 个精确值
sortstring排序键(见下文的排序键)
limitinteger结果数量上限
offsetinteger分页偏移量
filedatestring可选的 CMS 月度快照,取自 list_file_dates(默认为最新月份)

如果无法解析提供的地址,API 会返回特定于该地址的验证错误。

机构数据(搜索和详情)

search_facilities(每个 items[] 行)和 get_facility(facility)会返回相同的扩展对象,因此筛选候选对象时无需逐家调用详情接口。

其中包含身份、位置和 CMS 星级评分(provnum、web、provname、lbn、address、city、state、zip、latitude、longitude、phone、overall_rating、survey_rating、quality_rating、staffing_rating、公开的 urls)。决策字段使用 CMS 键:

键含义
tothrd每位住户每天的护士总工时(HPRD)
rnhrd每位住户每天的注册护士工时
totalnumberofnursestaffhoursperresidentperdayontheweekend周末每位住户的护士总 HPRD
registerednursehoursperresidentperdayontheweekend周末每位住户的注册护士 HPRD
totalnursingstaffturnover护理人员流动率
registerednurseturnover注册护士流动率
numberofadministratorswhohaveleftthenursinghome已离职的养老院管理人员人数
weighted_all_cycles_score加权健康检查评分(所有周期)
bedcert经认证的床位数
restot经认证床位中的住户人数
occupancy入住率(住户人数 / 经认证的床位数)
fine_tot罚款总额(美元)
fine_cnt罚款次数
abuse_iconCMS 虐待标记
sffstatus特别关注机构状态
chain_id连锁机构标识符
chain_name连锁机构名称
ownershipCMS 所有权类型(例如 For profit - Corporation)
oldsurvey标记(Y/N):最近一次常规健康检查距今已超过两年
cycle_1_survey_date最近一次常规健康检查的日期
距离(直线英里数,不是驾驶时间)

使用 address 调用 search_facilities 时:

  • distance_miles 是从起点到该机构的哈弗辛直线距离,单位为英里。
  • distance 是同一数值的别名。

这些值不是驾驶时间或公路里程。要获取驾驶时间,请对结果行使用 maps.google_dir / maps.apple_dir,或将坐标传递给地图工具。

排序键

在 search_facilities(以及 GET /api/v1/nh/facilities)中传入 sort。省略 sort 时,默认按 overall_rating 排序(星级降序)。从地址搜索时,使用 sort=distance 按距离从近到远排序。

sort 值别名顺序
overall_rating星级降序(越高越好)
survey_rating星级降序
quality_rating星级降序
staffing_rating星级降序
distance英里升序(从近到远)
tothrdtotal_nurse_hours工时降序(越高越好)
totalnursingstaffturnovernurse_turnover离职率升序(越低越好)
weighted_all_cycles_scoresurvey_score检查评分升序(越低越好)
search_facilities_by_ownership

返回与 search_facilities 相同的结果架构,且必须提供 ownership。当问题是“查找某地的政府/非营利/营利性养老院”时使用此工具。可与 state、city、zip 或 address 组合使用。先调用 list_distinct_values 并设置 field=ownership,以获取准确的 CMS 字符串。

参数类型必填描述
ownershipstring是CMS 所有权类型(前缀或精确值)
statestring否两字母州代码
citystring否城市筛选条件
zipstring否ZIP 筛选条件
addressstring否距离搜索的起始地址
filedatestring否来自 list_file_dates 的 CMS 月度快照
summarize_facilities

汇总已认证 SNF 的 CMS ProviderInfo 数值字段。对于全国或分组统计(如政府与私营机构的工时、各州均值等),优先使用此工具,而不是分页调用 search_facilities。均值按机构等权计算(不按床位加权)。缺少某项指标的机构仅从该指标的 n/均值/最小值/最大值计算中排除,不会填补缺失值。结果不代表因果关系。不能替代对指定养老院调用 get_facility。

参数类型必填描述
metricsarray of strings是1–20 个键:tothrd、rnhrd、weekend_tothrd、weekend_rnhrd、totalnursingstaffturnover、registerednurseturnover、weighted_all_cycles_score、overall_rating、survey_rating、staffing_rating、quality_rating、bedcert、restot、fine_tot、fine_cnt、occupancy。同义名称:total_nurse_hours、nurse_turnover、rn_turnover、survey_score
group_bystring否ownership、ownership_kind(Government / For profit / Non profit)、state、overall_rating、staffing_rating、survey_rating、quality_rating、sffstatus、abuse_icon。省略时返回一行全国(或按筛选条件限定)的数据
ownershipstring否与 search_facilities 相同的前缀/精确值筛选条件
statestring否两字母州代码
citystring否必须同时提供 state
zipstring否ZIP 筛选条件
abuse_iconstring否与 search_facilities 相同
sffstatusstring否与 search_facilities 相同
min_overall_ratinginteger否1–5
max_overall_ratinginteger否1–5
include_medianboolean否默认为 false。设为 true 时,每个统计对象都会包含 median
filedatestring否来自 list_file_dates 的 CMS 月度快照

REST:GET /api/v1/nh/facilities/summary?metrics=tothrd,rnhrd&group_by=ownership_kind&include_median=true

响应中的 groups[] 各项包含 group_key、group_label、facilities_in_group,以及按规范指标键索引的 stats(包含 n、mean、min、max、可选的 median 和 unit)。facilities_in_scope 是符合筛选条件的机构数;每组各指标的 n 是该组该指标的非空值数量。未知指标键会返回 invalid_metric 和允许的指标列表。

0%/100% 的离职率和接近零的 HPRD 可能是报告数据造成的异常。

list_distinct_values

列出当前月度快照中某个字段的不同 CMS ProviderInfo 值及其行数。省略 field 可查看允许的字段目录。field=city 需要提供 state。

参数类型必填描述
fieldstring否ownership、state、sffstatus、abuse_icon、certification、chainname、overall_rating、……
statestring否两字母州缩写(city 必填)
filedatestring否来自 list_file_dates 的 CMS 月度快照
compare_facilities

对单个快照中的最多 25 个 CMS 服务提供方编号或网页 slug,比较与 search_facilities 相同的判定字段。超过 25 个的 ID 会被丢弃。这不是逐月差异比较;如需此功能,请使用 get_facility_changes。

参数类型必填描述
idsarray of strings是CMS 服务提供方编号或网页 slug。最多 25 个
filedatestring否来自 list_file_dates 的 CMS 月度快照
get_facility

按 CMS 服务提供方编号(provnum)或站点 slug 打开一家养老院。facility 对象与 search_facilities 的一行相匹配(营业时间、人员流动、检查、床位、处罚、地图链接)。

参数类型必填描述
idstring是服务提供方编号或网页 slug
filedatestring否来自 list_file_dates 的 CMS 月度快照
get_facility_changes

比较一家养老院在两个 CMS 月度快照之间的差异。省略 from 和 to 可比较最新文件与前一个快照。changes 按字段列出差异:星级、护士工时、人员流动、加权检查分数、CMS 虐待标记、Special Focus 状态、所有权类型(营利性/非营利性/政府所有,而非所有者姓名)、罚款、床位、住户人数和入住率。如果某家养老院未出现在两个文件中的一个,found.from 或 found.to 会显示为 false。这不代表该机构已关闭。

参数类型必填描述
idstring是CMS 服务提供方编号或网页 slug
fromstring否较早的 filedate(YYYY-MM-DD 或 YYYY-MM)。省略时使用 to 之前的快照
tostring否较晚的 filedate。省略时使用最新的 CMS 文件
get_facility_ownership

列出一家养老院的所有者及其角色。

参数类型必填描述
idstring是服务提供方编号或网页 slug
filedatestring否来自 list_file_dates 的 CMS 月度快照
search_owners

按名称查找养老院所有者。

参数类型必填描述
qstring是所有者名称搜索词
limitinteger否结果数量上限
offsetinteger否分页偏移量
filedatestring否来自 list_file_dates 的 CMS 月度快照
get_owner

按 web_owner slug 打开某位所有者的认证 SNF 组合。

参数类型必填描述
web_ownerstring是所有者 slug 标识符
filedatestring否来自 list_file_dates 的 CMS 月度快照
list_file_dates

列出数据库中可用的 CMS 月度快照日期。无参数。返回 current、按日期从新到旧排列的 filedates,以及尚未发布月份的 known_gaps。

get_data_freshness

报告最新 CMS 源数据集的日期和行数。无参数。若要查询之前的月份,请调用 list_file_dates,并将 filedate 传给其他工具。

MCP Registry

已列入官方 MCP Registry,名称为 com.nursinghomedatabase/mcp。

  • Registry 清单:server.json
  • 搜索:https://registry.modelcontextprotocol.io/v0.1/servers?search=com.nursinghomedatabase

REST API(同一后端)

主站也提供 JSON 发现 API:

  • GET https://www.nursinghomedatabase.com/api/v1/nh/capabilities
  • GET https://www.nursinghomedatabase.com/api/v1/nh/file-dates
  • GET https://www.nursinghomedatabase.com/api/v1/nh/facilities?address=150+Corporate+Woods+Drive,+Magnolia,+TX+77354
  • GET https://www.nursinghomedatabase.com/api/v1/nh/facilities?address=150+Corporate+Woods+Drive,+Magnolia,+TX+77354&radius_miles=10&sort=distance
  • GET https://www.nursinghomedatabase.com/api/v1/nh/facilities?state=TX&min_overall_rating=4&sort=tothrd
  • GET https://www.nursinghomedatabase.com/api/v1/nh/facilities?state=TX&filedate=2026-07-01
  • GET https://www.nursinghomedatabase.com/api/v1/nh/field-values?field=ownership
  • GET https://www.nursinghomedatabase.com/api/v1/nh/facilities?state=TX&ownership=Non+profit
  • GET https://www.nursinghomedatabase.com/api/v1/nh/facilities/summary?metrics=tothrd,rnhrd,totalnursingstaffturnover&group_by=ownership_kind

REST 调用方可以像 MCP 工具一样,在 facilities 和 owners 端点传入 filedate=YYYY-MM-DD(或 YYYY-MM)。min_overall_rating、max_overall_rating、abuse_icon、sffstatus 和 ownership 是 GET /api/v1/nh/facilities 的查询参数。

MCP 和 REST 共用同一底层数据层。

示例:Cursor / IDE 配置

{
  "mcpServers": {
    "nursing-home-database": {
      "type": "streamableHttp",
      "url": "https://mcp.nursinghomedatabase.com/mcp"
    }
  }
}

许可证和数据

数据源自 CMS 及相关来源的公开数据。使用须遵守 nursinghomedatabase.com 上公布的条款。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。