MCP Server for Google Cloud Healthcare API

by Kartha-AI
Verified

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Uses Firebase Authentication to secure access to the FHIR gateway and healthcare data

  • Interfaces with Google Cloud Healthcare API to access and query FHIR healthcare resources including patient data, observations, conditions, medications, and clinical records

  • Enables searching of PubMed medical research articles related to specific conditions or topics

适用于 Google Cloud Healthcare API(FHIR)的 MCP 服务器

模型上下文协议 (MCP) 服务器使用 Claude 和 Goose 等 MCP 客户端提供医疗保健工具,用于与Google Cloud Healthcare API和 pubmed 等公共医学研究 API 上的 FHIR 资源进行交互。

这是针对 EHR 的 AgentCare MCP 服务器的稍微修改版本。https ://github.com/Kartha-AI/agentcare-mcp

主要区别在于,此 repo 通过由 Firebase Auth 保护的 SmartonFHIR 网关与 Google Cloud Healthcare FHIR API 对话。

建筑

演示

  • 克劳德:demo/claude-demo.mp4
  • 鹅:demo/goose-demo.mp4

截图

工具

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 - 检查药物相互作用

用法

每个工具都需要特定的参数:

必需参数

  • 大多数工具都需要patientId
  • 一些工具有附加参数:
    • lab_trend_analysis :需要labType
    • search-pubmed :需要query和可选的maxResults
    • search-trials :需要condition和可选location
    • drug-interactions :需要drugs阵列

请参阅:/src/server/constants/tools.ts 了解工具规范

与克劳德桌面一起使用

for claude desktop: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json (use the env variables as shown above) { "mcpServers": { "google-cloud-healthcare-api-mcp": { "command": "node", "args": [ "/Users/your-username/{google-cloud-healthcare-api-mcp dir}/build/index.js" ], "env": { "FIREBASE_API_KEY":"XXXXXXXXX", "FIREBASE_AUTH_DOMAIN":"XXXXXXXX", "FIREBASE_PROJECT_ID":"XXXXXXX", "FIREBASE_STORAGE_BUCKET":"XXXXXXXXX", "FIREBASE_MESSAGING_SENDER_ID":"XXXXXXX", "FIREBASE_APP_ID":"XXXXXXXXX", "FIREBASE_MEASUREMENT_ID":"XXXXXXXX", "FIREBASE_AUTH_CALLBACK_PORT":"3456", "FHIR_BASE_URL":"{gchapi-fhir-gateway-host}/fhir", "PUBMED_API_KEY":"your_pubmed_api_key", "CLINICAL_TRIALS_API_KEY":"your_trials_api_key", "FDA_API_KEY":"your_fda_api_key" } } } }

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 google-cloud-healthcare-api-mcp :

npx -y @smithery/cli install @Kartha-AI/google-cloud-healthcare-api-mcp --client claude

使用 MCP Inspector 在本地启动 MCP 服务器

git clone git@github.com:Kartha-AI/google-cloud-healthcare-api-mcp.git cd google-cloud-healthcare-api-mcp npm install npm run build npm install -g @modelcontextprotocol/inspector mcp-inspector build/index.js http://localhost:5173 Set up the env vars on Inspector

故障排除:

如果 Claude 桌面正在运行,它将使用端口 3456 进行身份验证。您需要使用以下命令终止该进程:

kill -9 $(lsof -t -i:3456)

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

适用于 Google Cloud Healthcare API 的 MCP 服务器使 Agentic AI 能够实现各种基于 FHIR 的数字健康解决方案,从医疗系统的更智能的临床工作流程到付款人的预授权框架!

  1. Architetcure
    1. Demo
      1. Screenshots
        1. Tools
          1. FHIR Tools
          2. Medical Research Tools
        2. Usage
          1. Required Parameters
        3. Use with claude desktop
          1. Installing via Smithery
        4. Start MCP Server Locally with MCP Inspector
          1. Troubleshooting:
            ID: e6dzbv6yl8