
An MCP Server for Google Cloud Healthcare API (FHIR)

2025.04.10
2
JavaScript医疗健康FHIR医学研究其它
Google Cloud Healthcare API (FHIR) 的 MCP 服务器,提供与 Google Cloud Healthcare API 上的 FHIR 资源以及公共医学研究 API(如 PubMed)交互的医疗工具。该服务器通过 Firebase Auth 保护的 SmartonFHIR 网关与 Google Cloud Healthcare FHIR API 通信。
View on GitHub
Overview
基本能力
产品定位
该 MCP 服务器主要用于医疗健康领域,提供与 FHIR 资源和医学研究 API 的交互工具。
核心功能
- FHIR 工具:
- 患者信息检索(如
find_patient
、get_patient_observations
) - 临床数据查询(如
get_patient_conditions
、get_patient_medications
) - 医疗记录管理(如
get_patient_encounters
、get_patient_procedures
) - 医学研究工具:
- PubMed 文章搜索(
search-pubmed
) - 临床试验查询(
search-trials
) - 药物相互作用检查(
drug-interactions
)
适用场景
- 电子健康记录(EHR)管理
- 临床数据分析和查询
- 医学研究和文献检索
- 药物相互作用检查
工具列表
- FHIR 工具:
find_patient
:通过姓名、出生日期或其他标识符搜索患者get_patient_observations
:检索患者的观察结果/生命体征get_patient_conditions
:获取患者的活跃病症get_patient_medications
:获取患者的当前用药get_patient_encounters
:获取患者的临床接触记录get_patient_allergies
:获取患者的过敏和不耐受get_patient_procedures
:获取患者的手术记录get_patient_careteam
:获取患者的护理团队成员get_patient_careplans
:获取患者的活跃护理计划get_vital_signs
:获取患者的生命体征get_lab_results
:获取患者的实验室结果get_medications_history
:获取患者的用药历史clinical_query
:执行自定义 FHIR 查询- 医学研究工具:
search-pubmed
:搜索与医学病症相关的 PubMed 文章search-trials
:查找相关临床试验drug-interactions
:检查药物相互作用
常见问题解答
- 端口冲突:如果 Claude 桌面正在运行并使用端口 3456 进行身份验证,需要终止该进程:
bash kill -9 $(lsof -t -i:3456)
使用教程
使用依赖
- 确保已安装 Node.js 和 npm
- 确保已安装 Git
安装教程
- 克隆仓库:
bash git clone [email protected]:Kartha-AI/google-cloud-healthcare-api-mcp.git
- 进入项目目录:
bash cd google-cloud-healthcare-api-mcp
- 安装依赖:
bash npm install
- 构建项目:
bash npm run build
- 安装 MCP Inspector:
bash npm install -g @modelcontextprotocol/inspector
- 启动 MCP 服务器:
bash mcp-inspector build/index.js
- 访问 MCP Inspector:
http://localhost:5173
- 在 Inspector 中设置环境变量
调试方式
- 确保所有环境变量已正确设置
- 检查端口 3456 是否被占用,必要时终止相关进程
- 使用 MCP Inspector 进行交互式调试