Back to MCP directory
publicPublicdnsLocal runtime

AgentCare (FHIR EMR)

Agent Care是一个基于MCP协议的服务器,为Cerner和Epic等电子病历系统提供医疗工具和交互提示,支持FHIR数据和医疗资源的访问。

article

README

🚀 代理关怀 MCP 服务器

代理关怀 MCP 服务器是一个用于管理人工智能代理的模型控制平台(MCP)。它支持与 Claude Desktop 和 Goose 等 AI 代理框架集成,能让用户访问 Cerner 和 Epic 等医疗保健提供商的患者数据,为医疗领域的人工智能应用提供有力支持。

🚀 快速开始

代理关怀 MCP 服务器是一个强大的模型控制平台,下面为你详细介绍其安装、配置、启动及使用方法。

✨ 主要特性

  • 支持与 Claude Desktop 和 Goose 等 AI 代理框架集成。
  • 可提供对 Cerner 和 Epic 等医疗保健提供商的患者数据访问。

📦 安装指南

克隆仓库

git clone {agentcare-mcp-github路径}
cd agentcare-mcp
npm install
npm run build

配置环境变量

Cerner 配置

{
  "OAUTH_CLIENT_ID": "portal",
  "OAUTH_CLIENT_SECRET": "portal",
  "OAUTH_TOKEN_HOST": "https://fhir-ehr.cerner.com",
  "OAUTH_TOKEN_PATH": "/interconnect-fhir-oauth/oauth2/token",
  "OAUTH_AUTHORIZE_PATH": "/interconnect-fhir-oauth/oauth2/authorize",
  "OAUTH_AUTHORIZATION_METHOD": "body",
  "OAUTH_AUDIENCE": "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
  "OAUTH_CALLBACK_URL": "http://localhost:3456/oauth/callback",
  "OAUTH_SCOPES": "user/Patient.read user/Observation.read user/MedicationRequest.read user/Condition.read user/AllergyIntolerance.read user/Procedure.read user/CarePlan.read user/CareTeam.read user/Encounter.read user/Immunization.read",
  "OAUTH_CALLBACK_PORT": "3456",
  "FHIR_BASE_URL": "https://fhir-ehr.cerner.com/r4/ec2458f71b"
}

Epic 配置

{
  "OAUTH_CLIENT_ID": "FHIRTWO",
  "OAUTH_CLIENT_SECRET": "EpicFhir11!",
  "OAUTH_TOKEN_HOST": "https://fhir.epic.com",
  "OAUTH_TOKEN_PATH": "/interconnect-fhir-oauth/oauth2/token",
  "OAUTH_AUTHORIZE_PATH": "/interconnect-fhir-oauth/oauth2/authorize",
  "OAUTH_AUTHORIZATION_METHOD": "body",
  "OAUTH_AUDIENCE": "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
  "OAUTH_CALLBACK_URL": "http://localhost:3456/oauth/callback",
  "OAUTH_SCOPES": "user/Patient.read user/Observation.read user/MedicationRequest.read user/Condition.read user/AllergyIntolerance.read user/Procedure.read user/CarePlan.read user/CareTeam.read user/Encounter.read user/Immunization.read",
  "OAUTH_CALLBACK_PORT": "3456",
  "FHIR_BASE_URL": "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4"
}

启动 MCP 服务器

npm run build

💻 使用示例

使用 Claude Desktop

基础用法

{
  "agent": {
    "type": "mcp",
    "host": "localhost",
    "port": 3000
  },
  "mcpConfig": {
    "OAUTH_CLIENT_ID": "portal",
    "OAUTH_CLIENT_SECRET": "portal"
  }
}

启动 Claude Desktop

claudie desktop start

使用 Goose 框架

基础用法

{
  "agents": [
    {
      "name": "mcp-agent",
      "type": "mcp",
      "host": "localhost",
      "port": 3000
    }
  ]
}

📚 详细文档

故障排除

杀死被占用的端口

sudo lsof -i :3000
sudo kill -9 {PID}

测试用户登录

  • Cerner: 用户名:portal, 密码:portal
  • Epic: 用户名:FHIRTWO, 密码:EpicFhir11!

图片示例

代理关怀 MCP 服务器

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client