AgentCare (FHIR EMR)

AgentCare (FHIR EMR)

🚀 代理关怀 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!

图片示例

  • 0 关注
  • 0 收藏,8 浏览
  • system 提出于 2025-09-21 13:54

相似服务问题